Update a count task

patch

/fscmRestApi/resources/11.13.18.05/inventoryCountTasks/{InvCountTaskId}

Request

Path Parameters
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
Nested Schema : Costs
Type: array
Title: Costs
The Costs resource manages the costs associated with the count task.
Show Source
Nested Schema : Flexfields for Inventory Count Tasks
Type: array
Title: Flexfields for Inventory Count Tasks
The Flexfields for Inventory Count Tasks resource manages the descriptive flexfields for the count task.
Show Source
Nested Schema : Recall Lots
Type: array
Title: Recall Lots
The Recall Lots gets the information about the lot details for each recall notice line.
Show Source
Nested Schema : Recall Lot Serials
Type: array
Title: Recall Lot Serials
The Recall Lot Serials gets the information about the lot and serial details for each recall notice line.
Show Source
Nested Schema : inventoryCountTasks-costs-item-patch-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : inventoryCountTasks-recallLots-item-patch-request
Type: object
Show Source
Nested Schema : inventoryCountTasks-recallLotSerials-item-patch-request
Type: object
Show Source
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 : inventoryCountTasks-item-response
Type: object
Show Source
Nested Schema : Costs
Type: array
Title: Costs
The Costs resource manages the costs associated with the count task.
Show Source
Nested Schema : Flexfields for Inventory Count Tasks
Type: array
Title: Flexfields for Inventory Count Tasks
The Flexfields for Inventory Count Tasks resource manages the descriptive flexfields for the count task.
Show Source
Nested Schema : Recall Lots
Type: array
Title: Recall Lots
The Recall Lots gets the information about the lot details for each recall notice line.
Show Source
Nested Schema : Recall Lot Serials
Type: array
Title: Recall Lot Serials
The Recall Lot Serials gets the information about the lot and serial details for each recall notice line.
Show Source
Nested Schema : inventoryCountTasks-costs-item-response
Type: object
Show Source
Nested Schema : inventoryCountTasks-DFF-item-response
Type: object
Show Source
Nested Schema : inventoryCountTasks-recallLots-item-response
Type: object
Show Source
Nested Schema : inventoryCountTasks-recallLotSerials-item-response
Type: object
Show Source
  • Links
  • Read Only: true
    Maximum Length: 80
    Number that indicates the starting serial as specified by the manufacturer in recall notice.
  • Title: Manufacturer Lot Number
    Read Only: true
    Maximum Length: 80
    Number that indicates the lot specified by the manufacturer in the recall notice.
  • Read Only: true
    Maximum Length: 80
    Number that indicates the ending serial as specified by the manufacturer in recall notice.
  • Read Only: true
    Quantity of the recalled lot.
  • Read Only: true
    Value that uniquely identifies the serial number of the recalled item.
Back to Top

Examples

This example describes how to update a count task.

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/inventoryCountTasks/InvCountTaskId"

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/inventoryCountTasks/300100184764418"

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.

{
	"CountUnitOfMeasure": "Each",
	"CountQuantity": 10,
	"ProcessingModeCode": "PROCESS"
}

Example Response Body

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

{

	"InvCountTaskId": 300100184764418,
	"RecallHeaderId": 300100184928127,
	"RecallHeaderNumber": "RC12345",
	"RecallLineId": 300100184928128,
	"RecallLineNumber": "1",
	"LocationId": 3248,
	"LocationCode": null,
	"LocationName": null,
	"CountTaskSourceHeaderId": 0,
	"CountTaskSourceLineId": 0,
	"CountTaskSourceLineTypeCode": "ORA_IN_STOCK",
	"CountTaskSourceLineType": null,
	"OrganizationId": 207,
	"OrganizationCode": "M1",
	"OrganizationName": null,
	"InventoryItemId": 663914,
	"ItemNumber": "INV-101",
	"ItemDescription": null,
	"Subinventory": "M1INSTOCK",
	"LocatorId": null,
	"Locator": null,
	"Revision": null,
	"LotNumber": "AVILOT1",
	"SerialNumber": null,
	"OwningTypeCode": "2",
	"OwningType": "Inventory organization",
	"OwningEntityId": 207,
	"OwningPartySite": null,
	"OwningParty": null,
	"ProcurementBU": null,
	"CountStatusCode": "ORA_OPEN",
	"CountStatus": "Pending count",
	"CountDate": "2020-03-13",
	"CountedByEmployeeId": 2159,
	"CountedByEmployee": "Jones, Sandra",
	"CountUOMCode": "BX5",
	"CountUnitOfMeasure": "Box of 5",
	"CountSecondaryUOMCode": null,
	"CountSecondaryUnitOfMeasure": null,
	"CountQuantity": 1,
	"SecondaryUOMQuantity": null,
	"ExpectedUOMCode": "Ea",
	"ExpectedUnitOfMeasure": "Each",
	"ExpectedQuantity": 200,
	"SecondaryExpectedQuantity": null,
	"ErrorCode": null,
	"ErrorMessage": null,
	"TransactionReasonId": null,
	"TransactionReason": null,
	"TransactionDate": null,
	"DestinationSubinventory": "RECALL",
	"DestinationLocatorId": null,
	"DestinationLocator": null,
	"PickSubinventory": "AASUB1",
	"PickLocatorId": null,
	"PickLocator": null,
	"Comments": "Test Case1",
	"AccountAliasId": null,
	"AccountAlias": null,
	"AccountId": 107724,
	"Account": "01-130-5800-0000-000",
	"SequenceNumber": 9,
	"RequesterId": null,
	"RequesterName": null,
	"UseItemCostFlag": "true",
	"ProcessingModeCode": null,
	"ProcessingMode": null,
	"links": [3]

0: {...

		...}

}
Back to Top