---
title: "Update a module/zone configuration option using PUT."
method: PUT
path: "/templates/{templateId}/modules/{moduleId}/options/{optionId}"
tags: ["Templates"]
---

# Update a module/zone configuration option using PUT.

`PUT /templates/{templateId}/modules/{moduleId}/options/{optionId}`

## Request

- Base URL: `https://api.reveldigital.com`
- URL: `https://api.reveldigital.com/templates/{templateId}/modules/{moduleId}/options/{optionId}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://id.reveldigital.com/connect/authorize`
    - Token URL: `https://id.reveldigital.com/connect/token` scopes: `webapi`
  - API key in header `X-RevelDigital-ApiKey`
  - API key in query parameter `api_key`
- TypeScript: <https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/docs/templates/:templateId/modules/:moduleId/options/:optionId/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `templateId` string, required
- `moduleId` string, required
- `optionId` string, required

## Request body

- ModuleOptionRequest: Request model for creating or updating a module/zone option. Used to set configuration values for specific module/zone types.
  - `name` string, nullable: Option name/key (e.g., 'timezone', 'location', 'url')
  - `value` string, nullable: Option value (string representation that will be parsed based on the option type)

## Response `200`

OK

- ModuleOption: Represents a configuration option for a module/zone (key-value pair). Module/zone options store settings specific to each module/zone type.
  - `id` string, nullable: Module/zone option unique identifier
  - `name` string, nullable: Option name/key (e.g., 'timezone', 'location', 'refresh_interval')
  - `value` string, nullable: Option value (stored as string, parse as needed for the specific option)

## Other responses

- `400`: Bad Request
- `404`: Not Found

---

[API](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api.md) - [All operations](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/reveldigital/apis/revel-digital-rest-api/revisions/39d5c8302822?raw)
