Rename Memory

End Point: [TMEngine URL]/rename
Default: http://localhost:8000/TMServer/rename
Send a 'POST' request to the method end point with these parameters in a JSON body:
Field Required Content
id Yes
ID of the memory to rename
name Yes New name for the memory
Note
Only memories of type 'MapDbEngine' can be renamed.
Example:
{
  "id": "1568163112478",
  "name": "Updated Memory Name"
}
The server responds with a JSON object containing two fields.
On success, field 'status' is set to 'OK'.
Example:
{
  "status": "OK"       
}
On error, field 'status' is set to 'failed' and field 'reason' contains the error cause.
Example:
{
  "status": "failed",            
  "reason": "Wrong memory type"        
}