Skip to content

Add a new ProductType Record

Request

Adds a new ProductType record to the system based on the provided ProductType details.

Security
Bearer
Query
centerIdstring, (uuid)
Bodyapplication/jsonrequired

The ProductType payload

Array [
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."
]
curl -i -X POST \
  'https://developer.sustainabilitymaster.ai/_mock/openapi/api/EnterpriseTables/ProductType?centerId=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -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."
    }
  ]'

Responses

Successfully added the ProductType record