Sandbox
Archive employment
Archives an employment, setting its status to archived.
This endpoint is only available in Sandbox and allows partners to clean up test employees during automated E2E testing without requiring Remote manual intervention.
This endpoint will respond with a 404 outside of the Sandbox environment.
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.
delete/v1/sandbox/employments/{employment_id}
Request
- Base URLhttps://gateway.remote.com
- URLhttps://gateway.remote.com/v1/sandbox/employments/{employment_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
employment_idstring required
Employment ID
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.