Home

 

Activities field element

Lists the field element types that can appear in an Atom entry document produced by or sent to the API.

A single Activity entry can contain one or more fields of each type. The <snx:field> element that defines a field in an Activity entry is in the http://www.ibm.com/xmlns/prod/sn namespace.


snx:field attributes

Attribute How treated on input Description
fid Required when updating, not posting. Unique identifier of the field. This identifier is assigned by Activities. You do not need to provide a value for this attribute if you are creating a field, but specify a value for this field if you are updating, replacing, or deleting a field.
hidden Optional If present, specifies that the field is hidden.
name Required Field name.
position Required Position of the field in the containing Activity entry's array of fields. Use numbers separated by large increments to allow for repositioning. For example, use 1000, 2000, 3000, and so on.
type Required Defines the field type. The following values are supported:

  • date

  • file

  • link

  • person

  • text

 

Example

: The following sample is the content of a standard entry that contains fields of different types.

If you access this same version 2.0 entry from a version 1.0.x feed, the field information is included in the <content> element. For example:

For more information about each type of field element, see the field type topics that follow.


Activities API


+

Search Tips   |   Advanced Search