Skip to content

Update action set

Request

PUT /v3/action-sets/{actionSetId}

Update an existing action set

Security
API_Key
Path
actionSetIdinteger, (int64)required

ID of the action set to update

Bodyapplication/jsonrequired
namestring, non-emptyrequired

Name of the action set

actionsArray of objects, non-emptyrequired

List of actions in the action set

PUT
/v3/action-sets/{actionSetId}
curl -i -X PUT \
  'https://api.observepoint.com/v3/action-sets/{actionSetId}' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "actions": [
      {
        "sequence": 0,
        "description": "string",
        "actionType": "click",
        "waitDuration": 0,
        "selectors": [
          {
            "selectorType": "id",
            "value": null
          }
        ],
        "preventNavigation": true,
        "value": "string",
        "maskedValue": "string",
        "js": "string",
        "url": "string",
        "seconds": 0,
        "isRequired": true,
        "actionSetId": 0,
        "pageFilter": "string"
      }
    ]
  }'

Responses

Action set updated successfully

Bodyapplication/json
idinteger, (int64)read-only
namestring, non-emptyrequired

Name of the action set

actionsArray of objects, non-emptyrequired

List of actions in the action set

updatedAtstring, (local-date-time)read-only

Timestamp when the action set was last updated

createdAtstring, (local-date-time)read-only

Timestamp when the action set was created

accountIdintegerread-only

ID of the account the action set belongs to

userIdintegerread-only

ID of the user the action set belongs to

Response
{ "id": 0, "name": "string", "actions": [ {} ], "updatedAt": "string", "createdAt": "string", "accountId": 0, "userId": 0 }