Create a role
Changed onCreate a new custom role for the authenticated user's account.
Payload Requirements
- name is required and must be unique within the account.
- permissions is required and must contain at least one valid permission identifier (e.g. PROJECT_READ, DATASET_CREATE).
- System-managed fields (id, created_at, updated_at, is_predefined) are rejected if provided.
Valid example
{
"name": "Data Scientist",
"description": "Can read and create datasets and experiments.",
"permissions": ["PROJECT_READ", "DATASET_READ", "DATASET_CREATE"]
}
Invalid example (missing required permissions)
{
"name": "Data Scientist"
}
Request
- Base URLhttps://api.arize.com
- URLhttps://api.arize.com/v2/roles
- AuthHTTP bearer
Request body
Example request
{
"name": "AI Engineer",
"description": "Can read and create datasets and experiments but cannot manage spaces.",
"permissions": [
"PROJECT_READ",
"DATASET_READ",
"DATASET_CREATE",
"EXPERIMENT_READ",
"EXPERIMENT_CREATE"
]
}Response
A role object.
Changes
- warning
added the new
PROJECT_SPAN_EVAL_FEEDBACK_UPDATEenum value to the/response property for the response status - info
added the new
PROJECT_SPAN_EVAL_FEEDBACK_UPDATEenum value to the request property/
- warning
- warning
added the new
DASHBOARD_TEMPLATE_CREATEenum value to the/response property for the response status - warning
added the new
DASHBOARD_TEMPLATE_DELETEenum value to the/response property for the response status - warning
added the new
DASHBOARD_TEMPLATE_READenum value to the/response property for the response status - warning
added the new
DASHBOARD_TEMPLATE_UPDATEenum value to the/response property for the response status - info
added the new
DASHBOARD_TEMPLATE_CREATEenum value to the request property/ - info
added the new
DASHBOARD_TEMPLATE_DELETEenum value to the request property/ - info
added the new
DASHBOARD_TEMPLATE_READenum value to the request property/ - info
added the new
DASHBOARD_TEMPLATE_UPDATEenum value to the request property/
- warning