Last updated 8 months ago
Validate DID document format.
DID Document.
Successful operation.
const response = await fetch('/api/v1/profiles/did-document/validate', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "id": "text", "context": [ "text" ], "alsoKnownAs": [ "text" ], "controller": [ "text" ], "verificationMethod": [], "authentication": [], "assertionMethod": [], "keyAgreement": [], "capabilityInvocation": [], "capabilityDelegation": [], "service": [] }), }); const data = await response.json();
{ "valid": false, "error": "text" }