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 theurn:ietf:params:oauth:grant-type:jwt-bearergrant 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 type | Category | Read only Scope | Write only Scope (read access implicit) |
|---|---|---|---|
| Company-scoped access token | Manage employment documents (employment_documents) | - | Manage documents (document:write) |
| Company-scoped access token (assertion) | Manage employment documents (employment_documents) | - | Manage documents (document:write) |
| Customer API token | Manage employment documents (employment_documents) | - | Manage documents (document:write) |
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||