Skip to main content
POST
/
api
/
contractors
/
certification
Upload contractor certification
curl --request POST \
  --url https://api.propops.app/api/contractors/certification \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form action=upload \
  --form contractor_uuid=3c90c3cc-0d44-4b50-8888-8dd25736052a \
  --form csrf_token=abc123def456 \
  --form 'cert_type=Gas Safe Certificate' \
  --form expiry_date=2025-12-31 \
  --form file='@example-file'
{
  "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
contractor_uuid
string<uuid>
required
csrf_token
string
required
Example:

"abc123def456"

cert_type
string
Example:

"Gas Safe Certificate"

expiry_date
string<date>
Example:

"2025-12-31"

file
file

Response

Certification uploaded

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"