thing/delete
Description
delete a thing of the authenticated user
HTTP Method
POSTParameters
Name | Type | Description |
---|---|---|
_id | string | an _id of the thing to be deleted |
Returns
{ "deleted_thing": "id of the thing that was successfully deleted" }
Example
Suppose there is one thing in the user's Thinkery:
GET /v1/things/get HTTP/1.1 Host: api.thinkery.me Authorization: access-token=the-token-you-received [ { "_id": "thing-id-1", "title": "thing title", "date": 1734793379, "tags": [ ] } ]
Now we change the title of a thing:
POST /v1/thing/delete HTTP/1.1 Host: api.thinkery.me Authorization: access-token=the-token-you-received Content-Type: application/x-www-form-urlencoded Content-Length: 14 _id=thing-id-1 (this would be urlencoded) { "deleted_thing": "thing-id-1" }
Now the user's thinkery is empty:
GET /v1/things/get HTTP/1.1 Host: api.thinkery.me Authorization: access-token=the-token-you-received [ ]