Update a DID
Update a did:cheqd DID using the Credo Agent.
This guide walks you through how to update an existing cheqd DID using your configured Credo Agent. Updating a DID Document lets you add or modify keys, service endpoints, or other metadata associated with the DID.
Prerequisites
Before you begin, make sure:
β Your Credo agent is already configured with cheqd support
β You have write access to the DID (i.e., the key used for DID creation or a controller key)
β You know the DID you want to update and its current document state
How DID Updates Work
To update a did:cheqd
, you must:
Fetch the current DID Document
Modify the relevant fields (e.g., add keys, update service endpoints)
Submit the updated DID Document using
agent.dids.update(...)
Example: Add a New Service and Verification Method
Parameters Reference
did
β
The DID you want to update
didDocument
β
The complete updated DID Document
secret
β οΈ
Required only if you're referencing new keys not yet in the agentβs wallet
options
β
Optional advanced settings (e.g., method-specific configurations)
Last updated
Was this helpful?