Skip to content
gist.link ↗

updateProject

Mutation Intelligence API — POST https://intelligence.api.gist.link/graphql

ROLE_ADMIN or ROLE_INTELLIGENCE_MANAGER.

intelligence:mutation:updateProject

The calling IAM key must hold this permission (or a wildcard that covers it: intelligence:mutation:* or intelligence:*) and the access token must have been minted with audience=intelligence. See Permissions.

type Mutation {
updateProject(id: ID!, input: UpdateProjectInput!): Project!
}
Argument Type Required Description
id ID! Yes —
input UpdateProjectInput! Yes —

Project! — see the Intelligence types reference.

Terminal window
curl https://intelligence.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation UpdateProject($id: ID!, $input: UpdateProjectInput!) { updateProject(id: $id, input: $input) { id name created_at updated_at } }",
"variables": {
"id": "01a01234-abcd-7000-9000-0123456789ab",
"input": {
"name": "Example",
"description": "example",
"target_service_key": "example"
}
}
}
JSON