View
 

Update

Page history last edited by Monica Wilkinson 14 years, 7 months ago

Description

The verb update should be used to describe that a property on a resource has changed. For example: Monica updated her street address to 234 Amazing St.

To be useful in data synchronization, an update activity should describe the name of the property which has changed and provide the new value inside the object construct.

When new items are added to an existing list the verb to use is post and a target is expected to denote the destination.

Spec section: http://activitystrea.ms/head/activity-schema.html#update

Properties

  • "change" should be added as a property to the activity construct. Change is an object which has 2 proprties:

URI

http://activitystrea.ms/schema/1.0/update 

Examples

{
"change" : 
  {"name" : "street address"},
  {"value" : "234 Amazing St"
}

OR

{
"change" : 
  {"name" : "street address"},
  {"value" : {"$ref": #object.streetAddress}
}

Notes

Other verbs to use for data synchronization are: post and delete

Implementations

Facebook is researching using the update verb to send real-time notifications of changes to profile data.

Others ?

Maintainers

Monica Wilkinson

Comments (0)

You don't have permission to comment on this page.