Skip to main content

Update an Object Type

Update an object type.

Endpoint

PUT /v1/object-types/:type

Request

Path Params

ParameterTypeDescriptionRequired
typestringThe type of the object type to update.yes

Body

ParameterTypeDescriptionRequired
relationsobjectThe set of all relationships subjects can have on objects of this type. See Key Concepts > Object Types to learn more.yes
PUT /v1/object-types/:type
curl "https://api.warrant.dev/v1/object-types/report" \
-X PUT \
-H "Authorization: ApiKey YOUR_KEY" \
--data-raw \
'{
"relations": {
"editor": {},
"owner": {},
"parent": {},
"viewer": {}
}
}'

Response

200 OK
{
"type": "report",
"relations": {
"editor": {},
"owner": {},
"parent": {},
"viewer": {}
}
}