Mutation

create_site_request_header

Add a new request header to a site.

Input Fields

site_id(): ID!
The unique identifier of the site you want to attach a request header to.
request_header(): RequestHeaderInput!
The request header to create.

Return Fields

request_header(): RequestHeader!
The created request header.

Example

Query
mutation CreateSiteRequestHeader($input: CreateSiteRequestHeaderInput!) {
  create_site_request_header(input: $input) {
    request_header {
      id
      name
      value
      scope_prefix
    }
  }
}
Variables
{
  "input": {
    "site_id": "6",
    "request_header": {
      "name": "X-header-name",
      "value": "header-value",
      "scope_prefix": "www.example.com"
    }
  }
}