|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"> |
| 3 | +<topic id="closeMemory"> |
| 4 | + <title>Close Memory</title> |
| 5 | + <body> |
| 6 | + <p>End point: <tt>[RemoteTM URL]/memories</tt><tt> </tt></p> |
| 7 | + <p>Send a <tt>POST</tt> request with these headers:</p> |
| 8 | + <simpletable> |
| 9 | + <sthead> |
| 10 | + <stentry>Header</stentry> |
| 11 | + <stentry>Value</stentry> |
| 12 | + </sthead> |
| 13 | + <strow> |
| 14 | + <stentry><tt>Session</tt> </stentry> |
| 15 | + <stentry>The ticket received from <xref href="authorizationRequest.dita" |
| 16 | + >Authorization Request</xref></stentry> |
| 17 | + </strow> |
| 18 | + <strow> |
| 19 | + <stentry><tt>Content-Type</tt></stentry> |
| 20 | + <stentry><tt>application/json</tt></stentry> |
| 21 | + </strow> |
| 22 | + </simpletable> |
| 23 | + <p>Include these parameters in a JSON body:</p> |
| 24 | + <simpletable> |
| 25 | + <sthead> |
| 26 | + <stentry>Parameter</stentry> |
| 27 | + <stentry>Value</stentry> |
| 28 | + </sthead> |
| 29 | + <strow> |
| 30 | + <stentry><tt>command</tt></stentry> |
| 31 | + <stentry><tt>closeMemory</tt></stentry> |
| 32 | + </strow> |
| 33 | + <strow> |
| 34 | + <stentry><tt>memory</tt> </stentry> |
| 35 | + <stentry>ID of the memory to close</stentry> |
| 36 | + </strow> |
| 37 | + </simpletable> |
| 38 | + <p>Example:</p> |
| 39 | + <codeblock>{ |
| 40 | + "command": "closeMemory", |
| 41 | + "memory": "1617963861912" |
| 42 | +}</codeblock> |
| 43 | + <p>RemoteTM responds with a JSON object.</p> |
| 44 | + <p>On success, field 'status' is set to 'OK'. Example:</p> |
| 45 | + <codeblock translate="no">{ |
| 46 | + "status": "OK" |
| 47 | +}</codeblock> |
| 48 | + <p>On error, field 'status' is set to 'Error' and field 'reason' contains the error cause. |
| 49 | + Example:</p> |
| 50 | + <codeblock translate="no">{ |
| 51 | + "status": "Error", |
| 52 | + "reason": "Access denied" |
| 53 | +}</codeblock> |
| 54 | + </body> |
| 55 | +</topic> |
0 commit comments