Skip to main content
PATCH
/
api
/
v1
/
unit_roles
/
{id}
Updates the UnitRole resource.
curl --request PATCH \
  --url http://api/v1/unit_roles/{id} \
  --header 'Content-Type: application/merge-patch+json' \
  --data '{}'
{
  "@context": "<string>",
  "@id": "<string>",
  "@type": "<string>",
  "role": {
    "@context": "<string>",
    "@id": "<string>",
    "@type": "<string>",
    "id": 123,
    "name": "<string>",
    "namePlural": "<string>",
    "position": 123,
    "options": [
      "<string>"
    ],
    "chartName": "<string>"
  }
}

Path Parameters

id
string
required

UnitRole identifier

Body

application/merge-patch+json · object

The updated UnitRole resource

Response

UnitRole resource updated

@context
@id
string
@type
string
role
object | null