Worksites
Worksite update
Beneficiaries
ContractsTemplates
Conventions
Materials
Operations
Subcontractors
Utils
Worksites
WorksitesDocuments
Worksites
Worksite update
PUT
/
v1
/
worksites
/
{id}
curl --request PUT \
--url https://api.opx.co/partners/v1/worksites/{id} \
--header 'Content-Type: application/json' \
--data '{
"external_reference": "<string>",
"address": "<string>",
"city": "<string>",
"zipcode": "<string>",
"country": "<string>",
"additional_address": "<string>",
"indivision": true,
"fiscal_informations": [
{
"firstname": "<string>",
"lastname": "<string>",
"fiscal_number": "<string>",
"fiscal_reference": "<string>"
}
]
}'
{
"data": {
"id": 123,
"reference": "<string>",
"external_reference": "<string>",
"convention_id": 123,
"beneficiary_id": 123,
"installer_name": "<string>",
"zipcode": "<string>",
"address": "<string>",
"city": "<string>",
"status": "<string>",
"created_at": "<string>",
"precarity_type": "<string>",
"fiscal_informations": [
{
"firstname": "<string>",
"lastname": "<string>",
"fiscal_number": "<string>",
"fiscal_reference": "<string>"
}
],
"indivision": true
}
}
Path Parameters
Body
application/json
Response
200
application/json
`WorksiteResource`
curl --request PUT \
--url https://api.opx.co/partners/v1/worksites/{id} \
--header 'Content-Type: application/json' \
--data '{
"external_reference": "<string>",
"address": "<string>",
"city": "<string>",
"zipcode": "<string>",
"country": "<string>",
"additional_address": "<string>",
"indivision": true,
"fiscal_informations": [
{
"firstname": "<string>",
"lastname": "<string>",
"fiscal_number": "<string>",
"fiscal_reference": "<string>"
}
]
}'
{
"data": {
"id": 123,
"reference": "<string>",
"external_reference": "<string>",
"convention_id": 123,
"beneficiary_id": 123,
"installer_name": "<string>",
"zipcode": "<string>",
"address": "<string>",
"city": "<string>",
"status": "<string>",
"created_at": "<string>",
"precarity_type": "<string>",
"fiscal_informations": [
{
"firstname": "<string>",
"lastname": "<string>",
"fiscal_number": "<string>",
"fiscal_reference": "<string>"
}
],
"indivision": true
}
}