PUT /events/{eventType}/rules/drafts/{id}
Updates a draft ruleset for a specified event type.
Servers
- https://api-sandbox.rebilly.com/organizations/{organizationId}
- https://api.rebilly.com/organizations/{organizationId}
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
id |
String | No |
ID of the draft rule set. |
_links[] |
Array | No |
Related links. |
_links[].href |
String | No |
Link URL. |
_links[].rel |
String | No |
Type of link. Valid values:
|
rules[] |
Array | Yes |
Rule can be configured to stop subsequent rules in the event list from being executed. A rule is a configuration of an event and one or more actions. |
name |
String | Yes |
Name of the draft. |
description |
String | No |
Detailed description of the drafted ruleset. |
updatedTime |
String | No |
Date and time when the resource is updated. This value is set automatically when the resource is updated. |
createdTime |
String | No |
Date and time when the resource is created. This value is set automatically when the resource is created. |
binds[] |
Array | No |
Binds always execute, regardless of rule based events. A rule is a configuration of an event and one or more actions. |
binds[].id |
String | No |
ID of the rule. |
binds[].actions[] |
Array | Yes |
Actions that execute when an event occurs. |
binds[].actions[].name |
String | Yes |
Name of the action. Valid values:
|
binds[].actions[].status |
String | No |
Status of the action. Valid values:
Default value: "active" |
binds[].name |
String | Yes |
Name of the rule. |
binds[].labels[] |
Array | No |
Labels of the rule. |
binds[].filter |
String | No |
Criteria for filtering collection items.
This field requires a special format.
Use For more information, see Search filters. |
binds[].status |
String | No |
Status of the rule. Valid values:
Default value: "active" |
author |
Object | No |
Author of the draft. |
author.id |
String | No |
ID of the author. |
author.name |
String | No |
First and last name of the author. |
baseVersion |
Integer | Yes |
Ruleset version on which the draft ruleset is based.
Generally, a draft ruleset is cloned from an existing ruleset.
Use this field to determine if the active ruleset changed since the draft creation.
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.