Skip to main content
PATCH
http://localhost:3000
/
resource-types
/
{id}
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"
}

Path Parameters

id
string
required
ID of the resource type to update

Request Body

name
string
Display name for the resource type

Response

Returns the updated resource type object.
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"
}