v1

latestOpenAPI 3.0.22026-07-26207170320.9 KB
Services - Headers

Add header rule

Add a response header rule to the service with the provided ID.

post/services/{serviceId}/headers

Request body

pathstring required

The request path to add the header to. Wildcards will cause headers to be applied to all matching paths.

namestring required

Header name

valuestring required

Header value

Example request

{
  "path": "/static/*",
  "name": "Cache-Control",
  "value": "public, max-age=604800"
}

Response

Created