Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
titleRepresentation

The format of the representation to post to the URL may be XML or JSON.

Here is the basic structure in JSON:

Code Block
{
  "name": "",
  "value": "",
  "controls": "",
  "position": ""
}

Only the following position values are allowed:

PositionSinceDescription
replace-or-add1.0Replaces an existing property or - if it does not exist - add it (default).
replace 1.0Replaces an existing property.
merge1.0

Merges the information into an existing property.

Property value and property controls of the existing property are only overridden if the new value is not empty.

merge-values3.1

Merges the information into an existing property.

Looking at the property as a list of values the service integrates the given values into the existing list.

Duplicates are not added.

delete-values3.1

Merges the information into an existing property.

Looking at the property as a list of values the service removes all values provided in the given list.

replace-values46.0

Merges the information into an existing property.

Removes all values and replaces them with the new ones.

In contrast to replace this position will keep the structure of the value untouched. So the values are replaced inside a macro. The macro is not replaced by the values.

For the list postion values (position ends with -values) values the following macros are supported:

  1. Name List Macro (Names parameter)
  2. Tag List Macro (Names parameter)
  3. Name Body List Macro (body)
  4. Tag Body List Macro (body)
  5. Parent Property Macro (Parent Doctype parameter)

Caution Box

If you use replace and you do not specify a value for controls, the property controls will be overridden with blank.

Typically you would use merge to only set the value.

...