post https://api.thethings.io/v2/classes/me/
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