POST api/SubProject/TitleExists
Indicate if there is a child subproject with the specified name.
Request Information
URI Parameters
None.
Body Parameters
TitleExistsBinderName | Description | Type | Additional information |
---|---|---|---|
ProjectId | integer |
None. |
|
ParentSubProjectId | integer |
None. |
|
Titles | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProjectId": 1, "ParentSubProjectId": 2, "Titles": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<TitleExistsBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <ParentSubProjectId>2</ParentSubProjectId> <ProjectId>1</ProjectId> <Titles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Titles> </TitleExistsBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Indicate if there is a child subproject with the specified name.
API_Data_DictionaryOfStringAndBooleanName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | Dictionary of string [key] and boolean [value] |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": { "sample string 1": true, "sample string 3": true } }
application/xml, text/xml
Sample:
<API_Data_ArrayOfKeyValueOfstringboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common"> <Data xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringboolean> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value>true</d2p1:Value> </d2p1:KeyValueOfstringboolean> <d2p1:KeyValueOfstringboolean> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value>true</d2p1:Value> </d2p1:KeyValueOfstringboolean> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_ArrayOfKeyValueOfstringboolean>