Skip to main content
PATCH
/
v1
/
staff
/
{id}
Update staff
curl --request PATCH \
  --url http://localhost:3000/v1/staff/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "role_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "operational_units": [
    "<string>"
  ]
}
'
{
  "success": true,
  "staff": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "taxonomy_id": "<string>",
    "email": "jsmith@example.com",
    "first_name": "<string>",
    "last_name": "<string>",
    "role_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "operational_units": [
      "<string>"
    ],
    "role": "<string>",
    "role_description": "<string>"
  }
}

Path Parameters

id
string
required

Staff UUID or taxonomy ID

Body

application/json
role_id
string<uuid>
operational_units
string[]

Response

Staff updated successfully

success
boolean
required
staff
object
required