Keymaster API
Response samples
- 200
- 500
{- "wallet": {
- "seed": {
- "mnemonic": "string",
- "hdkey": {
- "xpriv": "string",
- "xpub": "string"
}
}, - "counter": 0,
- "ids": {
- "property1": {
- "did": "string",
- "account": 0,
- "index": 0,
- "owned": [
- "string"
]
}, - "property2": {
- "did": "string",
- "account": 0,
- "index": 0,
- "owned": [
- "string"
]
}
}, - "current": "string",
- "names": {
- "property1": "string",
- "property2": "string"
}
}
}
Save the wallet.
Request Body schema: application/jsonrequired
required | object | ||||||||||
|
Responses
Request samples
- Payload
{- "wallet": {
- "seed": {
- "mnemonic": "string",
- "hdkey": {
- "xpriv": "string",
- "xpub": "string"
}
}, - "counter": 0,
- "ids": {
- "property1": {
- "did": "string",
- "account": 0,
- "index": 0,
- "owned": [
- "string"
]
}, - "property2": {
- "did": "string",
- "account": 0,
- "index": 0,
- "owned": [
- "string"
]
}
}, - "current": "string",
- "names": {
- "property1": "string",
- "property2": "string"
}
}
}
Response samples
- 200
- 500
{- "ok": true
}
Create a new wallet.
Request Body schema: application/jsonoptional
mnemonic | string 12 words separated by a space (optional). |
overwrite | boolean Default: false Whether to overwrite the existing wallet. |
Responses
Request samples
- Payload
{- "mnemonic": "string",
- "overwrite": false
}
Response samples
- 200
- 500
{- "wallet": {
- "seed": {
- "mnemonic": "string",
- "hdkey": {
- "xpriv": "string",
- "xpub": "string"
}
}, - "counter": 0,
- "ids": {
- "property1": {
- "did": "string",
- "account": 0,
- "index": 0,
- "owned": [
- "string"
]
}, - "property2": {
- "did": "string",
- "account": 0,
- "index": 0,
- "owned": [
- "string"
]
}
}, - "current": "string",
- "names": {
- "property1": "string",
- "property2": "string"
}
}
}
Response samples
- 200
- 500
{- "wallet": {
- "seed": {
- "mnemonic": "string",
- "hdkey": {
- "xpriv": "string",
- "xpub": "string"
}
}, - "counter": 0,
- "ids": {
- "property1": {
- "did": "string",
- "account": 0,
- "index": 0,
- "owned": [
- "string"
]
}, - "property2": {
- "did": "string",
- "account": 0,
- "index": 0,
- "owned": [
- "string"
]
}
}, - "current": "string",
- "names": {
- "property1": "string",
- "property2": "string"
}
}
}
Resolve a DID Document.
path Parameters
id required | string The DID or name to resolve. |
query Parameters
atTime | string <date-time> Timestamp to return the state of the DID as of this specific time (RFC3339/ISO8601 format). |
atVersion | integer Specific version of the DID Document to retrieve. Increments each time an |
confirm | boolean If true, returns the DID Document only if it is fully confirmed on the registry it references. |
verify | boolean If true, verifies the signature(s) of the DID operation(s) before returning the DID Document. If a signature is invalid, an error is thrown. |
Responses
Response samples
- 200
- 404
- 500
{- "docs": {
- "@context": "string",
- "didDocument": {
- "@context": [
- "string"
], - "id": "string",
- "controller": "string",
- "verificationMethod": [
- {
- "id": "string",
- "controller": "string",
- "type": "string",
- "publicKeyJwk": { }
}
], - "authentication": [
- "string"
]
}, - "didDocumentMetadata": {
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "deleted": "2019-08-24T14:15:22Z",
- "version": 0,
- "versionId": "string",
- "canonicalId": "string",
- "confirmed": true,
- "deactivated": true
}, - "didDocumentData": { },
- "mdip": {
- "type": "agent",
- "registry": "local",
- "version": 0,
- "validUntil": "2019-08-24T14:15:22Z",
- "registration": "string"
}
}
}
Create a new ID in the wallet.
Request Body schema: application/jsonrequired
name | string The name of the new ID. |
object Optional parameters. |
Responses
Request samples
- Payload
{- "name": "string",
- "options": {
- "registry": "local"
}
}
Response samples
- 200
- 500
{- "did": "string"
}
Rename an existing ID in the wallet.
path Parameters
id required | string The current name of the ID to be renamed. |
Request Body schema: application/jsonrequired
name required | string The new name for the ID. |
Responses
Request samples
- Payload
{- "name": "string"
}
Response samples
- 200
- 400
{- "ok": true
}
Add a new name-to-DID mapping.
Request Body schema: application/jsonrequired
name required | string The human-readable name to associate with the DID. |
did required | string The DID that this name should refer to. |
Responses
Request samples
- Payload
{- "name": "string",
- "did": "string"
}
Response samples
- 200
- 500
{- "ok": true
}
Create a challenge DID with custom data or options.
Request Body schema: application/jsonoptional
challenge | object Arbitrary challenge data. |
object Additional options. |
Responses
Request samples
- Payload
{- "challenge": { },
- "options": {
- "registry": "local",
- "validUntil": "2019-08-24T14:15:22Z"
}
}
Response samples
- 200
- 400
- 500
{- "did": "string"
}
Create a response to an existing challenge DID.
Accepts a challenge DID (the DID of a previously created challenge) and an options
object, then returns a new DID containing the response. Internally, the Keymaster finds matching credentials and bundles them into verifiable presentations. The response is encrypted for the original challenge's controller and stored as a new asset DID.
Request Body schema: application/jsonrequired
challenge | string DID of the challenge to respond to. |
object Additional parameters controlling how the response is created and stored. |
Responses
Request samples
- Payload
{- "challenge": "string",
- "options": {
- "registry": "string",
- "validUntil": "2019-08-24T14:15:22Z",
- "retries": 0,
- "delay": 1000,
- "encryptForSender": true,
- "includeHash": true,
- "controller": "string"
}
}
Response samples
- 200
- 400
- 500
{- "did": "string"
}
Verify a response to a challenge.
Request Body schema: application/jsonrequired
response | string DID of the challenge response asset to verify. |
object Additional verification parameters. |
Responses
Request samples
- Payload
{- "response": "string",
- "options": {
- "retries": 0,
- "delay": 1000,
- "atTime": "2019-08-24T14:15:22Z",
- "atVersion": 0,
- "confirm": true,
- "verify": true
}
}
Response samples
- 200
- 400
- 500
{- "verify": {
- "challenge": "string",
- "credentials": [
- { }
], - "match": true,
- "vps": [
- { }
], - "responder": "string"
}
}
Create a new group asset (DID).
Request Body schema: application/jsonrequired
name | string The human-readable name of the group. |
object Additional parameters for creating the group. |
Responses
Request samples
- Payload
{- "name": "string",
- "options": {
- "members": [
- "string"
], - "registry": "string",
- "validUntil": "2019-08-24T14:15:22Z",
- "retries": 0,
- "delay": 1000,
- "encryptForSender": true,
- "includeHash": true,
- "controller": "string"
}
}
Response samples
- 200
- 500
{- "did": "string"
}
Retrieve an existing group.
Returns the stored group object (including its name and members) for the given group DID or name.
path Parameters
name required | string The name or DID of the group to retrieve. |
Responses
Response samples
- 200
- 404
- 500
{- "group": {
- "name": "string",
- "members": [
- "string"
]
}
}
Add a member to an existing group.
Adds a DID (or group) as a member of the specified group.
path Parameters
name required | string The name or DID of the group to update. |
Request Body schema: application/jsonrequired
member required | string The DID (or group DID) to add as a member. |
Responses
Request samples
- Payload
{- "member": "string"
}
Response samples
- 200
- 500
{- "ok": true
}
Remove a member from an existing group.
path Parameters
name required | string The name or DID of the group to update. |
Request Body schema: application/jsonrequired
member required | string The DID (or group DID) to remove from the group. |
Responses
Request samples
- Payload
{- "member": "string"
}
Response samples
- 200
- 500
{- "ok": true
}
Test membership in a group.
path Parameters
name required | string The name or DID of the group to test. |
Request Body schema: application/jsonoptional
member | string The DID or group DID to check for membership. |
Responses
Request samples
- Payload
{- "member": "string"
}
Response samples
- 200
- 400
{- "test": true
}
Create a new schema.
Request Body schema: application/jsonrequired
schema | object A valid JSON Schema to be stored. |
object Additional creation parameters. |
Responses
Request samples
- Payload
{- "schema": { },
- "options": {
- "registry": "string",
- "validUntil": "2019-08-24T14:15:22Z"
}
}
Response samples
- 200
- 500
{- "did": "string"
}
Update an existing schema.
Replaces the schema (if valid) associated with the given DID or name. This operation will preserve the same DID while storing an updated schema in the underlying asset data.
path Parameters
id required | string The name or DID of the schema to update. |
Request Body schema: application/jsonrequired
schema | object The new JSON Schema to store. |
Responses
Request samples
- Payload
{- "schema": { }
}
Response samples
- 200
- 500
{- "ok": true
}
Test if a DID or name refers to a valid schema.
Checks whether the given DID or name refers to an asset containing a valid JSON Schema. Returns true if it's a recognized valid schema, otherwise false
.
path Parameters
id required | string The name or DID of the schema to test. |
Request Body schema: application/jsonoptional
No required body parameters (reserved for future use).
Responses
Request samples
- Payload
{ }
Response samples
- 200
- 400
{- "test": true
}
Check whether the given ID (or DID) is an agent.
path Parameters
id required | string The ID name or DID to test. |
Request Body schema: application/jsonoptional
No body required for this endpoint.
Responses
Request samples
- Payload
{ }
Response samples
- 200
- 400
{- "test": true
}
Prepare (bind) a credential without issuing it.
Request Body schema: application/jsonrequired
schema | string The schema DID or name to which this credential conforms. |
subject | string The subject DID (or name) for whom this credential is bound. |
object Optional parameters for credential creation. |
Responses
Request samples
- Payload
{- "schema": "string",
- "subject": "string",
- "options": {
- "credential": { },
- "validFrom": "2019-08-24T14:15:22Z",
- "validUntil": "2019-08-24T14:15:22Z"
}
}
Response samples
- 200
- 400
{- "credential": { }
}
Publish a held credential publicly.
path Parameters
did required | string The credential DID to publish from the holder's wallet. |
Request Body schema: application/jsonoptional
object Additional parameters controlling the publication. | |||
|
Responses
Request samples
- Payload
{- "options": {
- "reveal": false
}
}
Response samples
- 200
- 400
{- "ok": { }
}
Remove a published credential from the holder’s DID Document manifest.
path Parameters
did required | string The credential DID to unpublish. |
Request Body schema: application/jsonoptional
No additional parameters by default.
Responses
Request samples
- Payload
{ }
Response samples
- 200
- 400
{- "ok": "string"
}
Issue a new credential.
Request Body schema: application/jsonrequired
credential | object A valid credential object. If omitted, |
object Additional issuance parameters. |
Responses
Request samples
- Payload
{- "credential": { },
- "options": {
- "schema": "string",
- "subject": "string",
- "registry": "string",
- "validUntil": "2019-08-24T14:15:22Z",
- "retries": 0,
- "delay": 1000,
- "encryptForSender": true,
- "includeHash": true,
- "controller": "string"
}
}
Response samples
- 200
- 400
{- "did": "string"
}
Update an existing issued credential.
path Parameters
did required | string The DID of the issued credential to update. |
Request Body schema: application/jsonrequired
credential required | object The new credential data to store. |
Responses
Request samples
- Payload
{- "credential": { }
}
Response samples
- 200
- 400
{- "ok": true
}
Encrypt a plaintext message into a DID asset.
Request Body schema: application/jsonrequired
msg | string The plaintext message to encrypt. |
receiver | string The DID (or name) of the intended recipient. |
object Additional encryption/creation parameters. |
Responses
Request samples
- Payload
{- "msg": "string",
- "receiver": "string",
- "options": {
- "registry": "string",
- "validUntil": "2019-08-24T14:15:22Z",
- "retries": 0,
- "delay": 1000,
- "encryptForSender": true,
- "includeHash": false,
- "controller": "string"
}
}
Response samples
- 200
- 500
{- "did": "string"
}
Encrypt a JSON object into a DID asset.
Request Body schema: application/jsonrequired
json | object The JSON object to be encrypted. |
receiver | string The DID (or name) of the intended recipient. |
object Additional encryption/creation parameters (same fields as |
Responses
Request samples
- Payload
{- "json": { },
- "receiver": "string",
- "options": {
- "registry": "string",
- "validUntil": "2019-08-24T14:15:22Z",
- "retries": 0,
- "delay": 1000,
- "encryptForSender": true,
- "includeHash": false,
- "controller": "string"
}
}
Response samples
- 200
- 500
{- "did": "string"
}
Add a signature to a JSON object using the current ID's keys.
Request Body schema: application/jsonrequired
contents required | string A JSON string representing the data to be signed. |
Responses
Request samples
- Payload
{- "contents": "string"
}
Response samples
- 200
- 500
{- "signed": { }
}
Verify a JSON object's signature.
Request Body schema: application/jsonrequired
json required | object The signed JSON object to verify, which must include a |
Responses
Request samples
- Payload
{- "json": { }
}
Response samples
- 200
- 500
{- "ok": true
}
Generate a JSON template from a schema.
Creates a JSON template object based on the specified schema. The template will include placeholder values that conform to the schema's structure and constraints.
path Parameters
id required | string The name or DID of the schema from which to generate a template. |
Responses
Response samples
- 200
- 404
- 500
{- "template": { }
}
Create a new asset DID.
Request Body schema: application/jsonrequired
data | object Arbitrary data to store in this asset. |
object Additional creation parameters. |
Responses
Request samples
- Payload
{- "data": { },
- "options": {
- "registry": "string",
- "validUntil": "2019-08-24T14:15:22Z",
- "controller": "string",
- "name": "string"
}
}
Response samples
- 200
- 500
{- "did": "string"
}
Update an existing asset.
path Parameters
id required | string The asset DID or name to update. |
Request Body schema: application/jsonrequired
data | object The new data to store in this asset's DID Document. |
Responses
Request samples
- Payload
{- "data": { }
}
Response samples
- 200
- 500
{- "ok": true
}
Transfer ownership of an asset.
Transfers the ownership of the specified asset (identified by its DID or name) to a new controller.
path Parameters
id required | string The DID or name of the asset to transfer. |
Request Body schema: application/jsonrequired
controller required | string The DID of the new controller to transfer ownership to. |
Responses
Request samples
- Payload
{- "controller": "string"
}
Response samples
- 200
- 500
{- "ok": true
}
Clone an existing asset.
Creates a new asset by cloning the data of an existing asset identified by its DID or name. The cloned asset will include a reference to the original asset in its metadata.
path Parameters
id required | string The DID or name of the asset to clone. |
Request Body schema: application/jsonoptional
object Additional parameters for cloning the asset. | |||||
|
Responses
Request samples
- Payload
{- "options": {
- "registry": "string",
- "validUntil": "2019-08-24T14:15:22Z"
}
}
Response samples
- 200
- 500
{- "did": "string"
}
Create a new poll.
Request Body schema: application/jsonrequired
object The poll definition containing the required fields. | |
object Additional parameters for poll creation. |
Responses
Request samples
- Payload
{- "poll": {
- "type": "poll",
- "version": 1,
- "description": "string",
- "roster": "string",
- "options": [
- "string",
- "string"
], - "deadline": "2019-08-24T14:15:22Z"
}, - "options": {
- "registry": "string",
- "validUntil": "2019-08-24T14:15:22Z",
- "retries": 0,
- "delay": 1000,
- "encryptForSender": true,
- "includeHash": false,
- "controller": "string"
}
}
Response samples
- 200
- 500
{- "did": "string"
}
Cast a vote in a poll.
Casts a vote in the specified poll. The vote is recorded as a ballot DID, which should be submitted to the poll owner.
path Parameters
poll required | string The DID or name of the poll to vote in. |
Request Body schema: application/jsonrequired
vote required | integer The numerical option index (1-based). Use 0 or set |
object Additional vote parameters. |
Responses
Request samples
- Payload
{- "vote": 0,
- "options": {
- "spoil": false,
- "registry": "string",
- "validUntil": "2019-08-24T14:15:22Z",
- "retries": 0,
- "delay": 1000,
- "encryptForSender": false,
- "includeHash": false,
- "controller": "string"
}
}
Response samples
- 200
- 500
{- "did": "string"
}
Publish final poll results to the poll’s DID Document.
path Parameters
poll required | string The DID or name of the poll to publish. |
Request Body schema: application/jsonoptional
object Publication parameters. | |||
|
Responses
Request samples
- Payload
{- "options": {
- "reveal": false
}
}
Response samples
- 200
- 500
{- "ok": { }
}
Remove previously published poll results from the poll's DID Document.
path Parameters
poll required | string The DID or name of the poll to unpublish. |
Request Body schema: application/jsonoptional
No additional parameters, unless needed for future expansions.
Responses
Request samples
- Payload
{ }
Response samples
- 200
- 500
{- "ok": true
}
Upload an image and create a DID for it.
Uploads an image as binary data and creates a DID for it. Additional options can be passed via the X-Options
header.
header Parameters
X-Options | string A JSON string containing additional options for the image creation process. Example: |
Request Body schema: application/octet-streamrequired
The image data to store as a DID asset.
Responses
Response samples
- 200
- 500
{- "did": "string"
}
Update an existing image.
Updates the binary data of an existing image identified by its DID.
path Parameters
id required | string The DID of the image to update. |
Request Body schema: application/octet-streamrequired
The new image data to replace the existing one.
Responses
Response samples
- 200
- 500
{- "ok": true
}
Retrieve an image by its DID.
Fetches the image data and metadata associated with the specified DID.
path Parameters
id required | string The DID of the image to retrieve. |
Responses
Response samples
- 200
- 404
{- "image": {
- "type": "string",
- "width": 0,
- "height": 0,
- "bytes": 0,
- "cid": "string"
}
}
Upload a binary document and create a DID for it.
Accepts binary data as the request body and creates a DID for the uploaded document. Additional options can be passed via the X-Options
header.
header Parameters
X-Options | string A JSON string containing additional options for the document creation process. Example: |
Request Body schema: application/octet-streamrequired
The binary document data to store as a DID asset.
Responses
Response samples
- 200
- 500
{- "did": "string"
}
Update an existing binary document.
Updates the binary data of an existing document identified by its DID. Additional options can be passed via the X-Options
header.
path Parameters
id required | string The DID of the document to update. |
header Parameters
X-Options | string A JSON string containing additional options for the document update process. Example: |
Request Body schema: application/octet-streamrequired
The new binary document data to replace the existing one.
Responses
Response samples
- 200
- 500
{- "ok": true
}
Retrieve a binary document by its DID.
Fetches the binary document data and metadata associated with the specified DID.
path Parameters
id required | string The DID of the document to retrieve. |
Responses
Response samples
- 200
- 404
{- "document": {
- "type": "string",
- "bytes": 0,
- "cid": "string"
}
}
Create a new group vault.
Creates a new group vault asset and returns its DID.
Request Body schema: application/jsonrequired
object Additional options for group vault creation. | |||||
|
Responses
Request samples
- Payload
{- "options": {
- "registry": "string",
- "validUntil": "2019-08-24T14:15:22Z"
}
}
Response samples
- 200
- 500
{- "did": "string"
}
Retrieve a group vault by DID.
Returns the group vault object for the specified DID.
path Parameters
id required | string The DID of the group vault to retrieve. |
Responses
Response samples
- 200
- 404
{- "groupVault": {
- "publicJwk": { },
- "salt": "string",
- "keys": {
- "property1": "string",
- "property2": "string"
}, - "items": "string"
}
}
Add a member to a group vault.
Adds a new member to the specified group vault if the caller has permission.
path Parameters
id required | string The DID of the group vault. |
Request Body schema: application/jsonrequired
memberId required | string The DID of the member to add to the group vault. |
Responses
Request samples
- Payload
{- "memberId": "string"
}
Response samples
- 200
- 404
{- "ok": true
}
List all members of a group vault. (available only to group vault owner)
Returns an object containing all member DIDs of the specified group vault.
path Parameters
id required | string The DID of the group vault. |
Responses
Response samples
- 200
- 404
{- "members": {
- "property1": { },
- "property2": { }
}
}
Remove a member from a group vault.
Removes the specified member from the group vault if the caller has permission.
path Parameters
id required | string The DID of the group vault. |
member required | string The DID of the member to remove from the group vault. |
Responses
Response samples
- 200
- 404
{- "ok": true
}
Add an item to a group vault.
Adds a new item (binary data) to the specified group vault. The item name must be provided in the X-Options header as JSON.
path Parameters
id required | string The DID of the group vault. |
header Parameters
X-Options required | string A JSON string containing additional options, including the item name. Example: {"name":"myfile.txt"} |
Request Body schema: application/octet-streamrequired
Responses
Response samples
- 200
- 500
{- "ok": true
}
Remove an item from a group vault.
Deletes the specified item from the group vault if the caller has permission.
path Parameters
id required | string The DID of the group vault. |
name required | string The name of the item to remove from the group vault. |
Responses
Response samples
- 200
- 404
{- "ok": true
}
Retrieve an item from a group vault.
Returns the binary data for a specific item stored in the group vault.
path Parameters
id required | string The DID of the group vault. |
name required | string The name of the item to retrieve from the group vault. |
Responses
Response samples
- 404
{- "error": "string"
}
List all Dmail messages for the current or specified owner.
Returns a mapping of Dmail DIDs to Dmail item objects for the current wallet or for the specified owner.
query Parameters
owner | string The name or DID of the owner whose Dmail messages should be listed. |
Responses
Response samples
- 200
- 500
{- "dmail": {
- "property1": { },
- "property2": { }
}
}
Create a new Dmail message.
Request Body schema: application/jsonrequired
message | object The Dmail message object to create. |
options | object Additional creation options (e.g., registry, validUntil). |
Responses
Request samples
- Payload
{- "message": {
- "to": [
- "did:mdip:abc123",
- "did:mdip:def456"
], - "cc": [
- "did:mdip:ghi789"
], - "subject": "Hello World",
- "body": "This is a test Dmail message."
}, - "options": { }
}
Response samples
- 200
- 500
{- "did": "string"
}
Update an existing Dmail message.
path Parameters
id required | string The DID of the Dmail message to update. |
Request Body schema: application/jsonrequired
message | object The updated Dmail message object. |
Responses
Request samples
- Payload
{- "message": { }
}
Response samples
- 200
- 500
{- "ok": true
}
File (move) a Dmail message to a different folder by updating its tags.
Updates the tags of a Dmail message, allowing it to be moved between folders such as inbox, archive, or trash.
path Parameters
id required | string The DID of the Dmail message to file. |
Request Body schema: application/jsonrequired
tags required | Array of strings The new tags to assign to the Dmail message (e.g., ["inbox"], ["archived"], ["deleted"]). |
Responses
Request samples
- Payload
{- "tags": [
- "string"
]
}
Response samples
- 200
- 500
{- "ok": true
}
List all attachments for a specific Dmail message.
Returns a mapping of attachment names to their metadata for the specified Dmail DID.
path Parameters
id required | string The DID of the Dmail message whose attachments should be listed. |
Responses
Response samples
- 200
- 404
{- "attachments": {
- "property1": { },
- "property2": { }
}
}
Add an attachment to a specific Dmail message.
Uploads a binary attachment and associates it with the specified Dmail message. The attachment name must be provided in the X-Options header as JSON.
path Parameters
id required | string The DID of the Dmail message to attach the file to. |
header Parameters
X-Options required | string A JSON string containing additional options, including the attachment name. Example: {"name":"myfile.txt"} |
Request Body schema: application/octet-streamrequired
Responses
Response samples
- 200
- 500
{- "ok": true
}
Remove an attachment from a specific Dmail message.
Deletes the specified attachment from the Dmail message identified by its DID.
path Parameters
id required | string The DID of the Dmail message. |
name required | string The name of the attachment to remove. |
Responses
Response samples
- 200
- 404
{- "ok": true
}
Download a specific attachment from a Dmail message.
Returns the binary data for the specified attachment associated with the given Dmail DID.
path Parameters
id required | string The DID of the Dmail message. |
name required | string The name of the attachment to download. |
Responses
Response samples
- 404
"string"
Create a new notice asset.
Creates a new notice asset (e.g., for Dmail delivery) and returns its DID.
Request Body schema: application/jsonrequired
message | object The NoticeMessage object to create. |
options | object Additional creation options (e.g., registry, validUntil). |
Responses
Request samples
- Payload
{- "message": {
- "to": [
- "did:mdip:abc123",
- "did:mdip:def456"
], - "dids": [
- "did:mdip:dmail1",
- "did:mdip:dmail2"
]
}, - "options": { }
}
Response samples
- 200
- 500
{- "did": "string"
}
Update an existing notice asset.
Updates the NoticeMessage data for the specified notice DID.
path Parameters
id required | string The DID of the notice to update. |
Request Body schema: application/jsonrequired
message | object The updated NoticeMessage object. |
Responses
Request samples
- Payload
{- "message": {
- "to": [
- "did:mdip:abc123",
- "did:mdip:def456"
], - "dids": [
- "did:mdip:dmail1",
- "did:mdip:dmail2"
]
}
}
Response samples
- 200
- 500
{- "ok": true
}