Skip to main content

change Digital Twin Ownership

PATCH 

https://api.mtrust.io/api/gemini/v1/digital-twin/ownership/:did

Transfer the ownership of a Digital Twin to a new owner, by changing the key material

Request

Responses

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Patch, "https://api.mtrust.io/api/gemini/v1/digital-twin/ownership/:did");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"removeKey\": \"string\",\n \"newOwner\": \"string\",\n \"addKey\": {\n \"kid\": \"043b1de7d53ebe9d97015514f44610702d889528fa0f00ffab8893c89426129462a4266843f80b98fdc76077c066d89fae807a8d314e4c3947976fd64f726ee6da\",\n \"kms\": \"local\",\n \"type\": \"Secp256k1\",\n \"publicKeyHex\": \"043b1de7d53ebe9d97015514f44610702d889528fa0f00ffab8893c89426129462a4266843f80b98fdc76077c066d89fae807a8d314e4c3947976fd64f726ee6da\",\n \"meta\": {\n \"algorithms\": [\n \"ES256K\",\n \"ES256K-R\",\n \"eth_signTransaction\",\n \"eth_signTypedData\",\n \"eth_signMessage\",\n \"eth_rawSign\"\n ]\n }\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.mtrust.io
Parameters
— pathrequired
Body required
{
"removeKey": "string",
"newOwner": "string",
"addKey": {
"kid": "043b1de7d53ebe9d97015514f44610702d889528fa0f00ffab8893c89426129462a4266843f80b98fdc76077c066d89fae807a8d314e4c3947976fd64f726ee6da",
"kms": "local",
"type": "Secp256k1",
"publicKeyHex": "043b1de7d53ebe9d97015514f44610702d889528fa0f00ffab8893c89426129462a4266843f80b98fdc76077c066d89fae807a8d314e4c3947976fd64f726ee6da",
"meta": {
"algorithms": [
"ES256K",
"ES256K-R",
"eth_signTransaction",
"eth_signTypedData",
"eth_signMessage",
"eth_rawSign"
]
}
}
}
ResponseClear

Click the Send API Request button above and see the response here!