Upsert engagement agreement details
Changed onCreates or updates the engagement agreement details for an employment.
In some countries the details apply only to some contracts, depending on the contract's hiring model. For a contract they don't apply to, this returns 404 "Engagement agreement details form not found for this employment's contract."
This endpoint requires country-specific data. The exact required fields will vary depending on which country the employment is in. To see the list of parameters for each country, see the Show form schema endpoint under the Countries category.
Please note that compliance requirements for each country are subject to change according to local laws. Using Remote's json-schema-form is recommended to avoid compliance issues and to have the latest version of a country's requirements.
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 type | Category | Read only Scope | Write only Scope (read access implicit) |
|---|---|---|---|
| Company-scoped access token | Manage employments (employments) | - | Manage employments (employment:write) |
| Company-scoped access token (assertion) | Manage employments (employments) | - | Manage employments (employment:write) |
| Customer API token | Manage employments (employments) | - | Manage employments (employment:write) |
Request
- Base URLhttps://gateway.remote.com
- Auth
- OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopeshttps://gateway.remote.com/company.manage
- or OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopesemployment:write
- or OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopesall:write
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesemployment:write
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesall:write
- or HTTP bearer
Path parameters
Employment ID
Request body
Engagement agreement details schema compatible params.
Engagement agreement details params. As its properties may vary depending on the country, you must query the Show form schema endpoint passing the country code and the engagement_agreement_details form name.
Example request
{
"engagement_agreement_details": {
"allowances_details": [
"meal_allowance",
"transportation_commuter_allowance"
],
"available_pto": 20,
"break_time_per_day": 1,
"business_expenses": "Business expenses details",
"cba": "CBA 1",
"cba_document": [
{
"content": "JVBERi0xLjQKJSBDQkEgZG9jdW1lbnQK",
"name": "cba_document.pdf"
}
],
"covenants": [
"confidentiality",
"non_compete"
],
"has_allowances": "yes",
"has_bonus": "yes",
"has_business_expenses": "yes",
"has_business_presence": "yes",
"has_cba": "yes",
"has_commissions": "yes",
"has_covenants": "yes",
"has_illness_remuneration": "yes",
"has_overtime_compensation": "yes",
"has_pension_scheme": "yes",
"has_signing_bonus": "yes",
"has_similar_roles": "yes",
"has_similar_work_conditions": "yes",
"illness_remuneration_details": "Illness remuneration details",
"max_annual_gross_salary": 100000,
"min_annual_gross_salary": 50000,
"overtime_compensation_begins": 10,
"overtime_compensation_type": "extra_pay",
"overtime_pay_percentage": 5,
"pension_scheme": "Pension scheme details",
"similar_roles": "Role 1, Role 2, Role 3",
"similar_work_conditions_details": "Similar work conditions details",
"work_hours_per_week": 40,
"working_days": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday"
]
}
}Response
Success
A generic success response returned by operations that don't produce a specific resource (e.g., updates, deletes).
Example response
{
"data": {
"status": "ok"
}
}Changes
- info
the security scope
employment:writewas added to the endpoint's security schemeOAuth2CompanyManagerAssertion - info
the security scope
https://gateway.remote.com/company.managewas added to the endpoint's security schemeOAuth2AuthorizationCode - info
the security scope
all:writewas removed from the endpoint's security schemeOAuth2AuthorizationCode
1 more change in this revision
- info