REST API
- Introduction
- Models
- Connector Definitions
- Connectors
- Syncs
- Sync Runs
- Sync Records
- Reports
- Roles
- Catalogs
Roles
List Roles
Retrieves a list of all roles available.
GET
/
enterprise
/
api
/
v1
/
roles
curl --request GET \
--url https://api.squared.ai/enterprise/api/v1/roles \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "1",
"type": "roles",
"attributes": {
"role_name": "Admin",
"role_desc": "An Admin can add and manage Sources, Destinations, Models, Syncs, and Workspaces.",
"policies": {
"permissions": {}
},
"updated_at": "2024-08-01T10:03:39.086Z",
"created_at": "2024-08-01T10:03:39.021Z"
}
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200
application/json
A JSON array of roles
Unique identifier for the role
Example:
"1"
Type of the resource
Example:
"roles"
Name of the role
Example:
"Admin"
Description of the role
Example:
"An Admin can add and manage Sources, Destinations, Models, Syncs, and Workspaces."
Timestamp of the last update
Example:
"2024-08-01T10:03:39.086Z"
Timestamp of creation
Example:
"2024-08-01T10:03:39.021Z"
Was this page helpful?
curl --request GET \
--url https://api.squared.ai/enterprise/api/v1/roles \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"id": "1",
"type": "roles",
"attributes": {
"role_name": "Admin",
"role_desc": "An Admin can add and manage Sources, Destinations, Models, Syncs, and Workspaces.",
"policies": {
"permissions": {}
},
"updated_at": "2024-08-01T10:03:39.086Z",
"created_at": "2024-08-01T10:03:39.021Z"
}
}
]
}