Skip to content

Patch labels attached to specified web journey

Request

PATCH /v3/web-journeys/{webJourneyId}/labels
Security
API_Key
Path
webJourneyIdinteger, (int64)required

Unique identification number for web journey item

Example:107239
Bodyapplication/json-patch+jsonrequired

Patch Document

Array [
opstring

The operation to be performed

Enum:"add""remove"
pathstring
valueinteger

id of the item to assign

]
PATCH
/v3/web-journeys/{webJourneyId}/labels
curl -i -X PATCH \
  https://api.observepoint.com/v3/web-journeys/107239/labels \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json-patch+json' \
  -d '[
    [
      {
        "op": "add",
        "path": "/-",
        "value": 1
      },
      {
        "op": "remove",
        "path": "/",
        "value": 2
      }
    ]
  ]'

Responses

Successfully patched web journey assigned labels.

Bodyapplication/json
labelsArray of objects
Response
{ "labels": [ {} ] }