Docs
Update Module Template Block
PUT /moduleTemplates/{moduleTemplateId}/blocks/{moduleTemplateBlockId}
PUT
/moduleTemplates/{moduleTemplateId}/blocks/{moduleTemplateBlockId}Required Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Event token | x-Event-Token | Optional | Run **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
| Field | Type | Required | Description |
|---|---|---|---|
| moduleTemplateId | Guid | Required | The ID of the module template. |
| moduleTemplateBlockId | Guid | Required | The ID of the block to update. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| contentBlock | object \ | Optional | ✔️ if block is `Content` type |
| questionBlock | object \ | Optional | ✔️ if block is `Question` type |
| requestBlock | object \ | Optional | ✔️ if block is `Request` type |
Request Block Property (for requestBlock.properties)
| Field | Type | Required | Description |
|---|---|---|---|
| id | Guid \ | Optional | ❌ |
| label | string | Required | Property label. |
| isRequired | bool | Required | Whether the property is required. |
| responseType | string | Required | Response type. Valid values: `Select`, `MultiSelect`, `Text`, `RichText`, `Number`, `Date`, `DateTime`, `Checkbox`, `Link`, `File`, `MultiFile`, `Image`. |
| responseOptions | array | Optional | Options for `Select`/`MultiSelect` types. |
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
UNAUTHORIZED | 401 | Missing or invalid token. |
NOT_FOUND | 404 | Module template or block not found for this event. |
BAD_REQUEST | 400 | Invalid block data. |