Update one cost factor

patch

/fscmRestApi/resources/11.13.18.05/supplierNegotiations/{supplierNegotiationsUniqID}/child/lines/{LineId}/child/costFactors/{LineCostFactorId}

Request

Path Parameters
  • Value that uniquely identifies the sequence of the cost factor within a negotiation line.
  • Value that uniquely identifies the negotiation line.
  • This is the hash key of the attributes which make up the composite key for the Supplier Negotiations resource and used to uniquely identify an instance of Supplier Negotiations. The client should not generate the hash key value. Instead, the client should query on the Supplier Negotiations collection resource in order to navigate to a specific instance of Supplier Negotiations to get the hash key.
Header Parameters
  • 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".
  • 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
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Title: Cost Factor
    Maximum Length: 80
    Name of the cost factor.
  • Title: Cost Factor ID
    Value that identifies the cost factor.
  • Title: Display Target
    Maximum Length: 1
    Contains one of the following values: true or false. If true, then allow the supplier to view the value for the cost factor target. If false, then do not allow. The default value is false.
  • Title: Pricing Basis
    Maximum Length: 80
    Basis that the application uses to calculate the cost factor. A list of accepted values is defined in the lookup type PON_PRICING_BASIS.
  • Title: Pricing Basis Code
    Maximum Length: 30
    Abbreviation that identifies the basis that the application uses to calculate the cost factor. A list of accepted values is defined in the lookup type PON_PRICING_BASIS.
  • Title: Target Value
    Target value of the cost factor.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • 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".
  • 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.
Body ()
Root Schema : supplierNegotiations-lines-costFactors-item-response
Type: object
Show Source
  • Read Only: true
    Value that uniquely identifies the negotiation.
  • Title: Cost Factor
    Maximum Length: 80
    Name of the cost factor.
  • Title: Cost Factor ID
    Value that identifies the cost factor.
  • Title: Description
    Read Only: true
    Maximum Length: 240
    Description of the cost factor.
  • Title: Display Target
    Maximum Length: 1
    Contains one of the following values: true or false. If true, then allow the supplier to view the value for the cost factor target. If false, then do not allow. The default value is false.
  • Read Only: true
    Number that identifies the negotiation line.
  • Read Only: true
    Value that uniquely identifies the sequence of the cost factor within a negotiation line.
  • Read Only: true
    Description of the negotiation line.
  • Title: Line ID
    Read Only: true
    Value that uniquely identifies the negotiation line.
  • Links
  • Title: Pricing Basis
    Maximum Length: 80
    Basis that the application uses to calculate the cost factor. A list of accepted values is defined in the lookup type PON_PRICING_BASIS.
  • Title: Pricing Basis Code
    Maximum Length: 30
    Abbreviation that identifies the basis that the application uses to calculate the cost factor. A list of accepted values is defined in the lookup type PON_PRICING_BASIS.
  • Title: Target Value
    Target value of the cost factor.
Back to Top

Examples

This example describes how to update a cost factor.

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/supplierNegotiations/supplierNegotiationsUniqID/child/lines/LineId/child/costFactors/LineCostFactorId"

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/supplierNegotiations/300100152357495/child/lines/1/child/costFactors/10"

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.

{
	"CostFactor": "FREIGHT"
}

Example Response Body

The following example includes the contents of the response body in JSON format:

{
	"AuctionHeaderId": 300100186479682,
	"LineId": 1,
	"LineCostFactorId": 10,
	"Description": "Freight",
	"CostFactorId": 62,
	"CostFactor": "FREIGHT",
	"PricingBasisCode": "PER_UNIT",
	"PricingBasis": "Per unit",
	"TargetValue": null,
	"DisplayTargetFlag": false,
	"links": [
	{
		"rel": "self",
		"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100186479682/child/lines/1/child/costFactors/10",
		"name": "costFactors",
		"kind": "item",
		"properties": {
			"changeIndicator": "ACED000..."
		}
	},
	{
		"rel": "canonical",
		"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100186479682/child/lines/1/child/costFactors/10",
		"name": "costFactors",
		"kind": "item"
	},
	{
		"rel": "parent",
		"href": "https://servername/fscmRestApi/resources/version/supplierNegotiations/300100186479682/child/lines/1",
		"name": "lines",
		"kind": "item"
	}
	]
}
Back to Top