Updates and saves the given entity

PUT
api/databases/{dbid}/entities/{entity}/{id}
This request is used to update the given entity and save the changes. It opens the given entity for editing, changes values of required properties and saves the entity.

For example, you can use this request to change the value of entity property 'State'.

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

Content

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

Response:

Request:
  1. PUT api/databases/ec5a34c2-7062-4be7-ade9-c15acefcdbb8/entities/Task/7ce10c00-ea30-4ab4-ab57-87bec4fb558f
  2. Accept: text/json
  3. Accept-Encoding: deflate
  4. Content-Type: text/json
  5. Host: localhost:6496
  6. Cookie: sid=c424b715-d9fb-4f37-a6eb-8a1932bec70a
  7. Content-Length: 55
  8. Expect: 100-continue
  9.  
  10. {
  11. "Properties":
  12. {
  13. "Name": "New task name"
  14. }
  15. }
Response:
  1. Cache-Control: no-store
  2. Date: Fri, 21 Dec 2012 14:31:09 GMT
  3. ETag: "3"
  4. Server: Microsoft-HTTPAPI/2.0