Update an Object Type
Update an object type.
Endpoint
PUT /v2/object-types/:type
Request
Path Params
type string
The type
of the object type to update.
Body
relations object
The set of all relationships subjects can have on objects of this type. See Key Concepts > Object Types to learn more.
- cURL
PUT /v2/object-types/:type
curl "https://api.warrant.dev/v2/object-types/report" \
-X PUT \
-H "Authorization: ApiKey YOUR_KEY" \
--data-raw \
'{
"relations": {
"editor": {},
"owner": {},
"parent": {},
"viewer": {}
}
}'
Response
Headers
Warrant-Token string
A unique transaction identifier for this write operation. Can be cached and passed on subsequent read requests.
Body
relations object
The set of all relationships subjects can have on objects of this type. See Key Concepts > Object Types to learn more.
200 OK
{
"type": "report",
"relations": {
"editor": {},
"owner": {},
"parent": {},
"viewer": {}
}
}