CreateProjectGrant
Create Project Grant
Grant a project to another organization. The project grant will allow the granted organization to access the project and manage the authorizations for its users.
Required permission:
project.grant.create
Header Parameters
Connect-Protocol-Version*number
Define the version of the Connect protocol
Value in
1Connect-Timeout-Ms?number
Define the timeout, in ms
Request Body
application/json
projectId*string
ProjectID is the unique identifier of the project.
grantedOrganizationId*string
GrantedOrganizationID is the unique identifier of the organization the project will be granted to.
roleKeys?role_keys
RoleKeys is a list of roles to be granted to the organization for self management. The roles are identified by their keys.
[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://loading/zitadel.project.v2.ProjectService/CreateProjectGrant" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{ "projectId": "string", "grantedOrganizationId": "string" }'{
"creationDate": "1s"
}{
"code": "not_found",
"message": "string",
"detail": {
"type": "string",
"value": "string",
"debug": {}
}
}Was this page helpful?