Update one sequence

patch

/fscmRestApi/resources/11.13.18.05/cycleCountSequenceDetails/{cycleCountSequenceDetailsUniqID}

Request

Path Parameters
  • This is the hash key of the attributes which make up the composite key--- CycleCountEntryId, CycleCountHeaderId and OrganizationId ---for the Cycle Count Sequence Details resource and used to uniquely identify an instance of Cycle Count Sequence Details. The client should not generate the hash key value. Instead, the client should query on the Cycle Count Sequence Details collection resource with a filter on the primary key values in order to navigate to a specific instance of Cycle Count Sequence Details.

    For example: cycleCountSequenceDetails?q=CycleCountEntryId=<value1>;CycleCountHeaderId=<value2>;OrganizationId=<value3>
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 : DFF
Type: array
Show Source
Nested Schema : History
Type: array
Title: History
The History resource manages details for the history of cycle count sequences.
Show Source
Nested Schema : inventoryAttributesDFF
Type: array
Show Source
Nested Schema : Serials
Type: array
Title: Serials
The Serials resource manages details for the serials of cycle count sequences.
Show Source
Nested Schema : cycleCountSequenceDetails-DFF-item-patch-request
Type: object
Show Source
Nested Schema : cycleCountSequenceDetails-history-item-patch-request
Type: object
Show Source
Nested Schema : History Serials
Type: array
Title: History Serials
The History Serials resource manages details for the history serials of cycle count sequences.
Show Source
Nested Schema : cycleCountSequenceDetails-history-historySerials-item-patch-request
Type: object
Show Source
Nested Schema : cycleCountSequenceDetails-inventoryAttributesDFF-item-patch-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
  • Value that uniquely identifies the serial number.
  • Contains one of the following values: true or false. If true, then the serial is counted in the current count sequence. If false, then the serial isn't counted in the current count sequence. This attribute doesn't have a default value.
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 : cycleCountSequenceDetails-item-response
Type: object
Show Source
Nested Schema : DFF
Type: array
Show Source
Nested Schema : History
Type: array
Title: History
The History resource manages details for the history of cycle count sequences.
Show Source
Nested Schema : inventoryAttributesDFF
Type: array
Show Source
Nested Schema : Serials
Type: array
Title: Serials
The Serials resource manages details for the serials of cycle count sequences.
Show Source
Nested Schema : cycleCountSequenceDetails-DFF-item-response
Type: object
Show Source
Nested Schema : cycleCountSequenceDetails-history-item-response
Type: object
Show Source
Nested Schema : History Serials
Type: array
Title: History Serials
The History Serials resource manages details for the history serials of cycle count sequences.
Show Source
Nested Schema : cycleCountSequenceDetails-history-historySerials-item-response
Type: object
Show Source
Nested Schema : cycleCountSequenceDetails-inventoryAttributesDFF-item-response
Type: object
Show Source
Nested Schema : cycleCountSequenceDetails-serials-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to update a sequence.

Note:

A cycle count sequence can be updated only when the count sequence is open. When the count sequence is approved or Rejected, the sequence is no more updatable. Also based on the current status of the sequence, specific attributes are updatable and some attributes are no updatable

For a cycle count having count type as zero-count, adjustments cannot be made against a generated zero count sequence. You must close the generated count sequence by setting the count quantity to zero and create a manual count sequence for the desired SKU to make the cycle count adjustment.

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/cycleCountSequenceDetails/cycleCountSequenceDetailsUniqID"

For example:

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/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD870000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF

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.

{
  "CycleCountName": "RESTT2",
  "OrganizationCode": "M1",
  "ItemNumber" : "RCV-102",
  "Subinventory" : "Engineer",
  "CountQuantity" : 2,
  "CountUOMCode" : "BX5",
  "Comments" : "Test Post Multiple Serial"
}

Example Response Body

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

{
 "CycleCountEntryId" : 300100149902731,
  "CycleCountHeaderId" : 300100149661688,
  "CycleCountName" : "RESTT2",
  "OrganizationId" : 207,
  "OrganizationCode" : "M1",
  "OrganizationName" : "Tall Manufacturing",
  "CountTypeCode" : "2",
  "CountType" : "Manually recorded",
  "InventoryItemId" : 663909,
  "ItemNumber" : "RCV-102",
  "ItemDescription" : "Serial @ Receipt Item",
  "Subinventory" : "Engineer",
  "LocatorId" : null,
  "Locator" : null,
  "LotNumber" : null,
  "SerialNumber" : null,
  "Revision" : null,
  "CountSequence" : 300100149902730,
  "CountQuantity" : 2,
 "CountUOMCode" : "BX5",
  "CountUOM" : "Each",
  "SecondaryCountQuantity" : null,
 "SecondaryCountUOMCode" : null,
 "SecondaryCountUOM" : null,
  "OwningType" : "2",
  "OwningEntityId" : 207,
  "OwningPartySite" : null,
  "OwningParty" : null,
 "Reason" : null,
  "Comments" : "Test Post Multiple Serial",
 "CountedByEmployeeId" : 300100036644754,
 "CountedBy" : "Smith, Sam",
  "CountDate" : "2018-09-17",
  "ReviewedByEmployeeId" : null,
  "ReviewedBy" : null,
  "ReviewDate" : null,
  "CountSequenceStatusCode" : "1",
  "CountSequenceStatus" : "Pending count",
  "ExportCode" : null,
  "Exported" : "No",
  "ReasonId" : null,
  "OwningTypeCode" : "Inventory organization",
 "ManualCountPrefix" : null,
  "PrimarySuggestedQuantity" : 0,
  "PrimaryAdjustmentQuantity" : 2,
  "SecondarySuggestedQuantity" : null,
  "SecondaryAdjustmentQuantity" : null,
  "AdjustmentValue" : null,
  "AdjustmentDate" : null,
  "Recounts" : null,
  "ItemUnitCost" : null,
  "DeviationPercentage" : 200,
  "ProcessingFlag" : null,
  "ProcurementBU" : null,
  "links" : [ {
    "rel" : "self",
    "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD8B0000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF",
    "name" : "cycleCountSequenceDetails",
    "kind" : "item",
    "properties" : {
      "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
    }
  }, {
    "rel" : "canonical",
    "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD8B0000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF",
    "name" : "cycleCountSequenceDetails",
    "kind" : "item"
  }, {
    "rel" : "child",
    "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD8B0000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF/child/history",
    "name" : "history",
    "kind" : "collection"
  }, {
    "rel" : "child",
    "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD8B0000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF/child/DFF",
    "name" : "DFF",
    "kind" : "collection"
  }, {
    "rel" : "child",
    "href" : "https://servername/fscmRestApi/resources/version/cycleCountSequenceDetails/00030000000EACED00057708000110F082D4FD8B0000000EACED00057708000110F082D14FF80000000EACED0005770800000000000000CF/child/serials",
    "name" : "serials",
    "kind" : "collection"
  } ]
}
Back to Top