Mutation

create_site_request_cookie

Add a new request cookie to a site.

Input Fields

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

Return Fields

request_cookie(): RequestCookie!
The created request cookie.

Example

Query
mutation CreateSiteRequestCookie($input: CreateSiteRequestCookieInput!) {
  create_site_request_cookie(input: $input) {
    request_cookie {
      id
      name
      value
      scope_prefix
    }
  }
}
Variables
{
  "input": {
    "site_id": "6",
    "request_cookie": {
      "name": "X-cookie-name",
      "value": "cookie-value",
      "scope_prefix": "www.example.com"
    }
  }
}