Delete organization role
DELETE/organization/roles/{role_id}
Deletes a custom role from the organization.
Path Parameters
role_id: string
Returns
id: string
Identifier of the deleted role.
deleted: boolean
Whether the role was deleted.
object: "role.deleted"
Always role.deleted.
Delete organization role
curl -X DELETE https://api.openai.com/v1/organization/roles/role_01J1F8ROLE01 \
-H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
-H "Content-Type: application/json"
{
"object": "role.deleted",
"id": "role_01J1F8ROLE01",
"deleted": true
}
Returns Examples
{
"object": "role.deleted",
"id": "role_01J1F8ROLE01",
"deleted": true
}