Update a demand priority attribute in a demand priority rule
patch
/fscmRestApi/resources/11.13.18.05/scpDemandPriorityRules/{RuleId}/child/scpDemandPriorityAttributes/{AttributeId}
Request
Path Parameters
-
AttributeId(required): integer(int64)
The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
-
RuleId(required): integer(int64)
The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
Header Parameters
-
Metadata-Context: string
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version: string
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
AttributeName: string
Title:
Attribute NameMaximum Length:64Name of a demand priority attribute used in a demand priority rule. -
AttributePriority: integer
(int64)
Title:
Attribute PriorityValue that uniquely identifies the priority of the attribute in a demand priority rule. -
AttributeRank: integer
(int64)
Title:
Attribute RankValue that helps the user rank demand priority attributes. -
Message: string
Title:
MessageMaximum Length:255Message that indicates if the attribute was successfully created or not in a demand priority rule. -
scpDemandPriorityAttributeDetails: array
Demand Priority Attribute Details
Title:
Demand Priority Attribute DetailsDetails of an attribute used in a demand priority rule to prioritize demand. For example, the attribute Requested Item could have values Item 1, Item 2, and Item 3, which could be used in a sequence. -
SortOrder: string
Title:
Sort OrderMaximum Length:255Indicates the sequence of values for an attribute that's used to prioritize demands in a demand priority rule. -
SortOrderList: string
Title:
Sort Order ListMaximum Length:4000Comma-separated values appearing in a sequence for the selected attributes in a demand priority rule.
Nested Schema : Demand Priority Attribute Details
Type:
arrayTitle:
Demand Priority Attribute DetailsDetails of an attribute used in a demand priority rule to prioritize demand. For example, the attribute Requested Item could have values Item 1, Item 2, and Item 3, which could be used in a sequence.
Show Source
Nested Schema : scpDemandPriorityRules-scpDemandPriorityAttributes-scpDemandPriorityAttributeDetails-item-patch-request
Type:
Show Source
object-
AttributeId: integer
(int64)
Title:
Attribute IdentifierUnique identifier of a demand priority attribute value used in a rule. -
AttributeSequenceId: integer
(int64)
Title:
Attribute Sequence IdentifierValue that uniquely identifies the sequence of the selected attribute values in a demand priority rule. -
AttributeValue: string
Title:
Attribute ValueMaximum Length:255Value of the selected attribute used in a demand priority rule. -
AttributeValueId: string
Title:
Attribute Value IdentifierMaximum Length:100Value that uniquely identifies the selected attribute's value based on the value identifier in a demand priority rule.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : scpDemandPriorityRules-scpDemandPriorityAttributes-item-response
Type:
Show Source
object-
AttributeId: integer
(int64)
Title:
Attribute IdentifierUnique identifier of a demand priority attribute used in a demand priority rule. -
AttributeName: string
Title:
Attribute NameMaximum Length:64Name of a demand priority attribute used in a demand priority rule. -
AttributePriority: integer
(int64)
Title:
Attribute PriorityValue that uniquely identifies the priority of the attribute in a demand priority rule. -
AttributeRank: integer
(int64)
Title:
Attribute RankValue that helps the user rank demand priority attributes. -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64Name of the user who initially created the attribute in a demand priority rule. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueDate when the user created the attribute in a demand priority rule. -
LastUpdateDate: string
(date-time)
Title:
Last Update DateRead Only:trueDate when the user most recently updated an attribute in a demand priority rule. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64User who most recently updated an attribute in a demand priority rule. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
Message: string
Title:
MessageMaximum Length:255Message that indicates if the attribute was successfully created or not in a demand priority rule. -
RuleId: integer
(int64)
Title:
Rule IdentifierUnique identifier of a demand priority rule in which the demand priority attribute is used. -
scpDemandPriorityAttributeDetails: array
Demand Priority Attribute Details
Title:
Demand Priority Attribute DetailsDetails of an attribute used in a demand priority rule to prioritize demand. For example, the attribute Requested Item could have values Item 1, Item 2, and Item 3, which could be used in a sequence. -
SortOrder: string
Title:
Sort OrderMaximum Length:255Indicates the sequence of values for an attribute that's used to prioritize demands in a demand priority rule. -
SortOrderList: string
Title:
Sort Order ListMaximum Length:4000Comma-separated values appearing in a sequence for the selected attributes in a demand priority rule.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : Demand Priority Attribute Details
Type:
arrayTitle:
Demand Priority Attribute DetailsDetails of an attribute used in a demand priority rule to prioritize demand. For example, the attribute Requested Item could have values Item 1, Item 2, and Item 3, which could be used in a sequence.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Nested Schema : scpDemandPriorityRules-scpDemandPriorityAttributes-scpDemandPriorityAttributeDetails-item-response
Type:
Show Source
object-
AttributeId: integer
(int64)
Title:
Attribute IdentifierUnique identifier of a demand priority attribute value used in a rule. -
AttributeSequenceId: integer
(int64)
Title:
Attribute Sequence IdentifierValue that uniquely identifies the sequence of the selected attribute values in a demand priority rule. -
AttributeValue: string
Title:
Attribute ValueMaximum Length:255Value of the selected attribute used in a demand priority rule. -
AttributeValueId: string
Title:
Attribute Value IdentifierMaximum Length:100Value that uniquely identifies the selected attribute's value based on the value identifier in a demand priority rule. -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64Name of the user who initially created the attribute details for a demand priority attribute in a rule. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueDate when the user created the attribute details for an attribute in a demand priority rule. -
LastUpdateDate: string
(date-time)
Title:
Last Update DateRead Only:trueDate when the user most recently updated the attribute details for an attribute in a demand priority rule. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64User who most recently updated the attribute details for an attribute in a demand priority rule. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- scpDemandPriorityAttributeDetails
-
Parameters:
- AttributeId:
$request.path.AttributeId - RuleId:
$request.path.RuleId
Details of an attribute used in a demand priority rule to prioritize demand. For example, the attribute Requested Item could have values Item 1, Item 2, and Item 3, which could be used in a sequence. - AttributeId:
Examples
This example describes how to update a demand priority attribute in a demand priority rule.
Example cURL Command
Use the following cURL command to submit a request on the REST resource.
curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/scpDemandPriorityRules/RuleId/child/scpDemandPriorityAttributes/AttributeId"
For
example:
curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/scpDemandPriorityRules/300100613239506/child/scpDemandPriorityAttributes/300100667389219"
Example Request Body
The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it updates.
{
"SortOrderList":"RBPS-GREENROLLOS555"
}
Example Response Body
The following example includes the contents of the response
body in JSON format:
{
"AttributeId": 300100667389219,
"AttributeName": "Requested Item",
"AttributePriority": null,
"AttributeRank": 5,
"CreatedBy": "APS_ALL",
"CreationDate": "2024-06-06T07:32:39+00:00",
"RuleId": 300100666134541,
"SortOrder": "",
"SortOrderList": "26426860",
"Message": null,
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/scpDemandPriorityRules/300100666134541/child/scpDemandPriorityAttributes/300100667389219",
"name": "scpDemandPriorityAttributes",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/scpDemandPriorityRules/300100666134541/child/scpDemandPriorityAttributes/300100667389219",
"name": "scpDemandPriorityAttributes",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/scpDemandPriorityRules/300100666134541",
"name": "scpDemandPriorityRules",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/scpDemandPriorityRules/300100666134541/child/scpDemandPriorityAttributes/300100667389219/child/scpDemandPriorityAttributeDetails",
"name": "scpDemandPriorityAttributeDetails",
"kind": "collection"
}
]
}