curl --request POST \
--url https://api.example.com/organizations/{organization_id}/worksites-list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"name": "<string>",
"address": {
"address": "<string>",
"content": {
"countryCode": "DE",
"addressType": "HAUSANSCHRIFT"
}
},
"isActive": true,
"isPrimary": true,
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"correspondenceAddress": {
"address": "<string>",
"content": {
"countryCode": "DE",
"addressType": "HAUSANSCHRIFT"
}
},
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"phone": {
"phoneNumber": "<string>",
"phoneType": "mobile"
},
"roles": []
}
],
"taxIdentifiers": {
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"taxData": {
"country": "<string>",
"businessType": "Sole Trader",
"payeReferenceNumber": "<string>",
"accountsOfficeReference": "<string>",
"validFrom": "2023-12-25",
"validTo": "2023-12-25"
}
},
"insuranceData": {
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"insuranceCountry": "DE",
"worksiteLocationNumber": "98797889",
"accidentInsuranceCompanyNumber": "98797889",
"accidentInsurancePin": "DE-WS-PIN-456",
"payrollServiceProviderNumber": "98797889",
"payrollProcessingLocationNumber": "98797889"
}
}
]
'[
{
"name": "<string>",
"address": {
"id": "<string>",
"address": "<string>",
"components": {
"formatted_address": "<string>",
"street_number": "<string>",
"road": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postal_code": "<string>",
"postal_code_suffix": "<string>",
"latitude": 123,
"longitude": 123
},
"content": {
"normalizedAddress": "<string>",
"countryCode": "DE",
"addressType": "HAUSANSCHRIFT"
}
},
"isActive": true,
"isPrimary": true,
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"correspondenceAddress": {
"id": "<string>",
"address": "<string>",
"components": {
"formatted_address": "<string>",
"street_number": "<string>",
"road": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postal_code": "<string>",
"postal_code_suffix": "<string>",
"latitude": 123,
"longitude": 123
},
"content": {
"normalizedAddress": "<string>",
"countryCode": "DE",
"addressType": "HAUSANSCHRIFT"
}
},
"orgId": "<string>",
"contacts": [
{
"name": "<string>",
"id": "<string>",
"email": "jsmith@example.com",
"phone": {
"phoneNumber": "<string>",
"phoneType": "mobile"
},
"roles": []
}
],
"taxIdentifiers": {
"id": 123,
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"taxData": {
"country": "<string>",
"businessType": "Sole Trader",
"payeReferenceNumber": "<string>",
"accountsOfficeReference": "<string>",
"validFrom": "2023-12-25",
"validTo": "2023-12-25"
}
},
"insuranceData": {
"id": 123,
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"insuranceCountry": "DE",
"worksiteLocationNumber": "98797889",
"accidentInsuranceCompanyNumber": "98797889",
"accidentInsurancePin": "DE-WS-PIN-456",
"payrollServiceProviderNumber": "98797889",
"payrollProcessingLocationNumber": "98797889"
}
}
]curl --request POST \
--url https://api.example.com/organizations/{organization_id}/worksites-list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"name": "<string>",
"address": {
"address": "<string>",
"content": {
"countryCode": "DE",
"addressType": "HAUSANSCHRIFT"
}
},
"isActive": true,
"isPrimary": true,
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"correspondenceAddress": {
"address": "<string>",
"content": {
"countryCode": "DE",
"addressType": "HAUSANSCHRIFT"
}
},
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"phone": {
"phoneNumber": "<string>",
"phoneType": "mobile"
},
"roles": []
}
],
"taxIdentifiers": {
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"taxData": {
"country": "<string>",
"businessType": "Sole Trader",
"payeReferenceNumber": "<string>",
"accountsOfficeReference": "<string>",
"validFrom": "2023-12-25",
"validTo": "2023-12-25"
}
},
"insuranceData": {
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"insuranceCountry": "DE",
"worksiteLocationNumber": "98797889",
"accidentInsuranceCompanyNumber": "98797889",
"accidentInsurancePin": "DE-WS-PIN-456",
"payrollServiceProviderNumber": "98797889",
"payrollProcessingLocationNumber": "98797889"
}
}
]
'[
{
"name": "<string>",
"address": {
"id": "<string>",
"address": "<string>",
"components": {
"formatted_address": "<string>",
"street_number": "<string>",
"road": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postal_code": "<string>",
"postal_code_suffix": "<string>",
"latitude": 123,
"longitude": 123
},
"content": {
"normalizedAddress": "<string>",
"countryCode": "DE",
"addressType": "HAUSANSCHRIFT"
}
},
"isActive": true,
"isPrimary": true,
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"correspondenceAddress": {
"id": "<string>",
"address": "<string>",
"components": {
"formatted_address": "<string>",
"street_number": "<string>",
"road": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postal_code": "<string>",
"postal_code_suffix": "<string>",
"latitude": 123,
"longitude": 123
},
"content": {
"normalizedAddress": "<string>",
"countryCode": "DE",
"addressType": "HAUSANSCHRIFT"
}
},
"orgId": "<string>",
"contacts": [
{
"name": "<string>",
"id": "<string>",
"email": "jsmith@example.com",
"phone": {
"phoneNumber": "<string>",
"phoneType": "mobile"
},
"roles": []
}
],
"taxIdentifiers": {
"id": 123,
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"taxData": {
"country": "<string>",
"businessType": "Sole Trader",
"payeReferenceNumber": "<string>",
"accountsOfficeReference": "<string>",
"validFrom": "2023-12-25",
"validTo": "2023-12-25"
}
},
"insuranceData": {
"id": 123,
"validFrom": "2023-12-25",
"validTo": "2023-12-25",
"insuranceCountry": "DE",
"worksiteLocationNumber": "98797889",
"accidentInsuranceCompanyNumber": "98797889",
"accidentInsurancePin": "DE-WS-PIN-456",
"payrollServiceProviderNumber": "98797889",
"payrollProcessingLocationNumber": "98797889"
}
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes