POST api/Field/SaveUserDefinedChoice

Request Information

URI Parameters

None.

Body Parameters

SaveUserDefinedChoiceBinder
NameDescriptionTypeAdditional information
ProjectId

integer

None.

FieldId

integer

None.

ChoiceId

If ChoiceId equals 0, create a new choice. If ChoiceId doesn't equals 0, rename an existed choice

integer

None.

ChoiceName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "FieldId": 2,
  "ChoiceId": 3,
  "ChoiceName": "sample string 4"
}

application/xml, text/xml

Sample:
<SaveUserDefinedChoiceBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <ChoiceId>3</ChoiceId>
  <ChoiceName>sample string 4</ChoiceName>
  <FieldId>2</FieldId>
  <ProjectId>1</ProjectId>
</SaveUserDefinedChoiceBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.