Update one item transaction default
patch
/fscmRestApi/resources/11.13.18.05/itemTransactionDefaults/{TransactionDefaultsId}
Request
Path Parameters
-
TransactionDefaultsId(required): integer(int64)
Value that uniquely identifies the item transaction default.
Header Parameters
-
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.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
DefaultTypeMeaning: string
Maximum Length:
255
Meaning of the code that indicates the default type. -
ItemDescription: string
Maximum Length:
255
Description of the item. -
ItemKeyword: string
Maximum Length:
255
Value used to search for an item transaction default using an item keyword. -
ItemNumber: string
Maximum Length:
255
Number that identifies the item. -
Locator: string
Maximum Length:
255
Value that uniquely identifies the locator of the item transaction default. -
LocatorId: integer
(int64)
Value that uniquely identifies the locator of the item transaction default.
-
OrganizationCode: string
Maximum Length:
255
Value that uniquely identifies the organization of the item transaction default. -
OrganizationName: string
Maximum Length:
255
Value that uniquely identifies the organization of the item transaction default. -
PrimaryImageURL: string
Maximum Length:
4000
Value that provides a reference to the image of the item for which the transaction default is created or updated. -
SubDefault: string
Maximum Length:
11
Value that identifies both subinventory and locator defaults. -
SubinventoryCode: string
Maximum Length:
10
Value that uniquely identifies the subinventory of the item transaction default.
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 : itemTransactionDefaults-item-response
Type:
Show Source
object
-
DefaultType: string
Title:
Default For
Maximum Length:30
Code indicating the default type. -
DefaultTypeMeaning: string
Maximum Length:
255
Meaning of the code that indicates the default type. -
InventoryItemId: integer
(int64)
ID that identifies the item.
-
ItemDescription: string
Maximum Length:
255
Description of the item. -
ItemKeyword: string
Maximum Length:
255
Value used to search for an item transaction default using an item keyword. -
ItemNumber: string
Maximum Length:
255
Number that identifies the item. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
Locator: string
Maximum Length:
255
Value that uniquely identifies the locator of the item transaction default. -
LocatorId: integer
(int64)
Value that uniquely identifies the locator of the item transaction default.
-
OrganizationCode: string
Maximum Length:
255
Value that uniquely identifies the organization of the item transaction default. -
OrganizationId: integer
(int64)
Value that uniquely identifies the organization of the item transaction default.
-
OrganizationName: string
Maximum Length:
255
Value that uniquely identifies the organization of the item transaction default. -
PrimaryImageURL: string
Maximum Length:
4000
Value that provides a reference to the image of the item for which the transaction default is created or updated. -
SubDefault: string
Maximum Length:
11
Value that identifies both subinventory and locator defaults. -
SubinventoryCode: string
Maximum Length:
10
Value that uniquely identifies the subinventory of the item transaction default. -
TransactionDefaultsId: integer
(int64)
Read Only:
true
Value that uniquely identifies the item transaction default.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed 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.
Examples
This example describes how to update one item transaction default.
Note:
At least one of these attributes, Locator, Locatorid, and SubinventoryCode, is requird in the request payload.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/itemTransactionDefaults/TransactionDefaultsId"
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/itemTransactionDefaults/300100574673224?onlyData=true"
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.
{ "Locator": "ABC1.1.1" }
Example Response Body
The following example includes the contents of the response
body in JSON format:
{ "TransactionDefaultsId" : 300100574673224, "OrganizationId" : 207, "OrganizationCode" : "M1", "OrganizationName" : "Seattle Manufacturing", "InventoryItemId" : 663913, "ItemNumber" : "INV-100", "ItemDescription" : "Plain Item", "DefaultType" : "5", "DefaultTypeMeaning" : "Miscellaneous receipt", "SubinventoryCode" : "ABCSUB01", "LocatorId" : 3134, "Locator" : "ABC1.1.1", "SubDefault" : "ABCSUB01", "ItemKeyword" : null }