This is an example of a using the Project
query in the Rize GraphQL API. Be sure to have your API key available (see Authentication if you don’t have one yet).
curl -X POST <https://api.rize.io/api/v1/graphql> \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer YOUR_API_KEY" \\
-d '{
"query": "query Project($id: ID!) { project(id: $id) { id name } }",
"variables": {
"id": "124119"
}
}'
Successful response
{"data":{"project":{"id":"124119","name":"Your Project Name"}}}
Error response
{"errors":[{"message":"Variable $id of type ID! was provided invalid value","locations":[{"line":1,"column":15}],"extensions":{"value":null,"problems":[{"path":[],"explanation":"Expected value to not be null"}]}}]}