PUT
/
v1
/
subcontractors
/
{id}
curl --request PUT \
  --url https://api.opx.co/partners/v1/subcontractors/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "company_name": "<string>",
  "siret": "<string>",
  "firstname": "<string>",
  "lastname": "<string>",
  "address": "<string>",
  "city": "<string>",
  "zipcode": "<string>",
  "country": "<string>",
  "phone": "<string>",
  "email": "jsmith@example.com"
}'
{
  "data": {
    "id": 123,
    "company_name": "<string>",
    "siren": "<string>",
    "siret": "<string>",
    "address": "<string>",
    "city": "<string>",
    "zipcode": "<string>",
    "country": "<string>",
    "firstname": "<string>",
    "lastname": "<string>",
    "phone": "<string>",
    "email": "<string>"
  }
}

Path Parameters

id
integer
required

Body

application/json

Response

200
application/json

SubcontractorResource

The response is of type object.