GraphQL API Examples
Examples for how to use Objects Grid GraphQL API
For GraphiQL Playground go to https://apis.objectsgrid.com/playground
Create an Access Token example
GraphiQL Query and Headers sections:
mutation CreateAccessToken{
createUserAccountAccessToken(input: {
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange"
subject_token: "your id token here, use https://admin.objectsgrid.com/google_token.html to get one"
subject_token_type: "urn:ietf:params:oauth:token-type:id_token"
client_id: "your organization account id org-???-????"
}){
access_token
token_type
expires_in
refresh_token
}
}{
"X-ObjectsGrid-Accesspoint": "EU"
}You should get back:
Create Generic Object
GraphiQL Query and Headers sections:
You should get back something close to:
Retrieve Generic Object
GraphiQL Query and Headers sections:
You should get back something close to:
Update a Generic Object
GraphiQL Query and Headers sections:
You should get back something close to:
Delete Generic Object
GraphiQL Query and Headers sections:
You should get back:
List Generic Objects
GraphiQL Query and Headers sections:
You should get back:
Create EnumStringLocalized
GraphiQL Query and Headers sections:
Retrieve EnumStringLocalized
GraphiQL Query and Headers sections:
Update EnumStringLocalized
GraphiQL Query and Headers sections:
Delete EnumStringLocalized
GraphiQL Query and Headers sections:
You should get back "true":
List Enums IDs
GraphiQL Query and Headers sections:
You should get back an array of Enums IDs:
Last updated
Was this helpful?