POST api/settings/NewOption
Request Information
URI Parameters
None.
Body Parameters
OptionViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Code | string |
None. |
|
| Label | string |
Required |
|
| Description | string |
None. |
|
| Created | date |
None. |
|
| Enabled | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Code": "sample string 2",
"Label": "sample string 3",
"Description": "sample string 4",
"Created": "2026-01-02T17:31:27.0802523+00:00",
"Enabled": true
}
application/xml, text/xml
Sample:
<OptionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DeliveryCore.ViewModels"> <Code>sample string 2</Code> <Created>2026-01-02T17:31:27.0802523+00:00</Created> <Description>sample string 4</Description> <Enabled>true</Enabled> <Id>1</Id> <Label>sample string 3</Label> </OptionViewModel>
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.