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

id
integer
required

Body

application/json
address
string
required
city
string
required
zipcode
string
required
external_reference
string | null
country
string | null
additional_address
string | null
indivision
boolean | null
fiscal_informations
object[] | null

Response

200
application/json
`WorksiteResource`
data
object
required