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
extension_id
string - optional
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": "RC6d260dc5f16c4d8ea46812cd078adafc"
  }
}'

Example Response

200 OK
{
  "data": {
    "id": "RC6d260dc5f16c4d8ea46812cd078adafc",
    "type": "rule_components",
    "attributes": {
      "created_at": "2018-08-31T16:52:13.183Z",
      "delegate_descriptor_id": "kessel-test::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-08-31T16:52:13.400Z",
      "settings": "{\"elementSelector\":\".accordion\",\"bubbleFireIfChildFired\":false}"
    },
    "relationships": {
      "updated_with_extension_package": {
        "links": {
          "related": "http://localhost:9010/rule_components/RC6d260dc5f16c4d8ea46812cd078adafc/updated_with_extension_package"
        },
        "data": {
          "id": "EP27e9323eb585411fae6086fc78a3b70b",
          "type": "extension_packages"
        }
      },
      "extension": {
        "links": {
          "related": "http://localhost:9010/rule_components/RC6d260dc5f16c4d8ea46812cd078adafc/extension"
        },
        "data": {
          "id": "EXa650b0c5182144ae983dbecc4a571140",
          "type": "extensions"
        }
      },
      "origin": {
        "links": {
          "related": "http://localhost:9010/rule_components/RC6d260dc5f16c4d8ea46812cd078adafc/origin"
        },
        "data": {
          "id": "RC6d260dc5f16c4d8ea46812cd078adafc",
          "type": "rule_components"
        }
      },
      "rule": {
        "links": {
          "related": "http://localhost:9010/rule_components/RC6d260dc5f16c4d8ea46812cd078adafc/rule"
        },
        "data": {
          "id": "RLbc6db8fd16ff48d6a2a5ff83f5cd233d",
          "type": "rules"
        }
      }
    },
    "links": {
      "extension": "http://localhost:9010/extensions/EXa650b0c5182144ae983dbecc4a571140",
      "origin": "http://localhost:9010/rule_components/RC6d260dc5f16c4d8ea46812cd078adafc",
      "rule": "http://localhost:9010/rules/RLbc6db8fd16ff48d6a2a5ff83f5cd233d",
      "self": "http://localhost:9010/rule_components/RC6d260dc5f16c4d8ea46812cd078adafc"
    },
    "meta": {
      "latest_revision_number": 0
    }
  }
}