Sandbox
Reassign default legal entity
Set a different legal entity as the company's default entity.
The default entity is used when creating new employments without an explicit entity. This endpoint is only available in Sandbox, otherwise it will respond with a 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.
put/v1/sandbox/companies/{company_id}/default-legal-entity/{legal_entity_id}
Request
- Base URLhttps://gateway.remote.com
- URLhttps://gateway.remote.com/v1/sandbox/companies/{company_id}/default-legal-entity/{legal_entity_id}
- Auth
- OAuth 2Authorization code: /auth/oauth2/authorizeToken URL: /auth/oauth2/token
- or OAuth 2Client credentialsToken URL: /auth/oauth2/token
- or HTTP bearer
Path parameters
company_idstring required
Company ID
legal_entity_idstring required
Legal Entity ID to set as the new default
Headers
Authorizationstring required
An access token of one of the types listed in this endpoint's Authentication section, as Bearer <ACCESS TOKEN>.
A token from the Refresh Token flow is of the same type as the token issued with that refresh token.
Response
Success
Example response
{
"data": {
"status": "ok"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.