Update Favorites List


This request changes the user favorites list, you can add or remove items from the favorites list.

Resource

PATCH /me/favorites

Parameters

None

Payload

Fields

name Patch Operations

x1ListItems

add, remove

x1ListItems.orderNumber

replace

Response

None

Context

Authorization

User

Errors

Example

Request
PATCH https://xelion.nl/api/v1/master/me/favorites
Payload

add an item to the favorites list, value is the Referable oid

{
  "operations": [
      {
      "op": "add",
      "path": "/x1ListItems/1"
      "value": "1651479"
      },
      {
      "op": "replace",
      "path": "/x1ListItems/1/orderNumber"
      "value": 2
      }
    ]
}

remove an item from the favorites list, value is the X1ListItem oid

{
    "operations": [
            {
            "op": "remove",
            "path": "/x1ListItems/234562"
            }
    ]
}