Modify preview configuration
PUT https://manage.kontent.ai/v2/projects/:environment_id/preview-configuration
Adjust the preview URLs configured for your environment.
Request Body
{"space_domains"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "preview_url_patterns"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"space_domains":[{"space":{},"domain":"www.mysite1.com"},{"space":{},"domain":"www.mysite2.com"}],"preview_url_patterns":[{"content_type":{},"url_patterns":[{"space":{},"url_pattern":"https://{Space}/{Lang}/articles/history/"}]},{"content_type":{},"url_patterns":[{"space":null,"url_pattern":"https://www.mysite1.com/{Lang}/articles/"}]}]}