POST api/ChildFieldChoiceList
Request Information
URI Parameters
None.
Body Parameters
GetChildFieldChoiceBinderName | Description | Type | Additional information |
---|---|---|---|
ProjectId | integer |
None. |
|
MasterFieldId | integer |
None. |
|
MasterFieldChoiceId | integer |
None. |
|
MasterFieldChoiceIds | Collection of integer |
None. |
|
ChildFieldIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProjectId": 1, "MasterFieldId": 2, "MasterFieldChoiceId": 3, "MasterFieldChoiceIds": [ 1, 2 ], "ChildFieldIds": [ 1, 2 ] }
application/xml, text/xml
Sample:
<GetChildFieldChoiceBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <ChildFieldIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </ChildFieldIds> <MasterFieldChoiceId>3</MasterFieldChoiceId> <MasterFieldChoiceIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </MasterFieldChoiceIds> <MasterFieldId>2</MasterFieldId> <ProjectId>1</ProjectId> </GetChildFieldChoiceBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
API_Data_ListOfFieldChoiceListName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | Collection of FieldChoiceList |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": [ { "Field": { "Id": 1, "Name": "sample string 2" }, "Choices": [ { "Id": 1, "Name": "sample string 2", "IsActive": true }, { "Id": 1, "Name": "sample string 2", "IsActive": true } ] }, { "Field": { "Id": 1, "Name": "sample string 2" }, "Choices": [ { "Id": 1, "Name": "sample string 2", "IsActive": true }, { "Id": 1, "Name": "sample string 2", "IsActive": true } ] } ] }
application/xml, text/xml
Sample:
<API_Data_ArrayOfFieldChoiceList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common"> <Data> <FieldChoiceList> <Choices> <ChoiceObject> <Id>1</Id> <IsActive>true</IsActive> <Name>sample string 2</Name> </ChoiceObject> <ChoiceObject> <Id>1</Id> <IsActive>true</IsActive> <Name>sample string 2</Name> </ChoiceObject> </Choices> <Field> <Id>1</Id> <Name>sample string 2</Name> </Field> </FieldChoiceList> <FieldChoiceList> <Choices> <ChoiceObject> <Id>1</Id> <IsActive>true</IsActive> <Name>sample string 2</Name> </ChoiceObject> <ChoiceObject> <Id>1</Id> <IsActive>true</IsActive> <Name>sample string 2</Name> </ChoiceObject> </Choices> <Field> <Id>1</Id> <Name>sample string 2</Name> </Field> </FieldChoiceList> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_ArrayOfFieldChoiceList>