Restore instance.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/entity/example/instances/example/restore"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"OperationKey\": \"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0\", \"EntityDefinitionKey\": \"example\", \"EntityInstanceId\": \"example\", \"RowVersion\": \"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0\", \"Reason\": \"example\" }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/entity/example/instances/example/restore';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"OperationKey":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","EntityDefinitionKey":"example","EntityInstanceId":"example","RowVersion":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","Reason":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/workspace/entity/example/instances/example/restore \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "OperationKey": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "EntityDefinitionKey": "example", "EntityInstanceId": "example", "RowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "Reason": "example" }'Restores one archived entity instance and cascades the archive-state reset to child-table rows.
The trimmed Reason is stored in the same transaction as lifecycle audit evidence. Record change
history returns it as Lifecycle.Reason; when field history is disabled, the evidence is still
stored and workspace Owner or Admin can read it through the workspace audit log.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Entity definition identifier or normalized entity key.
Entity instance identifier.
Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Bodyrequired
Section titled “Request Bodyrequired”Expected runtime row version for optimistic concurrency.
Identifies one concurrency-protected Entity lifecycle command.
object
Caller-generated UUID reused only for an exact retry of the same logical operation.
Entity definition identifier or normalized key; it must match the route.
Target Entity record identifier; it must match the route.
Current target row version expected by the caller.
Required audit reason for archive, restore, and permanent delete. Must contain 1–1000 characters after trimming leading and trailing whitespace.
Examplegenerated
{ "OperationKey": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "EntityDefinitionKey": "example", "EntityInstanceId": "example", "RowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "Reason": "example"}Identifies one concurrency-protected Entity lifecycle command.
object
Caller-generated UUID reused only for an exact retry of the same logical operation.
Entity definition identifier or normalized key; it must match the route.
Target Entity record identifier; it must match the route.
Current target row version expected by the caller.
Required audit reason for archive, restore, and permanent delete. Must contain 1–1000 characters after trimming leading and trailing whitespace.
Examplegenerated
{ "OperationKey": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "EntityDefinitionKey": "example", "EntityInstanceId": "example", "RowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "Reason": "example"}Identifies one concurrency-protected Entity lifecycle command.
object
Caller-generated UUID reused only for an exact retry of the same logical operation.
Entity definition identifier or normalized key; it must match the route.
Target Entity record identifier; it must match the route.
Current target row version expected by the caller.
Required audit reason for archive, restore, and permanent delete. Must contain 1–1000 characters after trimming leading and trailing whitespace.
Examplegenerated
{ "OperationKey": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "EntityDefinitionKey": "example", "EntityInstanceId": "example", "RowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "Reason": "example"}Responses
Section titled “Responses”OK
object
Authorized post-mutation Entity detail.
object
object
object
Whether the host returned an earlier durable result without another write.
Receipt of a committed Entity record mutation whose post-state the caller cannot read now.
object
Operation key of the committed operation.
Completion instant of the committed operation. A receipt built when a replay can no longer show its stored result carries the instant the replayed command committed.
Audit correlation of the committed operation. A receipt built when a replay can no longer show its stored result carries the correlation of the replaying call instead.
Whether this answer repeats an earlier committed operation without another write.
Entity record identity carried by a receipt: only values the caller already knew.
object
Entity definition identifier.
Entity record identifier.
Responsibility key a bulk assignment or removal item sent; left out for record mutations.
object
object
object
object
Example
{ "Data": { "Kind": "AuthorizedEntityDetail" }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Authorized post-mutation Entity detail.
object
object
object
Whether the host returned an earlier durable result without another write.
Receipt of a committed Entity record mutation whose post-state the caller cannot read now.
object
Operation key of the committed operation.
Completion instant of the committed operation. A receipt built when a replay can no longer show its stored result carries the instant the replayed command committed.
Audit correlation of the committed operation. A receipt built when a replay can no longer show its stored result carries the correlation of the replaying call instead.
Whether this answer repeats an earlier committed operation without another write.
Entity record identity carried by a receipt: only values the caller already knew.
object
Entity definition identifier.
Entity record identifier.
Responsibility key a bulk assignment or removal item sent; left out for record mutations.
object
object
object
object
Example
{ "Data": { "Kind": "AuthorizedEntityDetail" }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Authorized post-mutation Entity detail.
object
object
object
Whether the host returned an earlier durable result without another write.
Receipt of a committed Entity record mutation whose post-state the caller cannot read now.
object
Operation key of the committed operation.
Completion instant of the committed operation. A receipt built when a replay can no longer show its stored result carries the instant the replayed command committed.
Audit correlation of the committed operation. A receipt built when a replay can no longer show its stored result carries the correlation of the replaying call instead.
Whether this answer repeats an earlier committed operation without another write.
Entity record identity carried by a receipt: only values the caller already knew.
object
Entity definition identifier.
Entity record identifier.
Responsibility key a bulk assignment or removal item sent; left out for record mutations.
object
object
object
object
Example
{ "Data": { "Kind": "AuthorizedEntityDetail" }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Not Found
object
Authorized post-mutation Entity detail.
object
object
object
Whether the host returned an earlier durable result without another write.
Receipt of a committed Entity record mutation whose post-state the caller cannot read now.
object
Operation key of the committed operation.
Completion instant of the committed operation. A receipt built when a replay can no longer show its stored result carries the instant the replayed command committed.
Audit correlation of the committed operation. A receipt built when a replay can no longer show its stored result carries the correlation of the replaying call instead.
Whether this answer repeats an earlier committed operation without another write.
Entity record identity carried by a receipt: only values the caller already knew.
object
Entity definition identifier.
Entity record identifier.
Responsibility key a bulk assignment or removal item sent; left out for record mutations.
object
object
object
object
Example
{ "Data": { "Kind": "AuthorizedEntityDetail" }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
Authorized post-mutation Entity detail.
object
object
object
Whether the host returned an earlier durable result without another write.
Receipt of a committed Entity record mutation whose post-state the caller cannot read now.
object
Operation key of the committed operation.
Completion instant of the committed operation. A receipt built when a replay can no longer show its stored result carries the instant the replayed command committed.
Audit correlation of the committed operation. A receipt built when a replay can no longer show its stored result carries the correlation of the replaying call instead.
Whether this answer repeats an earlier committed operation without another write.
Entity record identity carried by a receipt: only values the caller already knew.
object
Entity definition identifier.
Entity record identifier.
Responsibility key a bulk assignment or removal item sent; left out for record mutations.
object
object
object
object
Example
{ "Data": { "Kind": "AuthorizedEntityDetail" }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Service Unavailable
object
Authorized post-mutation Entity detail.
object
object
object
Whether the host returned an earlier durable result without another write.
Receipt of a committed Entity record mutation whose post-state the caller cannot read now.
object
Operation key of the committed operation.
Completion instant of the committed operation. A receipt built when a replay can no longer show its stored result carries the instant the replayed command committed.
Audit correlation of the committed operation. A receipt built when a replay can no longer show its stored result carries the correlation of the replaying call instead.
Whether this answer repeats an earlier committed operation without another write.
Entity record identity carried by a receipt: only values the caller already knew.
object
Entity definition identifier.
Entity record identifier.
Responsibility key a bulk assignment or removal item sent; left out for record mutations.
object
object
object
object
Example
{ "Data": { "Kind": "AuthorizedEntityDetail" }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}