Update rules execution order

put/ruleSets/{ruleSetId}/order

Returns the execution order for rules within the rule set based on the provided body.

Request Samples

1

Response Samples

1{
2 "version": 1,
3 "type": "id",
4 "template": "/businessRules/ruleSets/1525f975-eb00-4602-bf73-f9d1f020a178/rules/{id}",
5 "resources": [
6 "da5a5617-ebc8-4864-a18d-fd6c29acc5be",
7 "8d72248c-3e73-4ff7-af18-9015ada4ab8e"
8 ]
9}

Path Parameters

NameTypeRequiredDescription
ruleSetId
string
true

The rule set ID.

Header Parameters

NameTypeRequiredDescription
If-Unmodified-Since
string<date-time>
true

The last date and time of the contents retrieved for the rule set on which you are basing your update.

Request Body

Customized ordering for the rules during execution.

Identifies a set of resources.

NameTypeRequiredDescription
version
integer
true

The schema version number of this media type. This representation is version 1.

template
string
false

A URI template in which the {id} parameter can be replaced with a value from the "resources" array in order to yield the URI of the identified resource.

type
string
false

Specifies whether the resources array contains IDs, URIs, or both.

Allowed values:
idurimixed
resources
array [string]
true

An array of resource IDs or URIs

links
array [Link]
false

An array of links to related resources and actions.

Responses

StatusMeaningDescription
200OK

The request succeeded.

HeadersSchema
400Bad Request

The request was invalid.

Schema
404Not Found

No resource exists at the requested path.

Schema
412Precondition Failed

The If-Unmodified-Since request header did not match the resource's last modified timestamp.

Schema
428Precondition Required

The request headers did not include a If-Unmodified-Since precondition.

Schema