/assets/:assetId/share-links
Changed onCreate a share link for an asset.
Use followsDefaultVersion: true for a link that always shows the asset's current version, or versionId to pin the link to one version.
Any field not listed in the request body is ignored. Settings you leave out follow your workspace's share link defaults. A new link is active unless you send active: false.
password, expiresAt, requireAccount, comments and customFields depend on your workspace's plan; see the request body for what returns 422.
Returns 409 Conflict if the asset already has a link of the same kind, even a disabled one. A version has one pinned link whatever its showAllVersions setting. Older links created from inside a board don't count, so the asset can end up with more than one link that follows its current version. Use GET /v1/assets/{assetId}/share-links to find the existing link, and PATCH to change it.
Returns 403 if the link's settings, including the ones taken from your workspace defaults, would let visitors do something you can't do yourself.
Requires the share_links.write and assets.read OAuth scopes.
Request
- Base URLapi.air.inc (relative, and the document’s source URL is not known)
- Auth
- API key in header x-api-key and API key in header x-air-workspace-id
- or HTTP bearer and API key in header x-air-workspace-id
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Share link created successfully
Changes
- info
endpoint added
- info