List Object Types
List all object types.
Endpoint
GET /v1/object-types
Request
Query Params
This endpoint supports all of the query parameters specified in the Pagination & Sorting section. Supported values for the sortBy
parameter are objectType
and createdAt
.
- cURL
- CLI
GET /v1/object-types
curl "https://api.warrant.dev/v1/object-types" \
-H "Authorization: ApiKey YOUR_KEY"
GET /v1/object-types
warrant objecttype list
GET /v1/object-types
GET /v1/object-types
GET /v1/object-types
GET /v1/object-types
GET /v1/object-types
GET /v1/object-types
Response
200 OK
[
{
"type": "role",
"relations": {
"parent": {},
"owner": {},
"editor": {
"inheritIf": "owner"
},
"member": {
"inheritIf": "member",
"ofType": "role",
"withRelation": "parent"
},
"viewer": {
"inheritIf": "editor"
}
}
},
{
"type": "tenant",
"relations": {
"member": {}
}
}
]