POST Department/addDepartment?user_id={user_id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
user_id

integer

Required

Body Parameters

DepartmentData
NameDescriptionTypeAdditional information
dept_id

integer

None.

dept_name

string

None.

industry_id

integer

None.

industry

string

None.

company_id

integer

None.

company

string

None.

tags

string

None.

Request Formats

application/json, text/json

Sample:
{
  "dept_id": 1,
  "dept_name": "sample string 2",
  "industry_id": 3,
  "industry": "sample string 4",
  "company_id": 5,
  "company": "sample string 6",
  "tags": "sample string 7"
}

application/xml, text/xml

Sample:
<DepartmentData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OffshorePlacementsAPI.Models">
  <company>sample string 6</company>
  <company_id>5</company_id>
  <dept_id>1</dept_id>
  <dept_name>sample string 2</dept_name>
  <industry>sample string 4</industry>
  <industry_id>3</industry_id>
  <tags>sample string 7</tags>
</DepartmentData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

UserResponse
NameDescriptionTypeAdditional information
status

string

None.

remarks

string

None.

id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "status": "sample string 1",
  "remarks": "sample string 2",
  "id": 3
}

application/xml, text/xml

Sample:
<UserResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OffshorePlacementsAPI.Models">
  <id>3</id>
  <remarks>sample string 2</remarks>
  <status>sample string 1</status>
</UserResponse>