POST item-builder/properties/add-enum
Adds an enum property.
Request Information
URI
https://highlandfleets-api.xaitcpq.net/item-builder/properties/add-enum
URI Parameters
None.
Body Parameters
The property.
AddEnumProperty| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| Type | integer |
None. |
|
| Values | Collection of AddEnumPropertyValue |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"Type": 2,
"Values": [
{
"Name": "sample string 1",
"Value": "sample string 2",
"IPN": "sample string 3",
"Order": 4,
"Part": "2bb5ade4-a1ba-4ac5-a3b0-043c2e0dd0a1",
"Graphic": "7ba7bdc1-f138-41a2-90c2-bcc9bc0718ed"
},
{
"Name": "sample string 1",
"Value": "sample string 2",
"IPN": "sample string 3",
"Order": 4,
"Part": "2bb5ade4-a1ba-4ac5-a3b0-043c2e0dd0a1",
"Graphic": "7ba7bdc1-f138-41a2-90c2-bcc9bc0718ed"
}
]
}
text/html
Sample:
{"Name":"sample string 1","Type":2,"Values":[{"Name":"sample string 1","Value":"sample string 2","IPN":"sample string 3","Order":4,"Part":"2bb5ade4-a1ba-4ac5-a3b0-043c2e0dd0a1","Graphic":"7ba7bdc1-f138-41a2-90c2-bcc9bc0718ed"},{"Name":"sample string 1","Value":"sample string 2","IPN":"sample string 3","Order":4,"Part":"2bb5ade4-a1ba-4ac5-a3b0-043c2e0dd0a1","Graphic":"7ba7bdc1-f138-41a2-90c2-bcc9bc0718ed"}]}
application/xml, text/xml
Sample:
<AddEnumProperty xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shared.Models.DataModels">
<Name>sample string 1</Name>
<Type>2</Type>
<Values xmlns:d2p1="http://schemas.datacontract.org/2004/07/Shared.Models">
<d2p1:AddEnumPropertyValue>
<d2p1:Graphic>7ba7bdc1-f138-41a2-90c2-bcc9bc0718ed</d2p1:Graphic>
<d2p1:IPN>sample string 3</d2p1:IPN>
<d2p1:Name>sample string 1</d2p1:Name>
<d2p1:Order>4</d2p1:Order>
<d2p1:Part>2bb5ade4-a1ba-4ac5-a3b0-043c2e0dd0a1</d2p1:Part>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:AddEnumPropertyValue>
<d2p1:AddEnumPropertyValue>
<d2p1:Graphic>7ba7bdc1-f138-41a2-90c2-bcc9bc0718ed</d2p1:Graphic>
<d2p1:IPN>sample string 3</d2p1:IPN>
<d2p1:Name>sample string 1</d2p1:Name>
<d2p1:Order>4</d2p1:Order>
<d2p1:Part>2bb5ade4-a1ba-4ac5-a3b0-043c2e0dd0a1</d2p1:Part>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:AddEnumPropertyValue>
</Values>
</AddEnumProperty>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
A GUID.
globally unique identifierResponse Formats
application/json, text/json, text/html
Sample:
"2c17b425-0d07-41b6-a008-b036ee502aeb"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2c17b425-0d07-41b6-a008-b036ee502aeb</guid>