Share, publish or update grants on an original Library file [write]

Changed on

Compare-and-set revision (0 for initial state); stale settings return 409. Public access is view-only. Edit grants require native source editing. Member grants bind current platform member identities. No workspace permits private/public only. Revoking publicEnabled invalidates the URL; publishing again mints a new URL. For unrestricted owners, consumer-artifact public access is shared with the legacy artifact share API; disabling it revokes every public alias while preserving authenticated member grants. Fixed-workspace credentials update only their selected audience link. Public artifact URLs honor the artifact pin; authenticated member URLs follow latest.

put/library/links

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/library/links
  • Auth
    HTTP bearer

Request body

workspacestring nullable
revisioninteger required
sharingRevisionstring

For consumer artifacts, the whole sharing revision returned by artifact.sharingRevision. Supply it to reject concurrent changes in another workspace or the legacy share API.

workspaceAccess'none' | 'view' | 'edit' required
publicEnabledboolean required

Response

Updated settings

Changes