Docs

Update Module Template Block

PUT /moduleTemplates/{moduleTemplateId}/blocks/{moduleTemplateBlockId}

PUT/moduleTemplates/{moduleTemplateId}/blocks/{moduleTemplateBlockId}

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, or call `GET /Events/{eventId}/authorize` manually.

Updates the content of an existing block in a module template. Only the fields relevant to the block's existing type need to be provided — the block type cannot be changed after creation.

For request blocks, include existing property IDs (id) to update them. Omit the id to create new properties. Properties not included in the request will be removed.

Returns 200 OK with no body on success.

Event scoping: These endpoints do not include {eventId} in the URL. The event is determined automatically from your x-Event-Token — the API uses it to know which event's data to return. Ensure you have a valid event token before making any calls in this folder.

Path Parameters

FieldTypeRequiredDescription
moduleTemplateIdGuidRequiredThe ID of the module template.
moduleTemplateBlockIdGuidRequiredThe ID of the block to update.

Request Body

FieldTypeRequiredDescription
contentBlockobject \Optional✔️ if block is `Content` type
questionBlockobject \Optional✔️ if block is `Question` type
requestBlockobject \Optional✔️ if block is `Request` type

Request Block Property (for requestBlock.properties)

FieldTypeRequiredDescription
idGuid \Optional
labelstringRequiredProperty label.
isRequiredboolRequiredWhether the property is required.
responseTypestringRequiredResponse type. Valid values: `Select`, `MultiSelect`, `Text`, `RichText`, `Number`, `Date`, `DateTime`, `Checkbox`, `Link`, `File`, `MultiFile`, `Image`.
responseOptionsarrayOptionalOptions for `Select`/`MultiSelect` types.

Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid token.
NOT_FOUND404Module template or block not found for this event.
BAD_REQUEST400Invalid block data.