WARNING

WARNING: These APIs are currently in an 'alpha' state and are likely to change over time. We recommend you not use them in a production setting at this time!


Update a RuleComponent

Attributes

delegate_descriptor_id
string - optional
Identifier for Delegate Descriptor
name
string - optional
Name of the rule component
negate
boolean - optional
order
number - optional
Order to load the component by type
rule_order
number - optional
Priority for the associated rule to fire
settings
string - optional
Settings json object represented as a string

Definition

PATCH  /rule_components/:id

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/rule_components/:id \
  -H "Accept: application/vnd.api+json;revision=1" \
  -H "Content-Type: application/vnd.api+json" \
  -H "Authorization: Bearer [TOKEN]" \
  -H "X-Api-Key: [KEY]" \
  -X PATCH \
  -d \
'
{
  "data": {
    "attributes": {
      "order": 1,
      "settings": "{\"elementSelector\":\".accordion\",\"bubbleFireIfChildFired\":false}"
    },
    "type": "rule_components",
    "id": "RC304c3fdcaf064873a4aa5c6ab195b768"
  }
}'

Example Response

200 OK
{
  "data": {
    "id": "RC304c3fdcaf064873a4aa5c6ab195b768",
    "type": "rule_components",
    "attributes": {
      "created_at": "2018-06-15T19:10:28.147Z",
      "delegate_descriptor_id": "EPc9ce7e7145a3406f9d9d73a16c925ca2::events::click",
      "dirty": true,
      "name": "My Example Click Event",
      "negate": false,
      "order": 1,
      "rule_order": 50.0,
      "published": false,
      "published_at": null,
      "revision_number": 0,
      "updated_at": "2018-06-15T19:10:28.394Z",
      "settings": "{\"elementSelector\":\".accordion\",\"bubbleFireIfChildFired\":false}"
    },
    "relationships": {
      "rule": {
        "links": {
          "related": "http://localhost:9010/rule_components/RC304c3fdcaf064873a4aa5c6ab195b768/rule"
        },
        "data": {
          "type": "rules",
          "id": "RL076cd4bbbe00445d8b5e882621ad28e7"
        }
      },
      "origin": {
        "links": {
          "related": "http://localhost:9010/rule_components/RC304c3fdcaf064873a4aa5c6ab195b768/origin"
        },
        "data": {
          "type": "rule_components",
          "id": "RC304c3fdcaf064873a4aa5c6ab195b768"
        }
      },
      "extension": {
        "links": {
          "related": "http://localhost:9010/rule_components/RC304c3fdcaf064873a4aa5c6ab195b768/extension"
        },
        "data": {
          "type": "extensions",
          "id": "EX4148317395f54e5d82295fabf00314b6"
        }
      }
    },
    "links": {
      "extension": "http://localhost:9010/extensions/EX4148317395f54e5d82295fabf00314b6",
      "origin": "http://localhost:9010/rule_components/RC304c3fdcaf064873a4aa5c6ab195b768",
      "rule": "http://localhost:9010/rules/RL076cd4bbbe00445d8b5e882621ad28e7",
      "self": "http://localhost:9010/rule_components/RC304c3fdcaf064873a4aa5c6ab195b768"
    },
    "meta": {
      "latest_revision_number": 0
    }
  }
}