Skip to Content
ZITADEL Docs
APIsCore ResourcesV2Project

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
POST
/zitadel.project.v2.ProjectService/CreateProjectGrant

Header Parameters

Connect-Protocol-Version*1

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?Connect-Timeout-Ms

Define the timeout, in ms

Request Body

application/json
  1. body
projectId*project_id

ProjectID is the unique identifier of the project.

grantedOrganizationId*granted_organization_id

GrantedOrganizationID is the unique identifier of the organization the project will be granted to.

roleKeys?array<string>

RoleKeys is a list of roles to be granted to the organization for self management. The roles are identified by their keys.

Response Body

Success

application/json
  1. response
creationDate?creation_date

CreationDate is the timestamp of the project grant creation.

Formatdate-time
Example Request
curl -X POST 'https://example.com/zitadel.project.v2.ProjectService/CreateProjectGrant' \  -H 'Connect-Protocol-Version: 1' \  -H 'Content-Type: application/json' \  -d '{  "projectId": "string",  "grantedOrganizationId": "string"}'
Example Response
{  "creationDate": "2023-01-15T01:30:15.01Z"}

Was this page helpful?