Upload Supporting Document

POST /user/supporting-documents/

Use the POST /user/supporting-documents/ endpoint to upload a new supporting document for a mechanic.

Parameters

Body Parameters

Field

Type

Description

user

String

The ID of the user uploading the document.

document

String

The URL of the document being uploaded.

Responses

Response Code: 201

Field

Type

Description

id

String

The unique ID of the supporting document.

user

String

The ID of the user associated with the document.

document

String

The URL of the uploaded document.

uploaded_at

String($date-time)

The timestamp when the document was uploaded.

Example Request Body

{
  "user": "user123",
  "document": "http://example.com/document.pdf"
}

Example Response Body

{
  "id": "doc456",
  "user": "user123",
  "document": "http://example.com/document.pdf",
  "uploaded_at": "2024-12-10T12:00:00Z"
}

Last updated