Services - Headers

Add header rule

Changed on

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

post/services/{serviceId}/headers

Request

  • Base URL
    https://api.render.com/v1
  • Auth
    HTTP bearer

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

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status