List roles
List roles
GET/zones/{zoneId}/roles
Returns the roles defined in the specified zone. The full result set is currently returned in a single page; the after/before/limit cursor parameters are reserved and not yet enforced, and pagination cursors are always null.
Path Parameters
zoneId: string
Query Parameters
after: optional string
Cursor for forward pagination
minLength1
maxLength255
before: optional string
Cursor for backward pagination
minLength1
maxLength255
identifier: optional string
Filter roles by identifier
limit: optional number
Maximum number of items to return
minimum1
maximum100
Returns
List roles
curl https://api.keycard.ai/zones/$ZONE_ID/roles \
-H "Authorization: Bearer $KEYCARD_API_API_KEY"{
"items": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"identifier": "identifier",
"owner_type": "platform",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"description": "description"
}
],
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}Returns Examples
{
"items": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"identifier": "identifier",
"owner_type": "platform",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"description": "description"
}
],
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}