Create Employee Citizenship Record
POST {{base_url}}/employee/:Employee/citizenship
Use this endpoint to create a new citizenship entry for the employee in the Employees hub.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
requiredFieldValidation | string | Optional. |
The flag that indicates whether or not the validation for required screen designer fields is needed.
Use "N" if you want to bypass the validation. Otherwise, the default is "Y," which enforces the validation.
NOTE: This does not apply to required system fields. |
| startWorkflow
| string | | Optional.
The flag that indicates whether or not the trigger for a workflow is initiated.
Use "N" if you want to bypass the trigger. Otherwise, the default is "Y," which initiates the workflow. |
Request Body
[{"name"=>"Country", "value"=>"Dropdown", "datatype"=>"string"}, {"name"=>"CitizenshipType", "value"=>"Dropdown", "datatype"=>"string"}, {"name"=>"Expiration", "value"=>"Date", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | Required. |
The type of content supported by the API endpoint. |
| Authorization
| string | | Required.
The type of authorization supported by the API endpoint. |
RESPONSES
status: Created
[{"Employee":"EMPLOYEE1234567889","RecordID":"RECORDID9B2C47369CFC86A5CA7461D0","Country":"NF","CountryDescription":"Norfolk Island","CitizenshipType":"US","CitizenshipTypeDescription":"US Citizen","Expiration":""}]