POST
/
v1
/
worksites
/
{id}
/
documents
curl --request POST \
  --url https://api.opx.co/partners/v1/worksites/{id}/documents \
  --header 'Content-Type: multipart/form-data' \
  --form type=AH \
  --form 'name=<string>' \
  --form 'url=<string>' \
  --form worksite_operation_id=123
{
  "data": {
    "id": 123,
    "worksite_operation_id": 123,
    "type": "<string>",
    "file_name": "<string>",
    "url": "<string>",
    "status": "<string>",
    "notes": "<string>",
    "required": "<string>",
    "created_at": "<string>"
  }
}

Path Parameters

id
integer
required

Body

multipart/form-data

Response

200
application/json

WorksiteDocumentResource

The response is of type object.