Monica
Log in
API v1
v1
View as Markdown

Delete a value

DELETE /api/v1/value-lists/{valueList}/items/{valueListItem}

Delete a value of a value list.

A value in use stays: deleting it answers 422 on valueListItem with The value is in use and stays. Stop offering it instead, and everything that already has it keeps it.

Path parameters

Sent as JSON. Anything not listed here is ignored.

valueList integer Required

The id of the value list, as List value lists gives it.

valueListItem integer Required

The id of the value, as List value lists gives it among the items of its list.

Returns

Nothing. A list of another account, a list that belongs to one field, and a value of another list answer 404.

Rate limit

Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in X-RateLimit-Remaining.

DELETE
curl https://my.monicahq.com/api/v1/value-lists/21/items/87 \
-X DELETE \
-H "Authorization: Bearer $MONICA_TOKEN"
const response = await fetch('https://my.monicahq.com/api/v1/value-lists/21/items/87', {
method: 'DELETE',
headers: { Authorization: `Bearer ${token}` },
})
$response = Http::withToken($token)->delete('https://my.monicahq.com/api/v1/value-lists/21/items/87');
Response 204

No content.

Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.