Creates new entity for editing

POST
api/databases/{dbid}/entities/{entity}/edit
This request is used for creating a new entity and further setting its properties' values. The new entity can not be seen by other users until it is saved.

Request:

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

Content

Name Type Options Description
Properties Array of name: value  List of properties of an object

Response:

Content

Name Type Options Description
Id GUID  ID of object
Url String  Url of object

Create new task in edit mode

Request:
  1. POST api/databases/ec5a34c2-7062-4be7-ade9-c15acefcdbb8/entities/Task/edit
  2. Accept: text/json
  3. Accept-Encoding: deflate
  4. Host: localhost:6496
  5. Cookie: sid=ebc5de07-e167-43a7-8191-2450f48ec2d1
Response:
  1. Transfer-Encoding: chunked
  2. Content-Encoding:
  3. Cache-Control: no-store
  4. Content-Type: text/json; charset=utf-8
  5. Date: Fri, 21 Dec 2012 09:37:55 GMT
  6. ETag: "634916866756485264"
  7. Last-Modified: Fri, 21 Dec 2012 09:37:55 GMT
  8. Location: http://localhost:6496/api/databases/ec5a34c2-7062-4be7-ade9-c15acefcdbb8/entities/Task/d477e7c8-4d62-4051-8fea-03252d481370/edit
  9. Server: Microsoft-HTTPAPI/2.0
  10.  
  11. {
  12. "Id": "d477e7c8-4d62-4051-8fea-03252d481370",
  13. "Url": "api/databases/ec5a34c2-7062-4be7-ade9-c15acefcdbb8/entities/Task/d477e7c8-4d62-4051-8fea-03252d481370/edit"
  14. }

Edit the copy of the original new task

Request:
  1. PUT api/databases/ec5a34c2-7062-4be7-ade9-c15acefcdbb8/entities/Task/d477e7c8-4d62-4051-8fea-03252d481370/edit
  2. Accept: text/json
  3. Accept-Encoding: deflate
  4. Content-Type: text/json
  5. Host: localhost:6496
  6. Cookie: sid=ebc5de07-e167-43a7-8191-2450f48ec2d1
  7. Content-Length: 62
  8. Expect: 100-continue
  9.  
  10. {
  11. "Properties":
  12. {
  13. "Name": "Name of the new task"
  14. }
  15. }
Response:
  1. Cache-Control: no-store
  2. Date: Fri, 21 Dec 2012 09:38:13 GMT
  3. ETag: "634916866938795264"
  4. Server: Microsoft-HTTPAPI/2.0

Save all changes

Request:
  1. POST api/databases/ec5a34c2-7062-4be7-ade9-c15acefcdbb8/entities/Task/d477e7c8-4d62-4051-8fea-03252d481370/edit/save
  2. Accept: text/json
  3. Accept-Encoding: deflate
  4. Host: localhost:6496
  5. Cookie: sid=dc07f9d9-6ea5-44cc-bfe9-b951347786e8
Response:
  1. Cache-Control: no-store
  2. Date: Fri, 21 Dec 2012 14:16:04 GMT
  3. Server: Microsoft-HTTPAPI/2.0