Skip to main content

Get an Object Type by Id

Get a specific object type by type id.

GET /v1/object-types/:type

Parameters

ParameterDescriptionTypeRequired
typeThe type id of the object type to retrieve.URL paramyes

Request

curl "https://api.warrant.dev/v1/object-types/report" \
-H "Authorization: ApiKey YOUR_KEY"

Response

{
"type": "report",
"relations": {
"parent": {},
"owner": {},
"editor": {
"inheritIf": "owner"
},
"viewer": {
"inheritIf": "anyOf",
"rules": [
{
"inheritIf": "editor"
},
{
"inheritIf": "viewer",
"ofType": "report",
"withRelation": "parent"
}
]
}
}
}