Version: 202607
Update market domain
PUT/openapi/2026-07/markets/:id/domain
Change a market's domain mode (primary domain or sub-path).
Request
Path Parameters
id stringrequired
Market ID
- application/json
- Body
- Example
Bodyrequired
primary: use a primary (independent) domainsub_path: use a sub-path suffix under the primary domain For a non-primary market, switching domain_type deletes all existing language configurations of this market and re-copies them from the primary market.
domain_typestringrequired
Domain mode. Allowed values:
domain_valuestring
Domain value. Maximum 255 characters; letters, digits and underscore only. Required when domain_type is sub_path. The sub-path must not clash with a language code abbreviation (e.g., ca)
{
"domain_type": "string",
"domain_value": "string"
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
codestring
error code
messagestring
error message
data object
object
{
"code": "string",
"message": "string",
"data": {}
}