Update a line

patch

/fscmRestApi/resources/11.13.18.05/supplierReturns/{SupplierReturnHeaderId}/child/lines/{linesUniqID}

Request

Path Parameters
  • Value that uniquely identifies the supplier return header.
  • This is the hash key of the attributes which make up the composite key for the Lines resource and used to uniquely identify an instance of Lines. The client should not generate the hash key value. Instead, the client should query on the Lines collection resource in order to navigate to a specific instance of Lines 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
Nested Schema : Flexfields for Supplier Return Lines
Type: array
Title: Flexfields for Supplier Return Lines
The Flexfields for Supplier Return Lines resource manages additional details about supplier return lines.
Show Source
Nested Schema : Flexfields for Inventory Attributes
Type: array
Title: Flexfields for Inventory Attributes
The Flexfields for Inventory Attributes resource manages descriptive flexfields for inventory attributes. This resource is associated with a feature that requires opt in.
Show Source
Nested Schema : Manufacturer Parts
Type: array
Title: Manufacturer Parts
The Manufacturer Parts resource manages the manufacturer parts associated with a supplier return line.
Show Source
Nested Schema : Serial Numbers
Type: array
Title: Serial Numbers
The Serial Numbers resource manages the serial numbers associated with a supplier return line.
Show Source
Nested Schema : supplierReturns-lines-DFF-item-patch-request
Type: object
Show Source
Nested Schema : supplierReturns-lines-inventoryAttributesDFF-item-patch-request
Type: object
Show Source
  • Title: Context Segment
    Maximum Length: 40
    Descriptive flexfield context name of inventory attributes for supplier return lines. This attribute is associated with a feature that requires opt in.
  • Title: Context Segment
    Descriptive flexfield context display value of inventory attributes for supplier return lines. This attribute is associated with a feature that requires opt in.
  • Title: Country of Origin
    Maximum Length: 2
    Abbreviation that identifies the country of origin. This attribute is associated with a feature that requires opt in.
  • Title: Country of Origin
    Name of the country of origin. This attribute is associated with a feature that requires opt in.
  • Title: Project
    Value that uniquely identifies the project. This attribute is associated with a feature that requires opt in.
  • Title: Project
    Number that identifies the project. This attribute is associated with a feature that requires opt in.
  • Value that uniquely identifies the supplier return line. This attribute is associated with a feature that requires opt in.
  • Title: Task
    Value that uniquely identifies the task. This attribute is associated with a feature that requires opt in.
  • Title: Task
    Number that identifies the task. This attribute is associated with a feature that requires opt in.
Nested Schema : supplierReturns-lines-manufacturerParts-item-patch-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
  • Maximum Length: 80
    Number that indicates the starting serial in a range of serial numbers. This number is used to identify an item.
  • Maximum Length: 80
    Number that indicates the last serial in a range of serial numbers. This number is used to identify an item.
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 : supplierReturns-lines-item-response
Type: object
Show Source
Nested Schema : Flexfields for Supplier Return Lines
Type: array
Title: Flexfields for Supplier Return Lines
The Flexfields for Supplier Return Lines resource manages additional details about supplier return lines.
Show Source
Nested Schema : Flexfields for Inventory Attributes
Type: array
Title: Flexfields for Inventory Attributes
The Flexfields for Inventory Attributes resource manages descriptive flexfields for inventory attributes. This resource is associated with a feature that requires opt in.
Show Source
Nested Schema : Manufacturer Parts
Type: array
Title: Manufacturer Parts
The Manufacturer Parts resource manages the manufacturer parts associated with a supplier return line.
Show Source
Nested Schema : Serial Numbers
Type: array
Title: Serial Numbers
The Serial Numbers resource manages the serial numbers associated with a supplier return line.
Show Source
Nested Schema : supplierReturns-lines-DFF-item-response
Type: object
Show Source
Nested Schema : supplierReturns-lines-inventoryAttributesDFF-item-response
Type: object
Show Source
  • Title: Context Segment
    Maximum Length: 40
    Descriptive flexfield context name of inventory attributes for supplier return lines. This attribute is associated with a feature that requires opt in.
  • Title: Context Segment
    Descriptive flexfield context display value of inventory attributes for supplier return lines. This attribute is associated with a feature that requires opt in.
  • Title: Country of Origin
    Maximum Length: 2
    Abbreviation that identifies the country of origin. This attribute is associated with a feature that requires opt in.
  • Title: Country of Origin
    Name of the country of origin. This attribute is associated with a feature that requires opt in.
  • Links
  • Title: Project
    Value that uniquely identifies the project. This attribute is associated with a feature that requires opt in.
  • Title: Project
    Number that identifies the project. This attribute is associated with a feature that requires opt in.
  • Value that uniquely identifies the supplier return line. This attribute is associated with a feature that requires opt in.
  • Title: Task
    Value that uniquely identifies the task. This attribute is associated with a feature that requires opt in.
  • Title: Task
    Number that identifies the task. This attribute is associated with a feature that requires opt in.
