Skip to content

GET /data/:userId

Get list of user collections. Needs authentification

URL : api.prisme.ai/v1/data/:userId

Method : GET

Request example

curl -X GET \
  https://api.prisme.ai/v1/data/1234 \
  -H 'authorization: Bearer Prisme_Developer_Token' \
  -H 'content-type: application/json' \

Headers

In the request URL, provide the following headers with values.

Key Value
Content-Type application/json
Authorization Bearer Prisme_Developer_Token

Success Response

Condition : No required parameter missing and Prisme_Developer_Token is known by the platform.

Code : 200

Content example

["collection1", "collection2"]

PUT /data/:userId

Add a collection into list of user collections. Needs authentification

URL : api.prisme.ai/v1/data/:userId

Method : PUT

Request example

curl -X PUT \
  https://api.prisme.ai/v1/data/1234 \
  -H 'authorization: Bearer Prisme_Developer_Token' \
  -H 'content-type: application/json' \
  --data '{"name": "newcollection"}'

Headers

In the request URL, provide the following headers with values.

Key Value
Content-Type application/json
Authorization Bearer Prisme_Developer_Token

Success Response

Condition : No required parameter missing and Prisme_Developer_Token is known by the platform.

Code : 201

DELETE /data/:userId/:collection

Remove a collection from list of user collections. Needs authentification

URL : api.prisme.ai/v1/data/:userId/:collection

Method : DELETE

Request example

curl -X DELETE \
  https://api.prisme.ai/v1/data/1234/newcollection \
  -H 'authorization: Bearer Prisme_Developer_Token' \
  -H 'content-type: application/json' \

Headers

In the request URL, provide the following headers with values.

Key Value
Content-Type application/json
Authorization Bearer Prisme_Developer_Token

Success Response

Condition : No required parameter missing and Prisme_Developer_Token is known by the platform.

Code : 204