Update a did:cheqd DID from ACA-Py Agent
Follow these instructions to update a did:cheqd DID from ACA-Py Agent.
⚠️ Important...
Your wallet must have the key(s) which were generated when the DID was created, without them signing will fail.
To update an existing DID, you must pass the did
id and the complete didDocument
in the request body. The main field that is updated using this method os the service
object of the DID.
DID to update
"did:cheqd:testnet:099be283-4302-40cc-9850-22016bcd1d86"
^(did:cheqd:(testnet|mainnet):(?:(?:[a-zA-Z0-9]{21,22}|([a-z,0-9,-]{36,36}))*:)*((?:[a-zA-Z0-9]{21,22}|([a-z,0-9,-]{36,36}))+)((;[a-zA-Z0-9_.:%-]+=[a-zA-Z0-9_.:%-]*)*)([?][^#]*)?|did:cheqd:(testnet|mainnet):(?:(?:[a-zA-Z0-9]{21,22}|([a-z,0-9,-]{36,36}))*:)*((?:[a-zA-Z0-9]{21,22}|([a-z,0-9,-]{36,36}))+)/resources/([a-z,0-9,-]{36,36})([?][^#]*)?)$
DID Document to update
Authentication Methods
DID Document controllers
DID ID
"did:example:123"
Services
Service ID
"did:example:123#service-1"
Array of Service endpoints
Service endpoint URL
Service Type
"MessagingService"
Verification Methods
Verification controller DID
Verification Method ID
"did:example:123#key-1"
Public Key in base58 format
"B12NYF8RZ5Zk.."
Public Key in Jwk format
Public Key in multibase format
"z6Mk..."
Type of Verification Method
"Ed25519VerificationKey2018"
Additional configuration options
DID that has been updated
"did:cheqd:testnet:099be283-4302-40cc-9850-22016bcd1d86"
^(did:cheqd:(testnet|mainnet):(?:(?:[a-zA-Z0-9]{21,22}|([a-z,0-9,-]{36,36}))*:)*((?:[a-zA-Z0-9]{21,22}|([a-z,0-9,-]{36,36}))+)((;[a-zA-Z0-9_.:%-]+=[a-zA-Z0-9_.:%-]*)*)([?][^#]*)?|did:cheqd:(testnet|mainnet):(?:(?:[a-zA-Z0-9]{21,22}|([a-z,0-9,-]{36,36}))*:)*((?:[a-zA-Z0-9]{21,22}|([a-z,0-9,-]{36,36}))+)/resources/([a-z,0-9,-]{36,36})([?][^#]*)?)$
State of the did update
Flag to denote if the operation was successful
true