POST api/MapDepartments

Request Information

URI Parameters

None.

Body Parameters

MapWorkflowToDepartments
NameDescriptionTypeAdditional information
DepartmentIds

string

Required

TemplateId

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "DepartmentIds": "sample string 1",
  "TemplateId": 2
}

application/xml, text/xml

Sample:
<MapWorkflowToDepartments xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <DepartmentIds>sample string 1</DepartmentIds>
  <TemplateId>2</TemplateId>
</MapWorkflowToDepartments>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ReturnObjectOfInt64
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

Messages

Collection of string

None.

ErrorCode

integer

None.

Response

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "Messages": [
    "sample string 1",
    "sample string 2"
  ],
  "ErrorCode": 2,
  "Response": 3
}

application/xml, text/xml

Sample:
<ReturnObjectOfInt64 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <IsSuccess>true</IsSuccess>
  <Messages>
    <string>sample string 1</string>
    <string>sample string 2</string>
  </Messages>
  <ErrorCode>2</ErrorCode>
  <Response>3</Response>
</ReturnObjectOfInt64>