Skip to content
gist.link ↗

saveApiConnection

Mutation Agent Workforce API — POST https://agentworkforce.api.gist.link/graphql

Create (no uuid) or update an external API connection. Admins only.

agentworkforce:mutation:saveApiConnection

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

type Mutation {
saveApiConnection(input: SaveApiConnectionInput!): ApiConnection!
}
Argument Type Required Description
input SaveApiConnectionInput! Yes —

ApiConnection! — see the Agent Workforce types reference.

Terminal window
curl https://agentworkforce.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation SaveApiConnection($input: SaveApiConnectionInput!) { saveApiConnection(input: $input) { uuid name slug description baseUrl extraHosts hosts enabled } }",
"variables": {
"input": {
"name": "Example",
"baseUrl": "example"
}
}
}
JSON