Artifacts
Change a share’s audience
Moves an active share between public and org; the link stays the same. Only the artifact’s owner, or an organization owner who can view it, may do this. 403 ARTIFACT_SHARE_FORBIDDEN for anyone else who can view the artifact; 404 when the caller cannot view it, or the share does not exist or is revoked.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
orgId*string
artifactId*string
Match
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/orgs/string/artifacts/497f6eca-6276-4993-bfeb-53cbbbba6f08/shares/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "audience": "public" }'{ "id": "string", "artifactId": "string", "revision": -9007199254740991, "audience": "public", "displayTail": "string", "createdBy": { "userId": "string", "displayName": "string", "email": "string", "platform": "string" }, "createdAt": "string", "updatedAt": "string", "revokedAt": "string"}