/assets/:assetId/share-links

Create a share link for an asset

Path Params
string
required

the id of the asset

Body Params

Share link settings you can set. Omitted settings are not changed.

boolean
enum
required

Create a link that always shows the asset's current version. Only true is accepted.

Allowed:
boolean

Whether the link works. A disabled link keeps its settings and can be enabled again.

boolean

Whether visitors can download the original files

boolean

Whether visitors can browse the asset's other versions

Responses

400

Invalid request body: neither or both of followsDefaultVersion and versionId, followsDefaultVersion other than true, or a null value

403

You do not have permission to create share links for this asset, or the link would let visitors do something you can't, such as download the original

404

Asset not found, or Version not found when versionId is not a version of this asset

409

The asset already has a link that follows its current version, or a link pinned to this version (SHARE_LINK_ALREADY_EXISTS)

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json