Skip to main content

updateOAuth2Connection Mutation

Update OAuth2 Connection properties for a given Instance Config Variable.

Access is permitted when any of the following condition(s) are met: 1. The signed-in User has any of the following permissions for the associated Organization: [org_manage_instances]. 2. The signed-in User has any of the following permissions for the object's 'instance' attribute: [instance_edit]. 3. The signed-in User has any of the following permissions for the object's 'instance_Customer' attribute: [customer_admin_manage_instances, customer_manage_marketplace_integrations]. 4. The signed-in User has any of the following permissions for the object's 'instance_Integration_Customer' attribute: [customer_admin_manage_instances, customer_manage_marketplace_integrations].

Input fields (UpdateOAuth2ConnectionInput!)

ArgumentTypeDescription
refreshAtDateTimeThe timestamp at which the next refresh attempt will occur for the Connection.
accessTokenStringThe OAuth2 access token to use for the Connection.
refreshTokenStringThe OAuth2 refresh token to use for the Connection.
tokenTypeStringThe type of OAuth2 token to use for the Connection.
expiresInIntThe number of seconds until the token is expired and a refresh must occur for the Connection.
contextStringThe context to use for the Connection. Completely replaces any existing value for context on the Connection.
statusStringThe status to use for the Connection.
additionalTokenFieldsStringAdditional fields to store on the token.
idIDThe ID of the InstanceConfigVariable to mutate.
clientMutationIdStringA unique identifier for the client performing the mutation.

Return fields (UpdateOAuth2ConnectionPayload)

clientMutationId (String)
errors ([ErrorType!]!)
instanceConfigVariable (InstanceConfigVariable)