Set Datamate Shares
Set the sharing mode and the whole grant set in one call.
Deliberately not split across PATCH /datamates/{id} for the mode and a separate endpoint for the grants: that shape lets a client set restricted and then fail to send the grants, leaving a workspace that claims to be shared and is visible to nobody but its owner. The request schema refuses that combination outright.
Invalidating the cache is not optional. GET /datamates/ is cached per {tenant}:{user_id} with a 300s TTL, and a grant changes what another user may see without touching their own cache key — so without this a new grantee waits up to five minutes to see the workspace, and, worse, a revoked user keeps seeing it for up to five minutes. Note the cache is an in-process singleton: this clears the pod that served the request, so with several replicas the revocation is still eventually consistent within the TTL. That is a known limit, recorded on AI-8822, not an oversight here.
Path parameters
Request body
Response
Successful Response
Changes
Changed in 1 of the 55 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○