Docs

Update Link

PATCH /documents/{documentId}/links/{linkId}

PATCH/documents/{documentId}/links/{linkId}

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder.

Updates a public access link. All fields are optional — only provided fields are applied.

Requires Admin access on the document (i.e. the EventDocumentsEdit permission or an Admin share).

Path Parameters

FieldTypeRequiredDescription
documentIdGuidOptionalThe document that owns the link.
linkIdGuidOptionalThe link to update.

Request Body

FieldTypeRequiredDescription
namestringOptionalNew human-readable label for the link.
isActiveboolOptional`false` to deactivate (public requests return 404); `true` to reactivate.
expiresAtdatetimeOptionalUTC expiry after which the link returns 404. Pass `null` to remove the expiry.
variableValuesstringOptionalJSON object mapping variable IDs to pre-set values. Merged into the viewer's request — viewer-supplied keys take precedence. Pass `null` to clear.
allowedValuesstringOptionalJSON object of arrays mapping variable IDs to whitelists. Viewer-submitted values outside the list are rejected with 400. Pass `null` to clear constraints.

Response

200 OK with no body.