Update a Product Offering by ID

patch

http://host:port/productCatalogManagement/v4/productOffering/{id}

Partially updates the product offering by ID.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : ProductOfferingOracle
Type: object
Title: ProductOfferingOracle
Match All
Show Source
  • Discriminator: @type
    Discriminator: { "propertyName":"@type", "mapping":{ "ProductOffering":"#/components/schemas/ProductOffering", "ProductOfferingOracle":"#/components/schemas/ProductOfferingOracle" } }
    Represents entities that are orderable from the provider of the catalog. This resource includes pricing information.
  • Discriminator: @type
    Discriminator: { "propertyName":"@type", "mapping":{ "ProductOfferingOracle":"#/components/schemas/ProductOfferingOracle" } }
Nested Schema : Discriminator: @type
Type: object
Discriminator: @type

Discriminator Values

Represents entities that are orderable from the provider of the catalog. This resource includes pricing information.
Show Source
Nested Schema : Discriminator: @type
Type: object
Discriminator: @type

Discriminator Values

Show Source
Back to Top

Response

Supported Media Types

200 Response

The product offering was updated successfully.
Body ()
Root Schema : ProductOfferingOracle
Type: object
Title: ProductOfferingOracle
Match All
Show Source
  • Discriminator: @type
    Discriminator: { "propertyName":"@type", "mapping":{ "ProductOffering":"#/components/schemas/ProductOffering", "ProductOfferingOracle":"#/components/schemas/ProductOfferingOracle" } }
    Represents entities that are orderable from the provider of the catalog. This resource includes pricing information.
  • Discriminator: @type
    Discriminator: { "propertyName":"@type", "mapping":{ "ProductOfferingOracle":"#/components/schemas/ProductOfferingOracle" } }
Nested Schema : Discriminator: @type
Type: object
Discriminator: @type

Discriminator Values

Represents entities that are orderable from the provider of the catalog. This resource includes pricing information.
Show Source
Nested Schema : Discriminator: @type
Type: object
Discriminator: @type

Discriminator Values

Show Source

400 Response

The server cannot process the request due to a client error.
Body ()
Root Schema : Error
Type: object
Used when an API throws an error, typically with an HTTP error response-code.
Show Source

401 Response

The user's authentication credentials for the target resource are invalid.
Body ()
Root Schema : Error
Type: object
Used when an API throws an error, typically with an HTTP error response-code.
Show Source

404 Response

The requested resource was not found, but it could be accessible in the future. Subsequent client requests are permitted.
Body ()
Root Schema : Error
Type: object
Used when an API throws an error, typically with an HTTP error response-code.
Show Source

405 Response

The requested resource does not support the particular request method.
Body ()
Root Schema : Error
Type: object
Used when an API throws an error, typically with an HTTP error response-code.
Show Source

500 Response

When an unexpected condition is identified and no specific message is appropriate, this generic error message is displayed.
Body ()
Root Schema : Error
Type: object
Used when an API throws an error, typically with an HTTP error response-code.
Show Source
Back to Top

Examples

This example shows how to add startDateTime and endDateTime for a product offering by submitting a PATCH request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X PATCH 'http://hostname:port/productCatalogManagement/v4/productOffering/OnetimeOffer1210'

Example of the Request Body

The following example shows the contents of the request body in JSON format for the one time offer.

{       "@type": "ProductOfferingOracle",   
        "validFor": {   
              "endDateTime": "2023-03-08T00:33:55Z",       
              "startDateTime": "2023-03-03T00:33:50Z"   
      } 
}

Example of the Response Body

The following example shows the contents of the response body in JSON format for the one time offer.
{
    "atBaseType": "ProductOffering",
    "atType": "ProductOfferingOracle",
    "description": "OnetimeOffer1210",
    "href": "/productCatalogManagement/v4/productOffering/OnetimeOffer1210",
    "id": "OnetimeOffer1210",
    "isBundle": false,
    "isSellable": false,
    "lastUpdate": "2023-11-30T22:05:16Z",
    "lifecycleStatus": "Active",
    "name": "OnetimeOffer1210",
    "productOfferingPrice": [
        {
            "atType": "ProductOfferingPriceRefOracle",
            "href": "/productCatalogManagement/v4/productOfferingPrice/OnetimeOfferPrice1210",
            "id": "OnetimeOfferPrice1210",
            "name": "OnetimeOfferPrice1210"
        }
    ],
    "serviceCandidate": {
        "atReferredType": "ServiceCandidate",
        "atType": "ServiceCandidateRef",
        "id": "TelcoGsm",
        "name": "TelcoGsm"
    },
    "validFor": {
        "endDateTime": "2023-03-08T00:33:55Z",
        "startDateTime": "2023-03-03T00:33:50Z"
    },
    "version": "1.0"
}
Back to Top