HRIS
cURL
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" }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The account identifier
The task has been successfully updated.
The response is of type object.
object
Was this page helpful?