Trigger docs sync
This endpoint allows you to trigger the synchronisation of uploaded documents to a cloud storage. Only the documents that have not been synced so far will be sent to the cloud.
Responses
-
Specific Request.
-
Bad Request -- Your request is invalid.
-
Unauthorized -- Your API key is wrong.
-
Forbidden -- The object requested is hidden for administrators only.
-
Not Found -- The specified object could not be found.
-
Too Many Requests -- You're requesting too many objects! Slow down!
-
Internal Server Error -- We had a problem with our server. Try again later.
-
Service Unavailable -- We're temporarily offline for maintenance. Please try again later.
POST
/syncdocs
curl \
--request POST 'https://api.usecollect.com/v1/syncdocs' \
--user "username:password" \
--header "Content-Type: application/json" \
--data '{"requestId":"nw42MmBsJoccgutST"}'
Request example
{
"requestId": "nw42MmBsJoccgutST"
}
Response examples (200)
{
"errors": [],
"request": {
"_id": "nw42MmBsJoccgutST",
"status": "pending",
"contact": {
"_id": "xtPWKQqcAk8MJfoz5",
"email": "jared.dunn@example.com",
"lastName": "Hendricks",
"createdAt": "2024-07-03T13:51:27Z",
"firstName": "Richard",
"nbRequest": 5,
"lastActivity": "2024-07-04T07:20:06Z"
},
"dueDate": "2024-07-11T21:59:00Z",
"privacy": "private",
"branding": {
"useBranding": false
},
"createdAt": "2024-07-04T07:20:06Z",
"portalUrl": "https://app.usecollect.com/portal/uGFRDeEL3Ct2uYo2c/nw42MmBsJoccgutST/c/nw42MmBsJoccgutST",
"campaignId": "xvr69EYLKXvTkfYuk",
"contributors": [
{
"_id": "WmTjsFknzHdmfs3Ra",
"email": "richard.hendricks@example.com",
"lastName": "Bachman",
"createdAt": "2024-07-03T13:51:27Z",
"firstName": "Erlich"
}
]
}
}