Skip to main content
POST
/
api
/
jobs
/
documents
Upload or delete a job document
curl --request POST \
  --url https://api.propops.app/api/jobs/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form action=upload \
  --form job_uuid=550e8400-e29b-41d4-a716-446655440001 \
  --form csrf_token=abc123def456 \
  --form document_type_id=1 \
  --form file='@example-file' \
  --form document_uuid=3c90c3cc-0d44-4b50-8888-8dd25736052a
{
  "success": true,
  "message": "Operation completed successfully"
}

Authorizations

Authorization
string
header
required

All API requests must include a valid Bearer token in the Authorization header. Tokens are 64-character SHA-256 session hashes issued by the PropOps authentication system.

Example:

Authorization: Bearer a1b2c3d4e5f6...

Body

multipart/form-data
action
enum<string>
required
Available options:
upload,
delete
job_uuid
string<uuid>
required
Example:

"550e8400-e29b-41d4-a716-446655440001"

csrf_token
string
required
Example:

"abc123def456"

document_type_id
integer
Example:

1

file
file
document_uuid
string<uuid>

Response

Document deleted

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"