انتقل إلى المحتوى الرئيسي

Publish the previewed DID document

POST 

/api/v1/identifiers/:id/publish

Requires Idempotency-Key; takes no body. The agent signs the previewed document with keys that never leave their token, and the result is written to the identifier host: the log at /.well-known/did.jsonl and the did:web form at /.well-known/did.json for webvh, the second alone for web. The identifier then resolves, and a resolver may go on seeing the previous version for up to five minutes.

Refused with 409 when the current document has not been previewed, when the identifier is not prepared, and when another publication of the same identifier won the race; read the identifier again and decide. What is signed is compared with what was previewed before a byte is written. If they differ nothing is published, the identifier becomes failed with failureReason: document-mismatch and its keys are destroyed, and the refusal is recorded in the audit trail.

Request​

Responses​

The identifier, in state published.

Response Headers
    X-Correlation-Id

    The correlation id of the request, on every response including 401.