Get an Object Type by Id
Get a specific object type by type
id.
GET /v1/object-types/:type
Parameters
Parameter | Description | Type | Required |
---|---|---|---|
type | The type id of the object type to retrieve. | URL param | yes |
Request
- Curl
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"
}
]
}
}
}