Last Updated: Mar 30, 2018


Modify custom HTTP headers.

Request parameters

Parameters Type Required Example values Description
Action String Yes ModifyHttpHeaderConfig

The name of this interface. Value: ModifyHttpHeaderConfig

ConfigID String Yes 892783

Configuration ID to be modified.

DomainName String Yes

Your CDN domain name.

HeaderKey String Yes content-type

HTTP header parameter. Value:

  • content-type
  • cache-control
  • content-disposition
  • content-language
  • expires
  • access-control-allow-origin
  • access-control-allow-methods
  • access-control-max-age

HeaderValue String Yes application

HTTP header parameter value.

Return parameters

Parameters Type Example values Description
RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

The Id of the request.


Request example

  2. &
  3. &HeaderKey=content-type
  4. &headerValue=application
  5. &ConfigID=892783
  6. &<Public request parameter>

Normal return example

JSON format

  1. {
  2. "RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368"
  3. }

Exception return example

JSON format

  1. {
  2. "Code":"InternalError",
  3. "HostId":"",
  4. "Message":"The request processing has failed due to some unknown error.",
  5. "RequestId":"16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
  6. }

Error code

For more information, see Error code of this product.

Thank you! We've received your feedback.