Update one document style
patch
/fscmRestApi/resources/11.13.18.05/purchasingDocumentStyles/{purchasingDocumentStylesUniqID}
Request
Path Parameters
-
purchasingDocumentStylesUniqID(required): string
This is the hash key of the attributes which make up the composite key for the Purchasing Document Styles resource and used to uniquely identify an instance of Purchasing Document Styles. The client should not generate the hash key value. Instead, the client should query on the Purchasing Document Styles collection resource in order to navigate to a specific instance of Purchasing Document Styles to get the hash key.
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-
AmountPurchaseBasisEnabledFlag: boolean
Maximum Length:
1Contains one of the following values: true or false. If true, the amount purchase basis is enabled for this document style. If false, it isn't enabled. -
BlanketDocumentStyleTypeDisplayName: string
Maximum Length:
240Display name of the blanket purchase agreement. -
BlanketDocumentStyleTypeEnabledFlag: boolean
Maximum Length:
1Contains one of the following values: true or false. If true, the blanket purchase agreement is enabled for this document style. If false, it isn't enabled. -
ConfigurationOrderingEnabledFlag: boolean
Title:
Configuration Ordering EnabledMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, configuration ordering is enabled for this document style. If false, it isn't enabled. -
ConsignmentTermsEnabledFlag: boolean
Title:
Consignment Terms EnabledMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, consignment terms are enabled for this document style. If false, they aren't enabled. -
ContractDocumentStyleTypeDisplayName: string
Maximum Length:
240Display name of the contract purchase agreement. -
ContractDocumentStyleTypeEnabledFlag: boolean
Maximum Length:
1Contains one of the following values: true or false. If true, the contract purchase agreement is enabled for this document style. If false, it isn't enabled. -
CreditLineTypesEnabledFlag: boolean
Title:
Credit Line Types EnabledMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, the credit line types are enabled for this document style. If false, they aren't enabled. -
LineTypeAllowed: string
Title:
Line TypesMaximum Length:80Indicates whether the line type covers all or needs to be specified. Valid values: All, Specified. -
LineTypeAllowedCode: string
Maximum Length:
30Abbreviation that identifies the allowed line types. -
lineTypes: array
Line Types
Title:
Line TypesDetails of line types -
OutsideProcessingEnabledFlag: boolean
Title:
Outside Processing EnabledMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, outside processing is enabled for this document style. If false, it isn't enabled. -
PriceBreaksEnabledFlag: boolean
Title:
Price Breaks AllowedMaximum Length:1Contains one of the following values: true or false. If true, price breaks are enabled for this document style. If false, they aren't enabled. -
ProgressPaymentEnabledFlag: boolean
Title:
Progress Payments EnabledMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, progress payments are enabled for this document style. If false, they aren't enabled. -
QuantityPurchaseBasisEnabledFlag: boolean
Maximum Length:
1Contains one of the following values: true or false. If true, the quantity purchase basis is enabled for this document style. If false, it isn't enabled. -
RetainageEnabledFlag: boolean
Title:
Retainage EnabledMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, retainage is enabled for this document style. If false, it isn't enabled. -
StandardDocumentStyleTypeDisplayName: string
Maximum Length:
240Display name of the purchase order. -
Status: string
Title:
StatusMaximum Length:80Status of the purchasing document style. -
StatusCode: string
Maximum Length:
30Abbreviation that identifies the purchasing document style status. -
StyleDescription: string
Title:
DescriptionMaximum Length:240Description of the purchasing document style. -
StyleName: string
Title:
StyleMaximum Length:240Name that uniquely identifies the purchasing document style. -
WorkConfirmationEnabledFlag: boolean
Title:
Work Confirmation EnabledMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, work confirmation is enabled for this document style. If false, it isn't enabled.
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 : purchasingDocumentStyles-item-response
Type:
Show Source
object-
AmountPurchaseBasisEnabledFlag: boolean
Maximum Length:
1Contains one of the following values: true or false. If true, the amount purchase basis is enabled for this document style. If false, it isn't enabled. -
BlanketDocumentStyleTypeDisplayName: string
Maximum Length:
240Display name of the blanket purchase agreement. -
BlanketDocumentStyleTypeEnabledFlag: boolean
Maximum Length:
1Contains one of the following values: true or false. If true, the blanket purchase agreement is enabled for this document style. If false, it isn't enabled. -
ConfigurationOrderingEnabledFlag: boolean
Title:
Configuration Ordering EnabledMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, configuration ordering is enabled for this document style. If false, it isn't enabled. -
ConsignmentTermsEnabledFlag: boolean
Title:
Consignment Terms EnabledMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, consignment terms are enabled for this document style. If false, they aren't enabled. -
ContractDocumentStyleTypeDisplayName: string
Maximum Length:
240Display name of the contract purchase agreement. -
ContractDocumentStyleTypeEnabledFlag: boolean
Maximum Length:
1Contains one of the following values: true or false. If true, the contract purchase agreement is enabled for this document style. If false, it isn't enabled. -
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the document style. -
CreationDate: string
(date-time)
Read Only:
trueDate and time when the document style was created. -
CreditLineTypesEnabledFlag: boolean
Title:
Credit Line Types EnabledMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, the credit line types are enabled for this document style. If false, they aren't enabled. -
LastUpdateDate: string
(date-time)
Read Only:
trueDate and time when the document style was most recently updated. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the document style. -
LineTypeAllowed: string
Title:
Line TypesMaximum Length:80Indicates whether the line type covers all or needs to be specified. Valid values: All, Specified. -
LineTypeAllowedCode: string
Maximum Length:
30Abbreviation that identifies the allowed line types. -
lineTypes: array
Line Types
Title:
Line TypesDetails of line types -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
OutsideProcessingEnabledFlag: boolean
Title:
Outside Processing EnabledMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, outside processing is enabled for this document style. If false, it isn't enabled. -
PriceBreaksEnabledFlag: boolean
Title:
Price Breaks AllowedMaximum Length:1Contains one of the following values: true or false. If true, price breaks are enabled for this document style. If false, they aren't enabled. -
ProgressPaymentEnabledFlag: boolean
Title:
Progress Payments EnabledMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, progress payments are enabled for this document style. If false, they aren't enabled. -
QuantityPurchaseBasisEnabledFlag: boolean
Maximum Length:
1Contains one of the following values: true or false. If true, the quantity purchase basis is enabled for this document style. If false, it isn't enabled. -
RetainageEnabledFlag: boolean
Title:
Retainage EnabledMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, retainage is enabled for this document style. If false, it isn't enabled. -
StandardDocumentStyleTypeDisplayName: string
Maximum Length:
240Display name of the purchase order. -
Status: string
Title:
StatusMaximum Length:80Status of the purchasing document style. -
StatusCode: string
Maximum Length:
30Abbreviation that identifies the purchasing document style status. -
StyleDescription: string
Title:
DescriptionMaximum Length:240Description of the purchasing document style. -
StyleId: integer
(int64)
The unique identifier of the purchasing document style.
-
StyleName: string
Title:
StyleMaximum Length:240Name that uniquely identifies the purchasing document style. -
StyleType: string
Read Only:
trueMaximum Length:30Style or format of the purchasing document. -
WorkConfirmationEnabledFlag: boolean
Title:
Work Confirmation EnabledMaximum Length:1Default Value:falseContains one of the following values: true or false. If true, work confirmation is enabled for this document style. If false, it isn't enabled.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : purchasingDocumentStyles-lineTypes-item-response
Type:
Show Source
object-
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the line type. -
CreationDate: string
(date-time)
Read Only:
trueDate and time when the line type was created. -
EnabledFlag: boolean
Maximum Length:
1Contains one of the following values: true or false. If true, value is allowed for this line type. If false, it isn't allowed. -
LastUpdateDate: string
(date-time)
Read Only:
trueDate and time when the line type was most recently updated. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the line type. -
LineTypeId: string
Maximum Length:
40Value that uniquely identifies the purchasing line type. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
StyleId: integer
(int64)
The unique identifier of the purchasing document style.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
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.
Links
- lineTypes
-
Parameters:
- purchasingDocumentStylesUniqID:
$request.path.purchasingDocumentStylesUniqID
Details of line types - purchasingDocumentStylesUniqID:
Examples
This example describes how to update one document style.
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/purchasingDocumentStyles/purchasingDocumentStylesUniqID"
For
example:
curl -u username:password -X PATCH -H "Content-Type:application/json" -d 'request payload' "https://servername/fscmRestApi/resources/version/purchasingDocumentStyles/300100648901307"
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.
{
"StyleDescription": "StyleName-test-1 updated" }
Example Response Body
The following example includes the contents of the response
body in JSON format:
{
"StyleId": "300100648901307",
"StyleName": "StyleName-test-2",
"StyleDescription": "StyleName-test-1 updated",
"StyleType": null,
"Status": "Active",
"StatusCode": "ACTIVE",
"QuantityPurchaseBasisEnabledFlag": true,
"AmountPurchaseBasisEnabledFlag": true,
"ConsignmentTermsEnabledFlag": false,
"ConfigurationOrderingEnabledFlag": false,
"OutsideProcessingEnabledFlag": false,
"CreditLineTypesEnabledFlag": false,
"LineTypeAllowed": "All",
"LineTypeAllowedCode": "ALL",
"RetainageEnabledFlag": false,
"ProgressPaymentEnabledFlag": false,
"WorkConfirmationEnabledFlag": false,
"PriceBreaksEnabledFlag": false,
"StandardDocumentStyleTypeDisplayName": "StyleName-test-2-Standard",
"BlanketDocumentStyleTypeDisplayName": null,
"BlanketDocumentStyleTypeEnabledFlag": false,
"ContractDocumentStyleTypeDisplayName": null,
"ContractDocumentStyleTypeEnabledFlag": false,
"LastUpdateDate": "2026-01-26T04:17:26+00:00",
"LastUpdatedBy": "CVBUYER01",
"CreationDate": "2026-01-26T04:16:24+00:00",
"CreatedBy": "CVBUYER01",
"@context": {
"key": "300100648901307,300100648901307,PURCHASE_BASES,GOODS,300100648901307,PURCHASE_BASES,SERVICES,300100648901307,STANDARD,300100648901307,BLANKET,300100648901307,CONTRACT",
"headers": {
"ETag": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000006770400000006737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B0200007870000000027371007E00020000000171007E00057372001B6F7261636C652E6A626F2E646F6D61696E2E4E756C6C56616C75655899C1C58DAABEEB02000149000A6D53514C54797065496478700000000C71007E000771007E000778"
},
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/purchasingDocumentStyles/300100648901307%2C300100648901307%2CPURCHASE_BASES%2CGOODS%2C300100648901307%2CPURCHASE_BASES%2CSERVICES%2C300100648901307%2CSTANDARD%2C300100648901307%2CBLANKET%2C300100648901307%2CCONTRACT",
"name": "purchasingDocumentStyles",
"kind": "item"
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/purchasingDocumentStyles/300100648901307%2C300100648901307%2CPURCHASE_BASES%2CGOODS%2C300100648901307%2CPURCHASE_BASES%2CSERVICES%2C300100648901307%2CSTANDARD%2C300100648901307%2CBLANKET%2C300100648901307%2CCONTRACT",
"name": "purchasingDocumentStyles",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/purchasingDocumentStyles/300100648901307%2C300100648901307%2CPURCHASE_BASES%2CGOODS%2C300100648901307%2CPURCHASE_BASES%2CSERVICES%2C300100648901307%2CSTANDARD%2C300100648901307%2CBLANKET%2C300100648901307%2CCONTRACT/child/lineTypes",
"name": "lineTypes",
"kind": "collection"
}
]
}
}