POST item-builder/properties/add-enum

Adds an enum property.

Request Information

URI

https://xait-api.xaitcpq.net/item-builder/properties/add-enum

URI Parameters

None.

Body Parameters

The property.

AddEnumProperty
NameDescriptionTypeAdditional 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": "ddfb5257-0975-4655-801c-b21a0aade1a9",
      "Graphic": "d6f23bef-2bd5-4abf-b17d-f29d7583eb8b"
    },
    {
      "Name": "sample string 1",
      "Value": "sample string 2",
      "IPN": "sample string 3",
      "Order": 4,
      "Part": "ddfb5257-0975-4655-801c-b21a0aade1a9",
      "Graphic": "d6f23bef-2bd5-4abf-b17d-f29d7583eb8b"
    }
  ]
}

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":"ddfb5257-0975-4655-801c-b21a0aade1a9","Graphic":"d6f23bef-2bd5-4abf-b17d-f29d7583eb8b"},{"Name":"sample string 1","Value":"sample string 2","IPN":"sample string 3","Order":4,"Part":"ddfb5257-0975-4655-801c-b21a0aade1a9","Graphic":"d6f23bef-2bd5-4abf-b17d-f29d7583eb8b"}]}

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>d6f23bef-2bd5-4abf-b17d-f29d7583eb8b</d2p1:Graphic>
      <d2p1:IPN>sample string 3</d2p1:IPN>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Order>4</d2p1:Order>
      <d2p1:Part>ddfb5257-0975-4655-801c-b21a0aade1a9</d2p1:Part>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:AddEnumPropertyValue>
    <d2p1:AddEnumPropertyValue>
      <d2p1:Graphic>d6f23bef-2bd5-4abf-b17d-f29d7583eb8b</d2p1:Graphic>
      <d2p1:IPN>sample string 3</d2p1:IPN>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Order>4</d2p1:Order>
      <d2p1:Part>ddfb5257-0975-4655-801c-b21a0aade1a9</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 identifier

Response Formats

application/json, text/json, text/html

Sample:
"17dc9b48-3728-405b-898f-05638bb70dab"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">17dc9b48-3728-405b-898f-05638bb70dab</guid>