Team Roles
Delete a custom role.
Changed onDeletes a custom role belonging to this team. Reserved system roles cannot be deleted, and a role cannot be deleted while it still has members assigned, has pending invitations, or is set as an organization's default SSO role.
delete/api/v1/teams/roles/{roleId}
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
roleIdinteger required
The unique role identifier.
Response
Custom role deleted successfully. It will no longer appear in GET /teams/roles results.
Example response
{
"status": "success",
"data": {
"deleted": true
}
}Changes
- info
endpoint added
- info