Update Staff Member
Update an existing staff member.
Endpointโ
PATCH /v1/staff/{id}
Authenticationโ
Requires an API key with the staff:write scope.
Parametersโ
| Parameter | Type | Location | Description |
|---|---|---|---|
id | integer | path | The staff member ID |
Request Bodyโ
All fields are optional. Only provided fields will be updated.
See Create Staff Member for available fields.
Example Requestโ
curl -X PATCH "https://app.equipdash.com/api/v1/staff/5" \
-H "Authorization: Bearer eqd_live_abc123xyz789..." \
-H "Content-Type: application/json" \
-d '{
"job_title": "Senior Equipment Technician",
"status": "active"
}'
Responseโ
Success (200 OK)โ
Returns the updated staff member resource.
Errorsโ
| Status | Code | Description |
|---|---|---|
| 401 | authentication_required | No API key provided |
| 401 | invalid_api_key | Invalid API key |
| 403 | insufficient_scope | API key lacks staff:write scope |
| 403 | forbidden | Staff member belongs to different supplier |
| 404 | resource_not_found | Staff member does not exist |
| 422 | validation_error | Invalid request data |