Monica
Log in
API v1
v1
View as Markdown

Delete a value list

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

Delete a value list and the values it holds.

A list the application itself reads, such as genders or phone labels, stays: deleting it answers 422 on valueList with This list stays.

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.

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

No content.

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