Update rules execution order

put/ruleSets/{ruleSetId}/order
Internal-Use Only

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 "links": [
10 {
11 "method": "GET",
12 "rel": "up",
13 "href": "/businessRules/ruleSets/1525f975-eb00-4602-bf73-f9d1f020a178",
14 "uri": "/businessRules/ruleSets/1525f975-eb00-4602-bf73-f9d1f020a178",
15 "type": "application/vnd.sas.business.rule.set"
16 },
17 {
18 "method": "GET",
19 "rel": "self",
20 "href": "/businessRules/ruleSets/1525f975-eb00-4602-bf73-f9d1f020a178/order",
21 "uri": "/businessRules/ruleSets/1525f975-eb00-4602-bf73-f9d1f020a178/order",
22 "type": "application/vnd.sas.selection"
23 }
24 ]
25}

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
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.Schema
404Not FoundNo resource exists at the requested path.Schema
412Precondition FailedThe `If-Unmodified-Since` request header did not match the resource's last modified timestamp.Schema
428Precondition RequiredThe request headers did not include a `If-Unmodified-Since` precondition.Schema