Cancels changes made to the given edited entity

POST
api/databases/{dbid}/entities/{entity}/{id}/edit/cancel
This request cancels all the changes made to the copy of the given entity which is being edited and closes edit mode.

Request:

Argument Type Description
dbid GUID  The ID of the database
entity String  The name of the entity
id GUID  The ID of the entity

Response:

Request:
  1. POST api/databases/ec5a34c2-7062-4be7-ade9-c15acefcdbb8/entities/Task/aa58df7b-af54-4eb1-bc08-6681836c4cf8/edit
  2. Accept: text/json
  3. Accept-Encoding: deflate
  4. Content-Type: text/json
  5. Host: localhost:6496
  6. Cookie: sid=96e252b0-3147-4a01-819c-16d434b581fa
  7. Content-Length: 63
  8. Expect: 100-continue
  9.  
  10. {
  11. "Properties":
  12. {
  13. "Name": "New invalid task name"
  14. }
  15. }
Response:
  1. Transfer-Encoding: chunked
  2. Content-Encoding:
  3. Cache-Control: no-store
  4. Content-Type: text/json; charset=utf-8
  5. Date: Wed, 26 Dec 2012 12:12:06 GMT
  6. ETag: "634921279269445897"
  7. Last-Modified: Wed, 26 Dec 2012 12:12:06 GMT
  8. Set-Cookie: sid=96e252b0-3147-4a01-819c-16d434b581fa; path=/;
  9. Server: Microsoft-HTTPAPI/2.0
  10.  
  11. {
  12. "Id": "aa58df7b-af54-4eb1-bc08-6681836c4cf8",
  13. "Url": "api/databases/ec5a34c2-7062-4be7-ade9-c15acefcdbb8/entities/Task/aa58df7b-af54-4eb1-bc08-6681836c4cf8/edit"
  14. }

Request:
  1. PUT api/databases/ec5a34c2-7062-4be7-ade9-c15acefcdbb8/entities/Task/aa58df7b-af54-4eb1-bc08-6681836c4cf8/edit
  2. Accept: text/json
  3. Accept-Encoding: deflate
  4. Content-Type: text/json
  5. Host: localhost:6496
  6. Cookie: sid=96e252b0-3147-4a01-819c-16d434b581fa
  7. Content-Length: 63
  8. Expect: 100-continue
  9.  
  10. {
  11. "Properties":
  12. {
  13. "Name": "Changed task name"
  14. }
  15. }
Response:
  1. Cache-Control: no-store
  2. Date: Mon, 24 Dec 2012 16:32:11 GMT
  3. ETag: "634919706670587030"
  4. Server: Microsoft-HTTPAPI/2.0

Request:
  1. POST api/databases/ec5a34c2-7062-4be7-ade9-c15acefcdbb8/entities/Task/aa58df7b-af54-4eb1-bc08-6681836c4cf8/edit/cancel
  2. Accept: text/json
  3. Accept-Encoding: deflate
  4. Host: localhost:6496
  5. Cookie: sid=96e252b0-3147-4a01-819c-16d434b581fa
Response:
  1. Cache-Control: no-store
  2. Date: Wed, 26 Dec 2012 12:12:17 GMT
  3. Set-Cookie: sid=96e252b0-3147-4a01-819c-16d434b581fa; path=/;
  4. Server: Microsoft-HTTPAPI/2.0