Skip to content

Update an existing ProductType Record

Request

Update an existing ProductType record to the system based on the provided ProductType details.

Security
Bearer
Bodyapplication/jsonrequired

The ProductType payload

productTypeIdstring or null

Gets or sets the product type code or identifier.

Example:"PT001"
productGroupIdstring, (uuid)required

Gets or sets the unique identifier of the associated product group.

Example:"5fa85f64-5717-4562-b3fc-2c963f66afa6"
namestring, non-emptyrequired

Gets or sets the name of the product type.

Example:"Smartphones"
descriptionstring or null

Gets or sets the description of the product type.

Example:"Includes Android and iOS based smartphones."
guidstring, (uuid)

Gets or sets the globally unique identifier of the product type.

Example:"2d7c9a45-6c51-4b6a-9f12-123456789abc"
curl -i -X PUT \
  https://developer.sustainabilitymaster.ai/_mock/openapi/api/EnterpriseTables/ProductType \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "productTypeId": "PT001",
    "productGroupId": "5fa85f64-5717-4562-b3fc-2c963f66afa6",
    "name": "Smartphones",
    "description": "Includes Android and iOS based smartphones.",
    "guid": "2d7c9a45-6c51-4b6a-9f12-123456789abc"
  }'

Responses

Successfully added the ProductType record