POST api/products/upsert
Request Information
URI Parameters
None.
Body Parameters
ProductUpsertDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| UID | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| WebhookUrl | string |
None. |
|
| IsEnabled | boolean |
None. |
|
| IsValid | boolean |
None. |
|
| Result | boolean |
None. |
|
| Chat | boolean |
None. |
|
| ToolKey | string |
None. |
|
| ToolConfigJson | string |
None. |
|
| ToolUIType | integer |
None. |
|
| ToolUIVersion | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"UID": "07f11e2f-2e19-4f01-850e-bd9e75b466d1",
"Name": "sample string 2",
"Description": "sample string 3",
"WebhookUrl": "sample string 4",
"IsEnabled": true,
"IsValid": true,
"Result": true,
"Chat": true,
"ToolKey": "sample string 9",
"ToolConfigJson": "sample string 10",
"ToolUIType": 11,
"ToolUIVersion": 12
}
application/xml, text/xml
Sample:
<ProductUpsertDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIProject.API.Models.DTO"> <Chat>true</Chat> <Description>sample string 3</Description> <IsEnabled>true</IsEnabled> <IsValid>true</IsValid> <Name>sample string 2</Name> <Result>true</Result> <ToolConfigJson>sample string 10</ToolConfigJson> <ToolKey>sample string 9</ToolKey> <ToolUIType>11</ToolUIType> <ToolUIVersion>12</ToolUIVersion> <UID>07f11e2f-2e19-4f01-850e-bd9e75b466d1</UID> <WebhookUrl>sample string 4</WebhookUrl> </ProductUpsertDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.