/showcases/:showcaseId/share-links/:shareLinkId

Change the settings of a showcase's share link

Path Params
string
required

the id of the showcase

string
required

the id of the share link

Body Params

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

password, expiresAt, requireAccount, comments and customFields depend on your workspace's plan. Paid plans include them by default, also during the 30-day grace period after a paid plan expires. Turning one on that your plan does not include returns 422 with type: ADDON_DISABLED, extra.addonKey: shareLinks, and extra.settings listing the rejected settings (password, expiration, requireAccount, comments, customFields). Nothing in the request is applied.

A link keeps the settings it already has, whatever the plan. Sending a value the link already has, changing a password or expiration date the link already has, and turning a setting off always work. Moving comments or customFields up a level counts as turning it on: from hidden to any other value, or from read_only to allowed or editable. Settings a new link takes from your workspace defaults or from a board above it do not count.

boolean

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

boolean

Whether visitors can download the original files

string | null

Password visitors must enter to open the link. null removes it. Never returned; read hasPassword instead.

date-time | null

When the link stops working. Must be in the future. null removes the expiration.

boolean

Whether visitors must sign in to Air to open the link

string
enum

What visitors can do with comments. allowed lets them add comments, which writes to your workspace.

Allowed:
string
enum

What visitors can do with custom field values. editable lets them change values, which writes to your workspace.

Allowed:
Responses
204

Share link updated successfully

400

Invalid request body, including a null value where it is not allowed, or an expiresAt that is not in the future

403

You do not have permission to edit this showcase's share link, or the link lets visitors do something you can't, such as download the original

404

Showcase not found, or the share link is not this showcase's link

422

The request turns on a share link setting your workspace's plan does not include (ADDON_DISABLED). extra.addonKey is shareLinks and extra.settings lists them.

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here!