POST api/grp/GroupDepartment?locationAccountNumber={locationAccountNumber}&name={name}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
locationAccountNumber

string

Required

name

string

Required

Body Parameters

GroupDepartmentDTO
NameDescriptionTypeAdditional information
Name

string

None.

FullPathName

string

None.

ParentDepartment

DepartmentKeyDTO

None.

CallingLineIdName

string

None.

CallingLineIdPhoneNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "FullPathName": "sample string 2",
  "ParentDepartment": {
    "DepartmentName": "sample string 1",
    "IsEnterprise": true,
    "FullPathName": "sample string 3"
  },
  "CallingLineIdName": "sample string 3",
  "CallingLineIdPhoneNumber": "sample string 4"
}

application/xml, text/xml

Sample:
<GroupDepartmentDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSPApi.DTO.Group">
  <CallingLineIdName>sample string 3</CallingLineIdName>
  <CallingLineIdPhoneNumber>sample string 4</CallingLineIdPhoneNumber>
  <FullPathName>sample string 2</FullPathName>
  <Name>sample string 1</Name>
  <ParentDepartment xmlns:d2p1="http://schemas.datacontract.org/2004/07/MSPApi.DTO.Enterprise">
    <d2p1:DepartmentName>sample string 1</d2p1:DepartmentName>
    <d2p1:FullPathName>sample string 3</d2p1:FullPathName>
    <d2p1:IsEnterprise>true</d2p1:IsEnterprise>
  </ParentDepartment>
</GroupDepartmentDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GroupDepartmentDTO'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.