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",
"updatedBy": null,
"updatedAt": null,
"deletedBy": null,
"deletedAt": null,
"isDeleted": false
}
}
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",
"updatedBy": null,
"updatedAt": null,
"deletedBy": null,
"deletedAt": null,
"isDeleted": false
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
File created successfully
The response is of type object
.