POST api/Organization/AddMainDepartments

Request Information

URI Parameters

None.

Body Parameters

MainDepartments
NameDescriptionTypeAdditional information
id

integer

None.

deptname

string

None.

deptcode

string

None.

description

string

None.

startdate

date

None.

country

integer

None.

state

integer

None.

city

integer

None.

address1

string

None.

address2

string

None.

address3

string

None.

timezone

integer

None.

depthead

integer

None.

unitid

integer

None.

createdby

integer

None.

modifiedby

integer

None.

createddate

date

None.

modifieddate

date

None.

isactive

integer

None.

StatusMessage

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "deptname": "sample string 2",
  "deptcode": "sample string 3",
  "description": "sample string 4",
  "startdate": "2019-06-18T01:46:03.364-04:00",
  "country": 1,
  "state": 1,
  "city": 1,
  "address1": "sample string 5",
  "address2": "sample string 6",
  "address3": "sample string 7",
  "timezone": 1,
  "depthead": 1,
  "unitid": 1,
  "createdby": 1,
  "modifiedby": 1,
  "createddate": "2019-06-18T01:46:03.365-04:00",
  "modifieddate": "2019-06-18T01:46:03.365-04:00",
  "isactive": 1,
  "StatusMessage": "sample string 8"
}

text/html

Sample:
{"id":1,"deptname":"sample string 2","deptcode":"sample string 3","description":"sample string 4","startdate":"2019-06-18T01:46:03.364-04:00","country":1,"state":1,"city":1,"address1":"sample string 5","address2":"sample string 6","address3":"sample string 7","timezone":1,"depthead":1,"unitid":1,"createdby":1,"modifiedby":1,"createddate":"2019-06-18T01:46:03.365-04:00","modifieddate":"2019-06-18T01:46:03.365-04:00","isactive":1,"StatusMessage":"sample string 8"}

application/xml, text/xml

Sample:
<MainDepartments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RtsDb.Service.Models.Organization">
  <StatusMessage>sample string 8</StatusMessage>
  <address1>sample string 5</address1>
  <address2>sample string 6</address2>
  <address3>sample string 7</address3>
  <city>1</city>
  <country>1</country>
  <createdby>1</createdby>
  <createddate>2019-06-18T01:46:03.365-04:00</createddate>
  <deptcode>sample string 3</deptcode>
  <depthead>1</depthead>
  <deptname>sample string 2</deptname>
  <description>sample string 4</description>
  <id>1</id>
  <isactive>1</isactive>
  <modifiedby>1</modifiedby>
  <modifieddate>2019-06-18T01:46:03.365-04:00</modifieddate>
  <startdate>2019-06-18T01:46:03.364-04:00</startdate>
  <state>1</state>
  <timezone>1</timezone>
  <unitid>1</unitid>
</MainDepartments>

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 'MainDepartments'.

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.