/employers/{employerId}/worksites
Changed onUse this endpoint to create a new Worksite for an Employer.
Accepts a standard Worksite object with no read-only values specified. If supplied, the name of the Worksite must be unique to the Employer.
Response
If successful, the endpoint responds with HTTP Status Code 201 Created and a Worksite object with the integer ID of the created Worksite in the response body. It also sets the Location header to the location of the Worksite.
If the specified Employer does not exist, this endpoint will return an error with HTTP Status Code 404 Not Found.
post/employers/{employerId}/worksites
Request
- Base URLhttps://api.securevan.com/v4
- URLhttps://api.securevan.com/v4/employers/{employerId}/worksites
- AuthHTTP basic
Path parameters
employerIdinteger required
Required; unique identifier for the Employer
Request body
Response
201
Example response
{
"worksiteId": 321,
"name": "Administration",
"isPreferred": true,
"address": {
"addressLine1": "77 Salem Street",
"unitNo": "Room H104",
"city": "Malden",
"stateOrProvince": "MA",
"zipOrPostalCode": "02148"
}
}Changes
- info
endpoint added
- info