API docs

Reference · Lists

Rename a list or set its client

PATCH /api/v1/lists/{id}

Gives the list a new name, puts it under a client, or both. Send at least one of the two. Its rows and results stay as they are, and sending the same value twice changes nothing.

Credits: Free.

Parameters

NameTypeRequiredWhat it is
idintegeryesThe id.

Body (JSON)

NameTypeRequiredWhat it is
namestringThe new name.
clientstringThe client to group this list under, as in the app. Null or an empty text takes it out.

Example request

Shell
curl -X PATCH "https://moleman.io/api/v1/lists/123" \
  -H "Authorization: Bearer $MOLEMAN_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"name":"Austin dentists, spring","client":"Example Dental Group"}'

Example answer

JSON
{
  "listId": 381,
  "name": "Austin dentists, spring",
  "client": "Example Dental Group",
  "rowCount": 2,
  "livemode": true,
  "createdAt": 1762344000000
}

Errors

StatusCodeWhen
401missing_api_keyThe request has no API key.
401invalid_api_keyThe API key is not one of ours (a typo, a cut-off copy, or a key from another account that was deleted).
401revoked_api_keyThe API key was revoked on the API page (at once), or it was rotated and its 24 hours are over. Old test keys (mm_test_) are revoked too.
401expired_api_keyThe API key reached the expiry date set when it was created.
429rate_limitedMore than 120 requests in one minute with this key.
500server_errorSomething broke on our side. Nothing was charged for it.
400invalid_requestA parameter is missing, has the wrong type or is out of range. details lists every problem with its path.
404not_foundThe job or list does not exist, belongs to another account, or was deleted.