Upwork · JSON Structure

Graphql Graph Ql Request Structure

A GraphQL request body containing the operation to execute

Type: object Properties: 3 Required: 1
FreelancingJobsTalentMarketplaceContractsHiring

GraphQLRequest is a JSON Structure definition published by Upwork, describing 3 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

query variables operationName

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/upwork/refs/heads/main/json-structure/graphql-graph-ql-request-structure.json",
  "name": "GraphQLRequest",
  "description": "A GraphQL request body containing the operation to execute",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "The GraphQL query or mutation string",
      "example": "query { marketplaceJobPostingsSearch(searchExpression: \"python\") { total } }"
    },
    "variables": {
      "type": "object",
      "description": "Variables for the GraphQL operation",
      "additionalProperties": true
    },
    "operationName": {
      "type": "string",
      "description": "Name of the operation to execute (for documents with multiple operations)",
      "example": "SearchJobs"
    }
  },
  "required": [
    "query"
  ]
}