Update a contract document for a contractor

Updates the contract document of a contractor in place, instead of creating a new one. Send the same contract_document fields as when creating it, so the whole form. The one exception is ir_35 or nationality for the countries that ask for it, which can be sent on their own.
Omitting service_duration.expiration_date makes the contract open-ended, just as on create. To clear an existing end date, send the whole form without expiration_date.
The caller needs a write permission and read access to the document, as for editing it in the platform. Without read access, the document is reported as not found (404).
A contract document that anyone has already signed, the company included, can't be edited and returns 422. A contract document in a status that can't be edited, such as a finished one, returns 404.

Authentication

This endpoint accepts any one of the following token types:

  • Company-scoped access token (OAuth2AuthorizationCode) — obtained by a company manager through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.
  • Company-scoped access token (assertion) (OAuth2CompanyManagerAssertion) — obtained through the urn:ietf:params:oauth:grant-type:jwt-bearer grant for a company manager. See OAuth Assertion.
  • Customer API token (CustomerAPIToken) — generated by the customer on their Integration Settings page, with the scopes they choose there. See Authorization for customers.

Scopes

Any one of the scopes in a token type's row is enough. all:write works too.

Token typeCategoryRead only ScopeWrite only Scope (read access implicit)
Company-scoped access tokenManage employment documents (employment_documents)-Manage documents (document:write)
Company-scoped access token (assertion)Manage employment documents (employment_documents)-Manage documents (document:write)
Customer API tokenManage employment documents (employment_documents)-Manage documents (document:write)
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Employment ID

string
required

Document ID

Body Params

UpdateContractDocumentParams

Parameters for updating a contract document

contract_document
object
required

Contract document parameters to change. Its properties may vary depending on the country.

boolean

When true, skips AI-based compliance checks (e.g. services and deliverables classification). Defaults to false.

Responses

Callback
Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json