Create product
POST {{baseUrl}}/api/v1/products
This API adds a product to your helpdesk.
OAuth Scope
Desk.products.CREATEDesk.settings.CREATE
Attributes
| Attribute Name | Data Type | Description |
|---|---|---|
| departmentIds (required) | <list> | IDs of departments associated with the product |
| ownerId | <long> | ID of user to whom the product is assigned |
| productName (required) | <string> max chars : 200 | Name of the product |
| productCode | <string> max chars : 200 | Reference code of the product |
| productCategory | <string> max chars : 200 | Category to which the product belongs |
| manufacturer | <string> max chars : 200 | Organization that manufactures the product |
| unitPrice | <double> | Price of the product |
| customFields | <list> | User-defined fields related to the product |
| cf | <list> | User-defined fields related to the product |
| description | <string> max chars : 65535 | Description of the product |
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"unitPrice":"100.0","modifiedTime":"2017-07-18T10:46:25.667Z","cf":{},"description":null,"departmentIds":["6000000007239","6000000029263"],"ownerId":"6000000009050","layoutId":"6000000002556","productName":"Dell","productCategory":null,"productCode":"12345","isDeleted":false,"createdBy":"6000000009050","createdTime":"2017-07-18T10:46:25.667Z","modifiedBy":"6000000009050","id":"6000000164001"}