Creates and saves new record of the given entity table

POST
api/databases/{dbid}/entities/{entity}/{id}/{table}
This request is used when only one record should be created in the given entity table. It opens the entity for editing, adds new record with its properties and saves the entity.

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
table String  The name of the entity table

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

Request:
  1. POST api/databases/ec5a34c2-7062-4be7-ade9-c15acefcdbb8/entities/Task/08a11e00-188f-45d0-b767-d8620bedbad2/ScheduleItems
  2. Accept: text/json
  3. Accept-Encoding: deflate
  4. Content-Type: text/json
  5. Host: localhost:6496
  6. Cookie: sid=41f1cc3d-2701-4185-8d3c-8dcd60be24dc
  7. Content-Length: 403
  8. Expect: 100-continue
  9. Connection: Keep-Alive
  10.  
  11. {
  12. "Properties":
  13. {
  14. "users":
  15. {
  16. "Values": ["ae18dea5-4f60-4f70-ae31-d8052984e31e"]
  17. },
  18. "start": "2013.01.01T08:00:00+02:00",
  19. "finish": "2013.01.01T12:00:00+02:00",
  20. "allday": true,
  21. "ReminderForStart":
  22. {
  23. "Offset": "@D1h",
  24. "Users": ["ae18dea5-4f60-4f70-ae31-d8052984e31e"],
  25. "OffsetKind": "before",
  26. "description": "'reminder before start' set via API"
  27. }
  28. }
  29. }
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 13:38:11 GMT
  6. ETag: "634921330912969733"
  7. Last-Modified: Wed, 26 Dec 2012 13:38:11 GMT
  8. Location: http://localhost:6496/api/databases/ec5a34c2-7062-4be7-ade9-c15acefcdbb8/entities/Task/08a11e00-188f-45d0-b767-d8620bedbad2/ScheduleItems/7c7870ab-015a-43ef-b574-cd8f1b3e7a22
  9. Server: Microsoft-HTTPAPI/2.0
  10.  
  11. {
  12. "Id": "7c7870ab-015a-43ef-b574-cd8f1b3e7a22",
  13. "Url": "api/databases/ec5a34c2-7062-4be7-ade9-c15acefcdbb8/entities/Task/08a11e00-188f-45d0-b767-d8620bedbad2/ScheduleItems/7c7870ab-015a-43ef-b574-cd8f1b3e7a22"
  14. }