Update a credential
credential
Update a credential
Replace the payload of an existing credential.
Args:
credential_id (str): The credential to update.
body (UpdateCredentialRequest): New credential payload.
user_id (str): Injected authenticated user ID.
storage (StorageBase): Injected storage backend.
Returns:
CredentialRecord: The updated credential record.
Raises:
HTTPException: 404 if the credential does not exist or does not
belong to the authenticated user.
PATCH
Update a credential
Documentation Index
Fetch the complete documentation index at: https://docs.agentscope.io/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Caller's user ID. Temporary header-based identity; will be replaced by JWT auth.
Path Parameters
Body
application/json
Request body for updating an existing credential.
New credential payload.