v1
latestOpenAPI 3.1.02026-07-17105740.5 KBUniversal Registrar
Update a DID
This endpoint updates a DID. As input it takes the existing DID, a DID document, plus optional DID registration options and secrets needed to update a DID. The output is a state object that represents the current state of the DID update process.
See the DID Registration specification for additional details.
post/update
Request body
Example request
{
"options": {
"clientSecretMode": true,
"network": "testnet"
},
"secret": {
"seed": "72WGp7NgFR1Oqdi8zlt7jQQ434XR0cNQ",
"verificationMethod": [
{
"id": "did:indy:sovrin:WRfXPg8dantKVubE3HX8pw#key-1",
"type": "JsonWebKey2020",
"privateKeyJwk": {
"kty": "OKP",
"crv": "Ed25519",
"d": "NzJXR3A3TmdGUjFPcWRpOHpsdDdqUVE0MzRYUjBjTlE",
"x": "jpIKKU2b77lNXKTNW2NGvw1GUMjU6v_l_tLJAH5uYz0"
}
}
]
},
"did": "did:indy:sovrin:WRfXPg8dantKVubE3HX8pw",
"didDocumentOperation": [
"setDidDocument"
]
}Response
The request was successful, and the DID may or may not be fully updated yet, as indicated by the "didState.state" and "jobId" output fields. Additional state information plus metadata are available in the response body.
Example response
{
"didState": {
"secret": {
"verificationMethod": [
{
"id": "did:indy:sovrin:WRfXPg8dantKVubE3HX8pw#key-1",
"type": "JsonWebKey2020",
"privateKeyJwk": {
"kty": "OKP",
"crv": "Ed25519",
"d": "NzJXR3A3TmdGUjFPcWRpOHpsdDdqUVE0MzRYUjBjTlE",
"x": "jpIKKU2b77lNXKTNW2NGvw1GUMjU6v_l_tLJAH5uYz0"
}
}
]
}
}
}