ZITADEL Docs
APIsCore ResourcesV2Project

DeactivateProjectGrant

Deactivate Project Grant

Set the state of the project grant to deactivated. Applications under deactivated projects grants are not able to login anymore.

Required permission:

  • project.grant.write
POST
/zitadel.project.v2.ProjectService/DeactivateProjectGrant

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-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/DeactivateProjectGrant" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{    "projectId": "string",    "grantedOrganizationId": "string"  }'
{
  "changeDate": "1s"
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?