POST api/TeamHierarchy/EditOrAdd

if Team Hierarchy FID exists then edit the Team Hierarchy info, or create a new Team Hierarchy.

Request Information

URI Parameters

None.

Body Parameters

Team Hierarchy info, If info.FID doesn't exist, A new Team Hierarchy will be created.

TTeamHierarchy
NameDescriptionTypeAdditional information
ScopeName

string

None.

ParentScopeName

string

None.

ParentFID

string

None.

DefaultManageName

string

None.

FID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ScopeName": "sample string 1",
  "ParentScopeName": "sample string 2",
  "ParentFID": "sample string 3",
  "DefaultManageName": "sample string 4",
  "FID": "sample string 5"
}

application/xml, text/xml

Sample:
<TTeamHierarchy xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.SystemManage">
  <DefaultManageName>sample string 4</DefaultManageName>
  <FID>sample string 5</FID>
  <ParentFID>sample string 3</ParentFID>
  <ParentScopeName>sample string 2</ParentScopeName>
  <ScopeName>sample string 1</ScopeName>
</TTeamHierarchy>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

if Team Hierarchy FID exists then edit the Team Hierarchy info, or create a new Team Hierarchy.

API_Data_Int32
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": 2
}

application/xml, text/xml

Sample:
<API_Data_int xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data>2</Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_int>