projectRole property selects a built-in project role and is available for general-purpose project collaboration. Creating or managing custom project roles is an Enterprise feature; organizations without an Enterprise plan cannot create custom roles. The customProjectRoleId property selects an existing custom project role. That role must already exist, belong to the specified team, and be usable by the authenticated caller. This operation does not create a custom role. Exactly one of projectRole and customProjectRoleId must be supplied.curl --location 'https://api.apidog.com/v1/project-access-grants?locale=en-US' \
--header 'X-Apidog-Api-Version: 2026-05-28' \
--header 'X-Apidog-Api-Version: 2024-03-28' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"projectRole": "string",
"customProjectRoleId": null
}'{
"success": true,
"data": {
"status": "granted",
"teamId": 41,
"projectId": 73,
"email": "member@example.com",
"projectRole": "readonly"
}
}