curl -X PATCH 'https://api.example.com/resource-types/resource_type_document' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Document File"
}'
{
"id": "resource_type_document",
"name": "Document File",
"key": "document",
"scopeId": "scope_acme",
"createdAt": "2024-01-15T10:30:00Z",
"createdBy": "system"
}
Update a resource type
curl -X PATCH 'https://api.example.com/resource-types/resource_type_document' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Document File"
}'
{
"id": "resource_type_document",
"name": "Document File",
"key": "document",
"scopeId": "scope_acme",
"createdAt": "2024-01-15T10:30:00Z",
"createdBy": "system"
}
curl -X PATCH 'https://api.example.com/resource-types/resource_type_document' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Document File"
}'
{
"id": "resource_type_document",
"name": "Document File",
"key": "document",
"scopeId": "scope_acme",
"createdAt": "2024-01-15T10:30:00Z",
"createdBy": "system"
}
Was this page helpful?