For the complete documentation index, see llms.txt. This page is also available as Markdown.

updateCredential

Updates an existing connector credential in place. Rotating a secret with this mutation keeps the credential identifier, so monitored resources, tags, and scan history on the connector are preserved.

Examples

mutation UpdateCredential($credentialsId: String!, $data: UpdateCredentialInput!, $connectorId: String!) {
  updateCredential(credentialsId: $credentialsId, data: $data, connectorId: $connectorId) {
    credential {
      ... on UserPasswordOnlyCredentials {
        name
        password
        credentialsId
        credentialsName
        tokenExpirationDate
        invalidReason
        credentialsType
        isCertChecksDisabled
        hostURL
        iv
        monitoredResources
        monitorAllResources
        monitorAllNewlyCreatedResources
        brokerUsername
        brokerPassword
        brokerEnabled
        brokerHost
        brokerPort
      }
    }
  }
}

Variables

This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.

Arguments

You can use the following argument(s) to customize your updateCredential mutation.

Argument
Description
Supported fields

credentialsId String! required

Unique identifier of the credential to update

Fields to update on the credential. Only the supplied fields are changed.

credentialsName String token String password String clientSecret String apiSecretKey String awsRoleArn String

connectorId String! required

Unique identifier of the connector that owns the credential

Fields

Return type: CredentialResponse

You can use the following field(s) to specify what information your updateCredential mutation will return. Please note that some fields may have their own subfields.

Field
Description
Supported fields

credential Credential

Connector object

Last updated