Team Roles
Create a custom role.
Changed onCreates a new custom role for the team with the specified permissions. Role names cannot match reserved role names (Owner, Administrator, Member).
post/api/v1/teams/roles
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"name": "Content Editor",
"description": "Can manage content",
"type": "local",
"permissions": [
"Create Conversation",
"Export Conversation"
],
"agents": [
1,
2
]
}Response
Team role created successfully
Example response
{
"status": "success",
"data": {
"id": 1,
"name": "Content Editor",
"description": "Can manage content",
"type": "local",
"has_access_to_projects": true,
"agents": [
1,
2
],
"permissions": [
"Create Conversation",
"Export Conversation"
],
"created_at": "2023-04-30 16:43:53",
"updated_at": "2023-04-30 16:43:53"
}
}Changes
- info
endpoint added
- info