These docs are for v2.0. Click to read the latest docs for v3.3.

This endpoint lets you store an object as a JSON string. If you don’t specify an "_id", the system will automatically assign a random ID. Returns error if the "_id" already exists for that collection.

curl -i -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: SESSION_TOKEN" \
  -d '{"_id": "25", "name": "Dubstep"}' \
  -X POST "https://api.thethings.io/v2/classes/me/Playlists" -k

📘

You can set the "_id" at the path, too:

POST https://api.thethings.io/v2/classes/me/ID_COLLECTION/PRIMARY_KEY
Language
Click Try It! to start a request and see the response here!