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 \
--form file=@example-file
{
"data": {
"id": 123,
"worksite_operation_id": 123,
"type_id": "<string>",
"type": "<string>",
"file_name": "<string>",
"url": "<string>",
"status": "<string>",
"notes": "<string>",
"required": "<string>",
"created_at": "<string>"
}
}
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 \
--form file=@example-file
{
"data": {
"id": 123,
"worksite_operation_id": 123,
"type_id": "<string>",
"type": "<string>",
"file_name": "<string>",
"url": "<string>",
"status": "<string>",
"notes": "<string>",
"required": "<string>",
"created_at": "<string>"
}
}
WorksiteDocumentResource
The response is of type object
.