Update an Object Type
Update an object type.
Endpoint
PUT /v1/object-types/:type
Request
Path Params
Parameter | Type | Description | Required |
---|---|---|---|
type | string | The type of the object type to update. | yes |
Body
Parameter | Type | Description | Required |
---|---|---|---|
relations | object | The set of all relationships subjects can have on objects of this type. See Key Concepts > Object Types to learn more. | yes |
- cURL
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": {}
}
}'
PUT /v1/object-types/:type
PUT /v1/object-types/:type
PUT /v1/object-types/:type
PUT /v1/object-types/:type
PUT /v1/object-types/:type
PUT /v1/object-types/:type
Response
200 OK
{
"type": "report",
"relations": {
"editor": {},
"owner": {},
"parent": {},
"viewer": {}
}
}