graphql api

Getting Started with GraphQL

Before you get started, familiarize yourself with GraphQL concepts. We are constantly working on expanding our GraphQL API’s capabilities, and we will be designing future features using GraphQL with these concepts in mind.

Making Requests to the GraphQL API

To make requests to our GraphQL API, you must first be authenticated. A typical GraphQL request using cURL is below:

cURL Example

curl --request POST \
     --url https://app.finaleinventory.com/accountPathComponent/api/graphql \
     --header 'content-type: application/json' \
     --header 'authorization: Basic XXX' \
     --header 'connection: keep-alive' \
     --data-binary '{
       "query":"mutation ($jobUrl: String!, $status: String) { jobUpdate(input: {jobUrl: $jobUrl, status: $status}) { job { status } } }",
       "variables":{"jobUrl":"/demo/api/job/10002","status":"Canceled"},
     }'

Breaking Down the Request