Beneficiaries
ContractsTemplates
Conventions
Materials
Operations
Subcontractors
Utils
Worksites
WorksitesDocuments
Subcontractors
Subcontractor creation
POST
/
v1
/
subcontractors
curl --request POST \
--url https://api.opx.co/partners/v1/subcontractors \
--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>"
}
}
Body
application/json
Response
200
application/json
SubcontractorResource
The response is of type object
.
curl --request POST \
--url https://api.opx.co/partners/v1/subcontractors \
--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>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.