Skip to main content

createShareLink

Create a public share link for a resource the caller can edit. Returns the link with its one-time plaintext slug.

Authorization is enforced IN THE RESOLVER — the caller must hold "edit" on the resource's owning workspace. It is generic over resourceType (backtest or strategy); the @hasScope directive cannot be used here because its resourceType is static while this mutation accepts either kind (same resolver-gate pattern as revokeShareLink below).

createShareLink(
input: CreateShareLinkInput!
): ShareLink!

Arguments

createShareLink.input ● CreateShareLinkInput! non-null input

Type

A public share link. Returned by createShareLink (with the one-time plaintext slug) and by revokeShareLink (with slug empty — it is never re-derivable).