Update a product

patch

/crmRestApi/resources/11.13.18.05/products/{InventoryItemId}

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 : Default Prices
Type: array
Title: Default Prices
The default prices resource is used to view, create, update, and delete default prices for products.
Show Source
Nested Schema : Product Attachments
Type: array
Title: Product Attachments
The attachment resource is used to view, create, and update attachments of a product. An attachment includes additional information about a product.
Show Source
Nested Schema : Product Image Attachments
Type: array
Title: Product Image Attachments
The attachment resource is used to view, create, and update image attachments of a product.
Show Source
Nested Schema : Product Translations
Type: array
Title: Product Translations
The product translations resource is used to view, create, update, and delete product translations in various installed languages for a product.
Show Source
Nested Schema : SalesProductLookupType
Type: object
The lookup type for the sales product type.
Nested Schema : Smart Actions
Type: array
Title: Smart Actions
This VO stores the endpoint and security details for every user action.
Show Source
Nested Schema : products-DefaultPrices-item-patch-request
Type: object
Show Source
  • Title: List Price
    Default Value: 0
    The List Price for the combination of product, currency and UOM.
  • Title: UOM
    Maximum Length: 30
    The unit of measurement code of the default price.
Nested Schema : schema
Type: object
Show Source
Nested Schema : products-ProductImageAttachments-item-patch-request
Type: object
Show Source
Nested Schema : products-ProductTranslations-item-patch-request
Type: object
Show Source
Nested Schema : products-smartActions-item-patch-request
Type: object
Show Source
Nested Schema : Smart Action User Interface Definitions
Type: array
Title: Smart Action User Interface Definitions
UI navigation metadata striped by app usage.
Show Source
Nested Schema : Smart Action REST Payload Definitions
Type: array
Title: Smart Action REST Payload Definitions
If an LOV required for constructing a request payload needs to post data, the payload metadata is stored here.
Show Source
Nested Schema : Smart Action User Interface Definitions
Type: array
Title: Smart Action User Interface Definitions
Binding metadata for a variable in the URL.
Show Source
Nested Schema : products-smartActions-UserActionNavigation-item-patch-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
  • Title: Payload Value Binding Type
    Maximum Length: 64
    Indicates the binding type of the value.
  • Title: Mandatory
    Maximum Length: 1
    Boolean value indicating if the payload is mandatory.
  • Title: Request Payload Attribute Name
    Maximum Length: 256
    The key in the Key Value pair that forms the payload.
  • Title: Smart Suggest Path
    Maximum Length: 2048
    The path used for smart suggest.
  • Title: System Action
    Maximum Length: 1
    Default Value: false
    Boolean value.
  • Title: Request Payload Attribute Value
    Maximum Length: 1000
    The value in the Key Value pair that forms the payload.
  • Title: Payload Value Structure
    Maximum Length: 20
    If the value in the Key Value pair isn't a single value, this would be set.
Nested Schema : schema
Type: object
Show Source
  • Title: URL Binding Type
    Maximum Length: 64
    This is a hint for processing the Url Binding runtime.
  • Title: System Action
    Maximum Length: 1
    Default Value: false
    Boolean indicator.
  • Title: URL Binding Parameter Name
    Maximum Length: 50
    For action REST endpoints that require runtime binding, this is the key in the key value pair.
  • Title: URL Binding Parameter Value
    Maximum Length: 80
    For action REST endpoints that require runtime binding, this is the value in the key value pair.
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 : products-item-response
Type: object
Show Source
Nested Schema : Default Prices
Type: array
Title: Default Prices
The default prices resource is used to view, create, update, and delete default prices for products.
Show Source
Nested Schema : Product Attachments
Type: array
Title: Product Attachments
The attachment resource is used to view, create, and update attachments of a product. An attachment includes additional information about a product.
Show Source
Nested Schema : Product Image Attachments
Type: array
Title: Product Image Attachments
The attachment resource is used to view, create, and update image attachments of a product.
Show Source
Nested Schema : Product Translations
Type: array
Title: Product Translations
The product translations resource is used to view, create, update, and delete product translations in various installed languages for a product.
Show Source
Nested Schema : SalesProductLookupType
Type: object
The lookup type for the sales product type.
Nested Schema : Smart Actions
Type: array
Title: Smart Actions
This VO stores the endpoint and security details for every user action.
Show Source
Nested Schema : products-DefaultPrices-item-response
Type: object
Show Source
Nested Schema : products-ProductAttachments-item-response
Type: object
Show Source
Nested Schema : products-ProductImageAttachments-item-response
Type: object
Show Source
Nested Schema : products-ProductTranslations-item-response
Type: object
Show Source
Nested Schema : products-smartActions-item-response
Type: object
Show Source
Nested Schema : Smart Action User Interface Definitions
Type: array
Title: Smart Action User Interface Definitions
UI navigation metadata striped by app usage.
Show Source
Nested Schema : Smart Action REST Payload Definitions
Type: array
Title: Smart Action REST Payload Definitions
If an LOV required for constructing a request payload needs to post data, the payload metadata is stored here.
Show Source
Nested Schema : Smart Action User Interface Definitions
Type: array
Title: Smart Action User Interface Definitions
Binding metadata for a variable in the URL.
Show Source
Nested Schema : products-smartActions-UserActionNavigation-item-response
Type: object
Show Source
Nested Schema : products-smartActions-UserActionRequestPayload-item-response
Type: object
Show Source
Nested Schema : products-smartActions-UserActionURLBinding-item-response
Type: object
Show Source
  • Title: URL Binding Type
    Maximum Length: 64
    This is a hint for processing the Url Binding runtime.
  • Links
  • Title: System Action
    Maximum Length: 1
    Default Value: false
    Boolean indicator.
  • Uniquely identifies the URL Bind for smart actions. For internal use.
  • Title: URL Binding Parameter Name
    Maximum Length: 50
    For action REST endpoints that require runtime binding, this is the key in the key value pair.
  • Title: URL Binding Parameter Value
    Maximum Length: 80
    For action REST endpoints that require runtime binding, this is the value in the key value pair.
Back to Top

Examples

The following example shows how to update a product by submitting a patch request on the REST resource using cURL.

cURL Command

curl -u <username:password> \ -X PATCH -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/products/300100072708232

Example of Request Body

The following shows an example of the request body in JSON format.

{
 "Name": "Updated Test Product Name",
 "Description" : "Updated test Product Name REST long description REST"
}

Example of Response Body

The following shows an example of the response body in JSON format.

{
 InventoryItemId: 300100072708232
 InventoryItemStatusCode: "Active"
 ItemCatalogGroupId: 100000011369001
 ItemNumber: "testItemRest120201"
 LastUpdateDate: "2015-11-13T02:46:03-08:00"
 LastUpdateLogin: "24697F5C75755F75E0535B50F00AE009"
 LastUpdatedBy: "SALES_ADMIN"
 Description: "Updated test Product Name REST long description REST"
 ObjectVersionNumber: 2
 OrganizationId: 204
 CreatedBy: "SALES_ADMIN"
 CreationDate: "2015-10-26T12:43:14-08:00"
 Name: "Updated Test Product Name"
 ...
}
Back to Top