v1

latestOpenAPI 3.0.22026-07-26207170320.9 KB
Services - Headers

Replace header rules

Replace all header rules for a particular service with the provided list.

This deletes all existing header rules for the service that aren't included in the request.

put/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

OK

idstring required
pathstring required
namestring required
valuestring required