Skip to main content
DELETE
This call revokes a share link: it accepts no new use and stops offering updates to what was created from it. Applications and stacks already created from the link keep running, and copies already made stay with their owners. Revoking is idempotent: revoking a revoked link answers with the link as it is. Needs the templates:write scope when called with an API key. Only the owner of the template can revoke its links.
string
required
The template ID.
The link ID.
string
If the template belongs to a workspace, the workspace’s ID.

Response

object
The link, with revoked_at filled.

Error Responses

string
The error code indicating the reason for the failure. Possible values:
  • API_KEY_SCOPE_DENIED: The API key does not have the templates:write scope (403).
  • TEMPLATE_NOT_FOUND: The template does not exist or is not yours (404).
  • SHARE_LINK_NOT_FOUND: The link does not exist in that template (404).
  • WORKSPACE_OWNER_ONLY: Only the workspace owner revokes the links of its templates.
Last modified on October 28, 2026