Documents Methods
Updated: Nov 25th, 2013 | | Categories: General
Documents List (GET) – /documents.[format] (page, contextId)
The Documents list is paginated. The pagination limit is set to 16 per page. You can pass the “page” query string parameter followed by a number to access the other pages.
Syntax:
http://[subdomain].salesbinder.com/api/documents.[format]
Example:
http://demo.salesbinder.com/api/documents.json?page=2
HTTP Request Type: GET
View Document Details (GET) – /documents/[id].[format]
To get the details of a document, you simply need to pass the item “id”.
Syntax:
http://[subdomain].salesbinder.com/api/documents/[id].json
Example:
http://demo.salesbinder.com/api/documents/5487185e-b83f-46c2-bb91-2416ae304d03.json
HTTP Request Type: GET
Create New Document (POST) – /documents.[format]
Syntax
http://[subdomain].salesbinder.com/api/documents.json
HTTP Request Type: POST
Edit Document (PUT) – /documents/[id].[format]
Syntax
http://[subdomain].salesbinder.com/api/documents/[id].json
HTTP Request Type: PUT
Delete Document (DELETE) – /documents/[id].[format]
To delete a specific document, you simply need to pass the document “id”.
Syntax:
http://[subdomain].salesbinder.com/api/documents/[id].json
Example:
http://demo.salesbinder.com/api/documents/5487185e-b83f-46c2-bb91-2416ae304d03.json
HTTP Request Type: DELETE
