Sample - OpenAI API
POST/projects/{project_id}/groups/{group_id}/roles

Assign project role to group

Assigns a project role to a group within a project.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters · 1 body field
project_idstringrequired
The ID of the project to update.
group_idstringrequired
The ID of the group that should receive the project role.

Identifies the project role to assign to the group.

role_idstringrequired
Identifier of the role to assign.

2 status codes
200Project role assigned to the group successfully.
objectstringrequired
Always `group.role`.
Allowed:group.role
groupobjectrequired
Summary information about a group returned in role assignment responses.
roleobjectrequired
Details about a role that can be assigned through the public Roles API.
429The request was rejected because a rate limit was exceeded.
errorobjectrequired

Error handling

A 429 is returned: The request was rejected because a rate limit was exceeded.