Skip to content
gist.link ↗

updateCredential

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

Update a credential; omit the secret to leave it unchanged.

agentworkforce:mutation:updateCredential

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 {
updateCredential(uuid: ID!, input: UpdateCredentialInput!): Credential!
}
Argument Type Required Description
uuid ID! Yes —
input UpdateCredentialInput! Yes —

Credential! — 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 UpdateCredential($uuid: ID!, $input: UpdateCredentialInput!) { updateCredential(uuid: $uuid, input: $input) { uuid name type } }",
"variables": {
"uuid": "01a01234-abcd-7000-9000-0123456789ab",
"input": {
"name": "Example",
"description": "example",
"type": "example"
}
}
}
JSON