PATCH
/
unified
/
hris
/
employees
/
{id}
/
tasks
/
{subResourceId}
Update Employee Task
curl --request PATCH \
  --url https://api.stackone.com/unified/hris/employees/{id}/tasks/{subResourceId} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --header 'x-account-id: <x-account-id>' \
  --data '{
  "comment": "All required documents have been submitted",
  "status": "blocked"
}'
{
  "statusCode": 200,
  "message": "Record updated successfully.",
  "timestamp": "2021-01-01T01:01:01.000Z"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

x-account-id
string
required

The account identifier

Path Parameters

id
string
required
subResourceId
string
required

Query Parameters

proxy
any

Body

application/json

Response

200
application/json

The task has been successfully updated.

The response is of type object.