# PatchTerminateByEmploymentId Terminate an employment. __Activity name :__ PatchTerminateByEmploymentId Terminate an employment. Effectively, the `endDate` of the employment will be set to the given date. Please note that setting the `endDate` for an employment affects multiple resources in Loket (e.g. wage, workingHours and absence). Note that the termination date is to be filled with the last day of employment. If the termination needs to be reversed use the `../employments/{employmentId}/reinstate` endpoint. If the termination needs to be changed, use this endpoint to revise the termination data The metadata for endOfEmploymentReason and endOfEmploymentReasonTaxAuthorities are included in the 'regular' metadata-endpoint of the Employment resource. <span style="color:red">__Please note! It will not be possible to perform termination from 01-01-2020 onwards with the resource v20181231 ! Please use the newer version of this endpoint. __ </span> Select loket.nl (REST) API URL: /providers/employers/employees/employments/{employmentId}/terminate Insert loket.nl (REST) API URL: /providers/employers/employees/employments/{employmentId}/terminate Update loket.nl (REST) API URL: /providers/employers/employees/employments/{employmentId}/terminate Delete loket.nl (REST) API URL: /providers/employers/employees/employments/{employmentId}/terminate Select loket.nl (REST) API Operation: patch /providers/employers/employees/employments/{employmentId}/terminate - Catalog: `LoketNlRest` - Schema: `Employment` - Field Selection Method: NotRequired - Base Path: `content` This is a read-only table function. The loket.nl (REST) API may not support changing the data or the Invantive SQL driver for loket.nl (REST) does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the loket.nl (REST) API. ## Parameters of Table Function | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `body` | `string` | ☑ | | The request body contains an object containing fields related to termination of an employment. | | `employmentId` | `guid` | ☑ | | The unique identifier of the employment | ## Columns of Table Function The columns of the table function `PatchTerminateByEmploymentId` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `DUMMY` | `string(1)` | | ☑ | Default column added since the specification specifies that no data is returned. |