Share an artifact revision
Creates a link to one ready revision. An org link admits signed-in members of the organization and may be created by anyone who can view the artifact; a public link admits anyone who has it and may be created by the artifact’s owner, or by an organization owner who can view it. The response carries the link token and the console path /share/<token> exactly once; only a hash of the token is stored. The share stays on this revision when a newer one is published. 403 ARTIFACT_SHARE_FORBIDDEN when the caller can view the artifact but may not create this audience; 404 when they cannot view it or the revision does not exist; 409 ARTIFACT_REVISION_NOT_READY while the revision is still uploading.
Authorization
bearerAuth In: header
Path Parameters
^([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)$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 POST "https://example.com/v1/orgs/string/artifacts/497f6eca-6276-4993-bfeb-53cbbbba6f08/shares" \ -H "Content-Type: application/json" \ -d '{ "revision": 1, "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", "token": "string", "linkPath": "string", "link": "string"}