ackDB

Replace a segment's member shares

Replaces the segment's ENTIRE grant set atomically (#284). Owner only. Each share is { memberId, role } — a member from the roster (GET /members) + 'view' or 'edit'. An unknown or inactive memberId → 400; duplicate members are deduped (last role wins).

put/api/v1/ackdb/observe/segments/{id}/shares

Request

  • Base URL
    http://localhost:3009
  • Auth
    HTTP bearer

Path parameters

idstring required

Request body

Example request

{
  "shares": [
    {
      "memberId": "01J9Z8Q3K2X7M4N5P6R7S8T9V0",
      "role": "edit"
    }
  ]
}

Response

The persisted grants, oldest first.

Example response

{
  "data": [
    {
      "memberId": "01J9Z8Q3K2X7M4N5P6R7S8T9V0",
      "role": "edit",
      "name": "Jordan Rep",
      "email": "jordan@acme.com"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.