updateResponseHeaders

put

/ccadmin/v1/merchant/responseHeaders

Set custom response headers. Sets custom response headers for the site with ID set in request header X-CCSite. Sets global header values if X-CCSite is not provided. The payload is a mapping from header names to their escaped values. Null values can be used to delete custom headers.

Request

Supported Media Types
Header Parameters
Body ()
Root Schema : updateResponseHeaders_request
Show Source
Example:
{
    "X-Custom-Header":"test",
    "Content-Security-Policy":"default-src 'self' example.com"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : updateResponseHeaders_response
Show Source
Example Response (application/json)
{
    "X-Content-Type-Options":null,
    "Content-Security-Policy":"default-src 'self' example.com"
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |221001|The following headers cannot be customized: {0}. Allowed response headers: {1}.| |30014|Site ID: {0} does not exist.|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top