Upwork · Schema

GraphQLRequest

A GraphQL request body containing the operation to execute

FreelancingJobsTalentMarketplaceContractsHiring

Properties

Name Type Description
query string The GraphQL query or mutation string
variables object Variables for the GraphQL operation
operationName string Name of the operation to execute (for documents with multiple operations)
View JSON Schema on GitHub

JSON Schema

graphql-graph-ql-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/upwork/refs/heads/main/json-schema/graphql-graph-ql-request-schema.json",
  "title": "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"
  ]
}