curl --request POST \
--url https://staging.api.us.aptlydone.com/document/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tenantId": "550e8400-e29b-41d4-a716-446655440010",
"name": "project_document.pdf",
"type": "application/pdf",
"link": "https://example.com/files/project_document.pdf",
"createdBy": "550e8400-e29b-41d4-a716-446655440000"
}
'{
"statusCode": 200,
"timestamp": "2025-06-24T08:51:01.116Z",
"message": "Success",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "project_document.pdf",
"type": "application/pdf",
"link": "https://example.com/files/project_document.pdf",
"tenantId": "550e8400-e29b-41d4-a716-446655440010",
"createdBy": "550e8400-e29b-41d4-a716-446655440001",
"createdAt": "2025-02-13T12:00:00Z",
"isDeleted": false,
"updatedBy": null,
"updatedAt": null,
"deletedBy": null,
"deletedAt": null
}
}curl --request POST \
--url https://staging.api.us.aptlydone.com/document/v1/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tenantId": "550e8400-e29b-41d4-a716-446655440010",
"name": "project_document.pdf",
"type": "application/pdf",
"link": "https://example.com/files/project_document.pdf",
"createdBy": "550e8400-e29b-41d4-a716-446655440000"
}
'{
"statusCode": 200,
"timestamp": "2025-06-24T08:51:01.116Z",
"message": "Success",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "project_document.pdf",
"type": "application/pdf",
"link": "https://example.com/files/project_document.pdf",
"tenantId": "550e8400-e29b-41d4-a716-446655440010",
"createdBy": "550e8400-e29b-41d4-a716-446655440001",
"createdAt": "2025-02-13T12:00:00Z",
"isDeleted": false,
"updatedBy": null,
"updatedAt": null,
"deletedBy": null,
"deletedAt": null
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Tenant ID associated with the file
"550e8400-e29b-41d4-a716-446655440010"
Name of the file
"project_document.pdf"
Type of the file
"application/pdf"
Link to the file storage
"https://example.com/files/project_document.pdf"
User ID who created the file
"550e8400-e29b-41d4-a716-446655440000"