OpenAI/assignProjectUserRole

Online calls unavailable · details below

OpenAIOpenAI API

POST/projects/{project_id}/users/{user_id}/roles

Manage assign Project User Role.

Contract-preserving POST Endpoint for assign Project User Role in the OpenAI API. Model and resource-specific values are supplied by the caller at runtime.

All 288 OpenAI Platform REST endpoints from a fixed MIT-licensed official revision, including typed SSE streaming and Realtime call management. Hub provides documentation and an independent SDK/CLI, but never proxies model, account, or usage data; callers connect directly with local API keys.

Request

operationId
assignProjectUserRole
Server
https://api.openai.com/v1
Authentication
ApiKeyAuth, AdminApiKeyAuth

Request parameters

project_id

pathstringrequired

project id value in the OpenAI API contract.

user_id

pathstringrequired

user id value in the OpenAI API contract.

Request body

PublicAssignOrganizationGroupRoleBodyrequired

Content-Type: application/json

Properties: role_id

Responses

200

UserRoleAssignmentapplication/json

Successful supplier response.

Properties: objectroleuser

429

ErrorResponseapplication/json

Supplier response with HTTP status 429.

Properties: error

{
  "object": "user.role",
  "role": {
    "object": "role",
    "permissions": [],
    "predefined_role": false
  },
  "user": {
    "added_at": 0,
    "created": 0,
    "is_default": false
  }
}