Nested Schema : supplierReturns-lines-manufacturerParts-item-response
Type: object
Show Source
Nested Schema : supplierReturns-lines-serials-item-response
Type: object
Show Source
  • Maximum Length: 80
    Number that indicates the starting serial in a range of serial numbers. This number is used to identify an item.
  • Links
  • Maximum Length: 80
    Number that indicates the last serial in a range of serial numbers. This number is used to identify an item.
Back to Top

Examples

This example describes how to update a line.

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/supplierReturns/SupplierReturnHeaderId/child/lines/linesUniqID"

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.

{
	"Comments": "Updated the supplier return line"
}

Example Response Body

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

{
	"SupplierReturnLineId": 300100191493356,
	"SupplierReturnLineNumber": 3,
	"CreationDate": "2020-05-14T23:33:36+00:00",
	"CreatedBy": "WHSE_MGR_ALL_INV_ORGS",
	"LastUpdateDate": "2020-05-14T23:34:23.056+00:00",
	"LastUpdatedBy": "WHSE_MGR_ALL_INV_ORGS",
	"OrganizationId": 207,
	"OrganizationCode": "M1",
	"ItemId": 663913,
	"ItemNumber": "INV-100",
	"ItemDescription": "Plain Item",
	"ItemRevision": null,
	"LineStatusCode": "INCOMPLETE",
	"LineStatus": "Incomplete",
	"Subinventory": "FloorStock",
	"LocatorId": null,
	"Locator": null,
	"PhysicalMaterialReturnRequiredFlag": true,
	"RequestedQuantity": 1.3,
	"FulfilledQuantity": null,
	"CanceledQuantity": null,
	"UOMCode": "C10",
	"UnitOfMeasure": "Case of 10",
	"PrimaryRequestedQuantity": 13,
	"PrimaryUOMCode": "Ea",
	"PrimaryUnitOfMeasure": "Each",
	"RequestedDate": null,
	"ReturnedById": 25,
	"ReturnedByName": "Smith, Pat",
	"AccountId": null,
	"Account": null,
	"LotNumber": null,
	"SecondaryRequestedQuantity": null,
	"SecondaryFulfilledQuantity": null,
	"SecondaryCanceledQuantity": null,
	"SecondaryUOMCode": null,
	"SecondaryUnitOfMeasure": null,
	"SupplierLotNumber": null,
	"SupplierItemNumber": null,
	"SupplierRMANumber": null,
	"RecallHeaderId": null,
	"RecallNoticeNumber": null,
	"RecallLineId": null,
	"RecallNoticeLineNumber": null,
	"ReasonId": null,
	"Reason": null,
	"Comments": "Updated the supplier return line",
	"ErrorMessageName": null,
	"ErrorMessage": null,
	"CancelFlag": null,
	"links": [
	...
	]
}

Example Request Body

The following example includes the contents of the request body in JSON format to cancel a supplier return line. 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.

{
    "CancelFlag": true
}

Example Response Body

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

{
	"SupplierReturnLineId": 300100191493356,
	"SupplierReturnLineNumber": 3,
	"CreationDate": "2020-05-14T23:33:36+00:00",
	"CreatedBy": "WHSE_MGR_ALL_INV_ORGS",
	"LastUpdateDate": "2020-05-14T23:58:03+00:00",
	"LastUpdatedBy": "WHSE_MGR_ALL_INV_ORGS",
	"OrganizationId": 207,
	"OrganizationCode": "M1",
	"ItemId": 663913,
	"ItemNumber": "INV-100",
	"ItemDescription": "Plain Item",
	"ItemRevision": null,
	"LineStatusCode": "CANCELED",
	"LineStatus": "Canceled",
	"Subinventory": "FloorStock",
	"LocatorId": null,
	"Locator": null,
	"PhysicalMaterialReturnRequiredFlag": true,
	"RequestedQuantity": 1.3,
	"FulfilledQuantity": null,
	"CanceledQuantity": 1.3,
	"UOMCode": "C10",
	"UnitOfMeasure": "Case of 10",
	"PrimaryRequestedQuantity": 13,
	"PrimaryUOMCode": "Ea",
	"PrimaryUnitOfMeasure": "Each",
	"RequestedDate": "2020-05-14T23:57:39+00:00",
	"ReturnedById": 25,
	"ReturnedByName": "Smith, Pat",
	"AccountId": null,
	"Account": null,
	"LotNumber": null,
	"SecondaryRequestedQuantity": null,
	"SecondaryFulfilledQuantity": null,
	"SecondaryCanceledQuantity": null,
	"SecondaryUOMCode": null,
	"SecondaryUnitOfMeasure": null,
	"SupplierLotNumber": null,
	"SupplierItemNumber": null,
	"SupplierRMANumber": null,
	"RecallHeaderId": null,
	"RecallNoticeNumber": null,
	"RecallLineId": null,
	"RecallNoticeLineNumber": null,
	"ReasonId": null,
	"Reason": null,
	"Comments": "Updated the supplier return line",
	"ErrorMessageName": null,
	"ErrorMessage": null,
	"CancelFlag": true,
	"links": [
	...
	]
}
Back to Top