Skip to main content
Overwrite the stored credential data (e.g. username/password) while keeping the same credential ID.
updated = await client.update_credential(
    "cred_abc123",
    name="Updated Login",
    credential_type="password",
    credential={
        "username": "new_user@example.com",
        "password": "new_password",
    },
)

Parameters

ParameterTypeRequiredDescription
credential_idstrYesThe credential ID to update.
namestrYesName of the credential.
credential_typestrYesType of credential ("password", "credit_card", "secret").
credentialdictYesThe new credential data.
vault_typeCredentialVaultTypeNoVault provider.
request_optionsRequestOptionsNoPer-request configuration (see below).

Returns CredentialResponse


Request options

Override timeout, retries, or headers for this call by passing request_options (Python) or a second options argument (TypeScript).
from skyvern.client.core import RequestOptions

request_options=RequestOptions(
    timeout_in_seconds=120,
    max_retries=3,
    additional_headers={"x-custom-header": "value"},
)
Option (Python)Option (TypeScript)TypeDescription
timeout_in_secondstimeoutInSecondsint / numberHTTP timeout in seconds.
max_retriesmaxRetriesint / numberRetry count.
additional_headersheadersdict / Record<string, string>Extra headers.
additional_query_parameters-dictExtra query parameters.
additional_body_parameters-dictExtra body parameters.
-abortSignalAbortSignalSignal to cancel the request.
-apiKeystringOverride API key.