Update an Object Type
Update an object type.
PUT /v1/object-types/:type
Parameters
Parameter | Description | Type | Required |
---|---|---|---|
type | The id of the object type to update. | URL param | yes |
relations | The set of all relations for this object type. See object types concepts for more details. | JSON body | yes |
Request
- Curl
curl "https://api.warrant.dev/v1/object-types/report" \
-X PUT \
-H "Authorization: ApiKey YOUR_KEY" \
--data-raw \
'{
"relations": {
"editor": {},
"owner": {},
"parent": {},
"viewer": {}
}
}'
Response
{
"type": "report",
"relations": {
"editor": {},
"owner": {},
"parent": {},
"viewer": {}
}
}