Skip to content

Add or remove organizations on a List

Request

Add organizations to a List, take them off, or both, by their ids. Use this when someone asks to change which organizations are on a List. Send add, remove or both; all of it is one new version. An organization already on the List is counted, not added twice; one that is not on it cannot be removed (422 unknown_row). Adding needs no version; a removal is checked against the version current when it arrives.

Security
bearerKey
Path
idstringrequired
Headers
Idempotency-Keystring, [ 1 .. 128 ] characters

1 to 128 characters. A retry with the same key and body returns the first result; the same key with another body is 409.

Bodyapplication/jsonrequired
addArray of integers, [ 1 .. 10000 ] items
removeArray of integers, [ 1 .. 10000 ] items
curl -i -X POST \
  'https://docs.societyhealth.co/_mock/docs/openapi/api/v1/lists/{id}/rows' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "add": [
      41,
      57
    ],
    "remove": [
      12
    ]
  }'

Responses

Done.

Bodyapplication/json
okanyrequired
Value:true
dataobject(PublicList)required
Response
{ "ok": true, "data": { "id": "Lst8kQ2mZp4xV7nR1tYw", "url": "https://hrcledger.com/lists/items/Lst8kQ2mZp4xV7nR1tYw", "name": "Virginia systems", "purpose": "general", "archived": false, "revisionNo": 2, "updatedAt": "2026-10-16T14:02:11.000Z" } }