BettrData Back Notes

From Server Itself

Examples for Using the Back API

Simple Id Example

curl -X 'GET' \
  'http://127.0.0.1:1339/client/6790113833e3f00015241cbe' \
  -H 'accept: application/json'

result

{"_id":"6790113833e3f00015241cbe","version":0,"createDate":"2025-01-21T21:27:08.523Z","updateDate":"2025-01-21T21:27:08.523Z","enabled":true,"name":"Internal Owner","contacts":[]}

Where Clause

The where clause needs to be html escaped. For instance the string:

{"name": "Internal Owner"}

becomes

%7B%22name%22%3A%20%22Internal%20Owner%22%7D

Example

  curl -X 'GET' \
  'http://127.0.0.1:1339/client?where=%7B%22name%22%3A%20%22Internal%20Owner%22%7D' \
  -H 'accept: application/json'

Result

[{"_id":"6790113833e3f00015241cbe","version":0,"createDate":"2025-01-21T21:27:08.523Z","updateDate":"2025-01-21T21:27:08.523Z","enabled":true,"name":"Internal Owner","contacts":[]}]