Update DID
PUT /{id}/did.json
This endpoint can only be called by the owner of the DID. Corresponds to the Update method speficied at https://w3c-ccg.github.io/did-method-web/#update.
Parameters
Path Parameters
ID: An identifier.
person
Query Parameters
Only valid for GET requests
Request Body
VerifiablePresentation: W3C Verifiable Presentation, see https://w3c.github.io/vc-data-model/.
object
[ "VerifablePresentation"]
VerifiableCredential: W3C Verifiable Credential, see https://w3c.github.io/vc-data-model/.
object
[ "VerifableCredential"]
DID Document: W3C DID Document, see https://w3c.github.io/did-core/.
object
DID: W3C Decentralized Identifier (DID), see https://w3c.github.io/did-core/.
did:web:example.com:person
{ "@context": [ "https://www.w3.org/ns/did/v1", "https://w3id.org/security/suites/jws-2020/v1" ], "id": "did:web:example.com", "verificationMethod": [ { "id": "did:web:example.com#key-0", "type": "JsonWebKey2020", "controller": "did:web:example.com", "publicKeyJwk": { "kty": "OKP", "crv": "Ed25519", "x": "0-e2i2_Ua1S5HbTYnVB0lj2Z2ytXu2-tYmDFf8f5NjU" } }, { "id": "did:web:example.com#key-1", "type": "JsonWebKey2020", "controller": "did:web:example.com", "publicKeyJwk": { "kty": "OKP", "crv": "X25519", "x": "9GXjPGGvmRq9F6Ng5dQQ_s31mfhxrcNZxRGONrmH30k" } }, { "id": "did:web:example.com#key-2", "type": "JsonWebKey2020", "controller": "did:web:example.com", "publicKeyJwk": { "kty": "EC", "crv": "P-256", "x": "38M1FDts7Oea7urmseiugGW7tWc3mLpJh6rKe7xINZ8", "y": "nDQW6XZ7b_u2Sy9slofYLlG03sOEoug3I0aAPQ0exs4" } } ], "authentication": [ "did:web:example.com#key-0", "did:web:example.com#key-2" ], "assertionMethod": [ "did:web:example.com#key-0", "did:web:example.com#key-2" ], "keyAgreement": [ "did:web:example.com#key-1", "did:web:example.com#key-2" ]}
object
{}
{ "type": [ "VerifiableCredential" ], "credentialSubject": { "id": "did:web:example.com" }, "proof": {}}
object
{ "type": [ "VerifiablePresentation" ], "verifiableCredential": { "type": [ "VerifiableCredential" ], "credentialSubject": { "id": "did:web:example.com" }, "proof": {} }, "proof": {}}
Responses
200
Identifier updated.
ProofParameters: Proof parameters define properties that need to be present in the next submitted Verifiable Presentation for PUT, POST and DELETE requests.
object
DID: W3C Decentralized Identifier (DID), see https://w3c.github.io/did-core/.
did:web:example.com:person
Challenge computed by the current state of the DID document, according to proofs.
f8e9a33856ec54be26d62689a73809713d803344bd0f522709bd0a5e0b0832b5
{ "did": "did:web:example.com:person", "challenge": "afd96f3ee6a8cb00f983e54819ab53466fe825b9d749b5b4eb6d12f09331d440", "domain": "example.com", "proof_purpose": "authentication"}
400
Bad Request. DID document missing or not valid.
401
Unauthorized. Authorization failed due to missing or broken proof signature.
404
Not Found. DID of issuer could not be resolved or DID that is being updated does not exist.
500
Internal Server Error.