curl --request POST \
--url https://sandbox.intermezzo.ai/organizations/{organization_id}/worksites \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"name": "<string>",
"address": "<string>",
"isActive": true,
"isPrimary": true,
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"phone": {
"phoneNumber": "<string>",
"phoneType": "mobile"
},
"roles": []
}
],
"taxIdentifiers": [],
"insuranceData": [
{
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"worksiteLocationNumber": "<string>",
"accidentInsuranceCompanyNumber": "<string>",
"accidentInsurancePin": "<string>",
"payrollServiceProviderNumber": "<string>",
"payrollProcessingLocationNumber": "<string>"
}
]
}'
{
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"name": "<string>",
"address": "<string>",
"isActive": true,
"isPrimary": true,
"id": "wst_01h455vb4pex5vsknk084sn02q",
"orgId": "org_01h455vb4pex5vsknk084sn02q",
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"phone": {
"phoneNumber": "<string>",
"phoneType": "mobile"
},
"id": "con_01h455vb4pex5vsknk084sn02q",
"roles": []
}
],
"taxIdentifiers": [],
"insuranceData": [],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
curl --request POST \
--url https://sandbox.intermezzo.ai/organizations/{organization_id}/worksites \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"name": "<string>",
"address": "<string>",
"isActive": true,
"isPrimary": true,
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"phone": {
"phoneNumber": "<string>",
"phoneType": "mobile"
},
"roles": []
}
],
"taxIdentifiers": [],
"insuranceData": [
{
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"worksiteLocationNumber": "<string>",
"accidentInsuranceCompanyNumber": "<string>",
"accidentInsurancePin": "<string>",
"payrollServiceProviderNumber": "<string>",
"payrollProcessingLocationNumber": "<string>"
}
]
}'
{
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"name": "<string>",
"address": "<string>",
"isActive": true,
"isPrimary": true,
"id": "wst_01h455vb4pex5vsknk084sn02q",
"orgId": "org_01h455vb4pex5vsknk084sn02q",
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"phone": {
"phoneNumber": "<string>",
"phoneType": "mobile"
},
"id": "con_01h455vb4pex5vsknk084sn02q",
"roles": []
}
],
"taxIdentifiers": [],
"insuranceData": [],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
TypeID with prefix 'org'
"org_01h455vb4pex5vsknk084sn02q"
Successful Response
The response is of type object
.
Was this page helpful?