curl --request POST \
--url https://staging.api.us.aptlydone.com/document/v1/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"tenantId": "550e8400-e29b-41d4-a716-446655440000",
"documentName": "Global Delegation of Authority Policy - ProxyComm Inc.",
"documentDescription": "Defines the framework for delegating authority across ProxyComm'\''s global operations, outlining roles, responsibilities, and decision-making limits.",
"documentMetadata": "{ \"code\": \"GOV-DFA-2\", \"version\": \"2024.2\" }",
"fileId": "550e8400-e29b-41d4-a716-446655440001",
"documentTypeId": "550e8400-e29b-41d4-a716-446655440002",
"documentTypeName": "Policy",
"documentStatus": "DRAFT",
"documentSharingType": "RESTRICTED",
"documentIcon": "link-outlined",
"documentOwnerId": "550e8400-e29b-41d4-a716-446655440003",
"documentOwnerUsername": "John Doe",
"documentUploadType": "LINKED",
"documentUrl": "intranet.sharepoint.proxycomm.com/2024delegationofauthority.policy",
"documentSharingGroups": [
{
"groupId": "550e8400-e29b-41d4-a716-446655440013",
"tenantGroupTypeId": "550e8400-e29b-41d4-a716-446655440023"
}
],
"documentSharingUsers": [
{
"userId": "550e8400-e29b-41d4-a716-446655440033"
}
],
"responsibleUserId": "550e8400-e29b-41d4-a716-446655440033",
"reviewerUserId": "550e8400-e29b-41d4-a716-446655440033",
"approverUserId": "550e8400-e29b-41d4-a716-446655440033",
"responsibleUsername": "Responsible user name ",
"reviewerUsername": "Reviewer user name ",
"approverUsername": "Approver user name",
"approverPositionId": "550e8400-e29b-41d4-a716-446655440023",
"responsiblePositionId": "550e8400-e29b-41d4-a716-446655440023",
"reviewerPositionId": "550e8400-e29b-41d4-a716-446655440023",
"approverPositionName": "Approver position name",
"reviewerPositionName": "Reviewer position name",
"responsiblePositionName": "Responsible position name",
"isExternal": "true"
}'
{
"statusCode": 200,
"timestamp": "2025-06-24T08:51:01.116Z",
"message": "Success",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440100",
"tenantId": "550e8400-e29b-41d4-a716-446655440000",
"documentName": "Global Delegation of Authority Policy - ProxyComm Inc.",
"documentDescription": "Defines the framework for delegating authority across ProxyComm's global operations, outlining roles, responsibilities, and decision-making limits to ensure compliance, accountability, and operational consistency.",
"documentMetadata": "{ \"code\": \"GOV-DFA-2\", \"version\": \"2024.2\" }",
"fileId": "550e8400-e29b-41d4-a716-446655440001",
"documentTypeId": "550e8400-e29b-41d4-a716-446655440002",
"documentStatus": "DRAFT",
"documentSharingType": "RESTRICTED",
"documentIcon": "link-outlined",
"documentOwnerId": "550e8400-e29b-41d4-a716-446655440003",
"documentUploadType": "LINKED",
"documentUrl": "intranet.sharepoint.proxycomm.com/2024delegationofauthority.policy",
"uploadedOn": "2025-02-13T12:00:00Z",
"lastUpdatedBy": "550e8400-e29b-41d4-a716-446655440004",
"lastUpdatedOn": "2025-02-14T15:30:00Z",
"archivedOn": "2025-03-01T10:00:00Z",
"deletedOn": "2025-04-01T12:00:00Z",
"documentDisplayId": "10000",
"link": "/documents/view/eyJ0ZW5hbnRJZCI6IjU1MGU4NDAwLWUyOWItNDFkNC1hNzE2LTQ0NjY1NTQ0MDAwMCIsImRvY3VtZW50SWQiOiJjMDBjMGNkNy03ZmJjLTRmZTEtOWYxMy1lYzc5OTlmMjhjNDgifQ=="
}
}
curl --request POST \
--url https://staging.api.us.aptlydone.com/document/v1/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"tenantId": "550e8400-e29b-41d4-a716-446655440000",
"documentName": "Global Delegation of Authority Policy - ProxyComm Inc.",
"documentDescription": "Defines the framework for delegating authority across ProxyComm'\''s global operations, outlining roles, responsibilities, and decision-making limits.",
"documentMetadata": "{ \"code\": \"GOV-DFA-2\", \"version\": \"2024.2\" }",
"fileId": "550e8400-e29b-41d4-a716-446655440001",
"documentTypeId": "550e8400-e29b-41d4-a716-446655440002",
"documentTypeName": "Policy",
"documentStatus": "DRAFT",
"documentSharingType": "RESTRICTED",
"documentIcon": "link-outlined",
"documentOwnerId": "550e8400-e29b-41d4-a716-446655440003",
"documentOwnerUsername": "John Doe",
"documentUploadType": "LINKED",
"documentUrl": "intranet.sharepoint.proxycomm.com/2024delegationofauthority.policy",
"documentSharingGroups": [
{
"groupId": "550e8400-e29b-41d4-a716-446655440013",
"tenantGroupTypeId": "550e8400-e29b-41d4-a716-446655440023"
}
],
"documentSharingUsers": [
{
"userId": "550e8400-e29b-41d4-a716-446655440033"
}
],
"responsibleUserId": "550e8400-e29b-41d4-a716-446655440033",
"reviewerUserId": "550e8400-e29b-41d4-a716-446655440033",
"approverUserId": "550e8400-e29b-41d4-a716-446655440033",
"responsibleUsername": "Responsible user name ",
"reviewerUsername": "Reviewer user name ",
"approverUsername": "Approver user name",
"approverPositionId": "550e8400-e29b-41d4-a716-446655440023",
"responsiblePositionId": "550e8400-e29b-41d4-a716-446655440023",
"reviewerPositionId": "550e8400-e29b-41d4-a716-446655440023",
"approverPositionName": "Approver position name",
"reviewerPositionName": "Reviewer position name",
"responsiblePositionName": "Responsible position name",
"isExternal": "true"
}'
{
"statusCode": 200,
"timestamp": "2025-06-24T08:51:01.116Z",
"message": "Success",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440100",
"tenantId": "550e8400-e29b-41d4-a716-446655440000",
"documentName": "Global Delegation of Authority Policy - ProxyComm Inc.",
"documentDescription": "Defines the framework for delegating authority across ProxyComm's global operations, outlining roles, responsibilities, and decision-making limits to ensure compliance, accountability, and operational consistency.",
"documentMetadata": "{ \"code\": \"GOV-DFA-2\", \"version\": \"2024.2\" }",
"fileId": "550e8400-e29b-41d4-a716-446655440001",
"documentTypeId": "550e8400-e29b-41d4-a716-446655440002",
"documentStatus": "DRAFT",
"documentSharingType": "RESTRICTED",
"documentIcon": "link-outlined",
"documentOwnerId": "550e8400-e29b-41d4-a716-446655440003",
"documentUploadType": "LINKED",
"documentUrl": "intranet.sharepoint.proxycomm.com/2024delegationofauthority.policy",
"uploadedOn": "2025-02-13T12:00:00Z",
"lastUpdatedBy": "550e8400-e29b-41d4-a716-446655440004",
"lastUpdatedOn": "2025-02-14T15:30:00Z",
"archivedOn": "2025-03-01T10:00:00Z",
"deletedOn": "2025-04-01T12:00:00Z",
"documentDisplayId": "10000",
"link": "/documents/view/eyJ0ZW5hbnRJZCI6IjU1MGU4NDAwLWUyOWItNDFkNC1hNzE2LTQ0NjY1NTQ0MDAwMCIsImRvY3VtZW50SWQiOiJjMDBjMGNkNy03ZmJjLTRmZTEtOWYxMy1lYzc5OTlmMjhjNDgifQ=="
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Document created successfully
The response is of type object
.