List policy schemas
List policy schemas
Path Parameters
Query Parameters
Cursor for forward pagination. Returned in Pagination.after_cursor. Mutually exclusive with before.
Cursor for backward pagination. Returned in Pagination.before_cursor. Mutually exclusive with after.
Opt-in to additional response fields. Repeatable; matches the expand[] convention used across the Keycard API.
Filter schemas by default status. When true, returns only the zone's default schema. When false, returns only non-default schemas. Omit to return all schemas.
Deprecated. Use filter[default] instead.
Filter schemas by default status. When true, returns only the zone's default schema. When false, returns only non-default schemas. Omit to return all schemas.
Still honored for backward compatibility. Supplying both is_default and filter[default] with conflicting values returns 400 Bad Request.
Maximum number of items to return per page.
Field to sort by.
Header Parameters
Returns
List policy schemas
curl https://api.keycard.ai/zones/$ZONE_ID/policy-schemas{
"items": [
{
"created_at": "2019-12-27T18:11:19.117Z",
"status": "active",
"updated_at": "2019-12-27T18:11:19.117Z",
"version": "version",
"archived_at": "2019-12-27T18:11:19.117Z",
"cedar_schema": "cedar_schema",
"cedar_schema_json": {},
"deprecated_at": "2019-12-27T18:11:19.117Z",
"is_default": true
}
],
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}Returns Examples
{
"items": [
{
"created_at": "2019-12-27T18:11:19.117Z",
"status": "active",
"updated_at": "2019-12-27T18:11:19.117Z",
"version": "version",
"archived_at": "2019-12-27T18:11:19.117Z",
"cedar_schema": "cedar_schema",
"cedar_schema_json": {},
"deprecated_at": "2019-12-27T18:11:19.117Z",
"is_default": true
}
],
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}