Delete Project Grant
Delete a project grant. All user grants (role assignments) for this project grant will also be removed. A user will not have access to the project afterward (if permissions are checked). In case the project grant is not found, the request will return a successful response as the desired state is already achieved.
Required permission:
project.grant.delete
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 was granted to.
[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://loading/zitadel.project.v2.ProjectService/DeleteProjectGrant" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{ "projectId": "string", "grantedOrganizationId": "string" }'{
"deletionDate": "2023-01-15T01:30:15.01Z"
}{
"code": "not_found",
"message": "string",
"details": [
{
"type": "string",
"value": "string",
"debug": {}
}
]
}Was this page helpful?