Main Product API
Main Product API
A JSON-encoded string containing the query options.
Returns data for the specified GUIDs
Provide the values of one or more statuses separated by comma (no spaces). If no value is supplied, active
is assumed.
If caching data on the client side, the data_quantity=id_only|basic|complete
option can be passed to manage the completeness of the data received and therefore rate limiting.
The number of results to return per page
curl -i -X GET \
'https://developers-internal.tonicdm.com/_mock/tonicdm-product/core/notes?dataQuantity=true&filterIds={id}%2C{id}%2C{id}&filterStatuses=active%2Cinactive&pageNumber=1&pageSize=100&searchQuery={%22example%22}&sortBy=personName&sortDirection=asc' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
Successfully read the resource you requested. One or more records are returned in the form of an array.
UUID without hyphens (32 characters)
Whether the item is active or inactive in TonicDM. Potentially the item could be (soft) deleted.
[ { "id": "8e8aa42241794371ae9d0ed7b67a8c86", "datetimeCreated": "2019-08-24T14:15:22Z", "datetimeUpdated": "2019-08-24T14:15:22Z", "status": "active", "content": "string", "attachedToId": "13950bd3-cbc8-46f8-9a0d-f72ea7643f38", "personId": "f3e5ff26-28ff-4cd6-9b1b-e303a185a13a", "isPrinted": false } ]
Whether the item is active or inactive in TonicDM. Potentially the item could be (soft) deleted.
curl -i -X POST \
https://developers-internal.tonicdm.com/_mock/tonicdm-product/core/notes \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"status": "active",
"content": "string",
"attachedToId": "13950bd3-cbc8-46f8-9a0d-f72ea7643f38",
"personId": "f3e5ff26-28ff-4cd6-9b1b-e303a185a13a",
"isPrinted": false
}'
{ "id": "8e8aa42241794371ae9d0ed7b67a8c86", "datetimeCreated": "2019-08-24T14:15:22Z", "datetimeUpdated": "2019-08-24T14:15:22Z", "status": "active", "content": "string", "attachedToId": "13950bd3-cbc8-46f8-9a0d-f72ea7643f38", "personId": "f3e5ff26-28ff-4cd6-9b1b-e303a185a13a", "isPrinted": false }
UUID without hyphens (32 characters)
Whether the item is active or inactive in TonicDM. Potentially the item could be (soft) deleted.
curl -i -X PATCH \
https://developers-internal.tonicdm.com/_mock/tonicdm-product/core/notes \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": "8e8aa42241794371ae9d0ed7b67a8c86",
"status": "active",
"content": "string",
"attachedToId": "13950bd3-cbc8-46f8-9a0d-f72ea7643f38",
"personId": "f3e5ff26-28ff-4cd6-9b1b-e303a185a13a",
"isPrinted": false
}'