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": "RC92582e4cb553457396b7603529ad9c05"
  }
}'

Example Response

200 OK
{
  "data": {
    "id": "RC92582e4cb553457396b7603529ad9c05",
    "type": "rule_components",
    "attributes": {
      "created_at": "2018-07-26T15:06:07.856Z",
      "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-07-26T15:06:08.306Z",
      "settings": "{\"elementSelector\":\".accordion\",\"bubbleFireIfChildFired\":false}"
    },
    "relationships": {
      "updated_with_extension_package": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/rule_components/RC92582e4cb553457396b7603529ad9c05/updated_with_extension_package"
        },
        "data": {
          "type": "extension_packages",
          "id": "EP400d51959fa44efd8596fc81a7de1be6"
        }
      },
      "extension": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/rule_components/RC92582e4cb553457396b7603529ad9c05/extension"
        },
        "data": {
          "type": "extensions",
          "id": "EX7a675fb19891450586e3f286add93d01"
        }
      },
      "origin": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/rule_components/RC92582e4cb553457396b7603529ad9c05/origin"
        },
        "data": {
          "type": "rule_components",
          "id": "RC92582e4cb553457396b7603529ad9c05"
        }
      },
      "rule": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/rule_components/RC92582e4cb553457396b7603529ad9c05/rule"
        },
        "data": {
          "type": "rules",
          "id": "RL2a395357c0bc4deba2adbc8828567c0f"
        }
      }
    },
    "links": {
      "extension": "https://mc-api-activation-reactor-qe.adobe.io/extensions/EX7a675fb19891450586e3f286add93d01",
      "origin": "https://mc-api-activation-reactor-qe.adobe.io/rule_components/RC92582e4cb553457396b7603529ad9c05",
      "rule": "https://mc-api-activation-reactor-qe.adobe.io/rules/RL2a395357c0bc4deba2adbc8828567c0f",
      "self": "https://mc-api-activation-reactor-qe.adobe.io/rule_components/RC92582e4cb553457396b7603529ad9c05"
    },
    "meta": {
      "latest_revision_number": 0
    }
  }
}