POST Api/Qualifications

Dodaje asynchronicznie nowy obiekt Qualification do bazy danych

Request Information

URI Parameters

None.

Body Parameters

nowy obiekt

QualificationDto
NameDescriptionTypeAdditional information
QualificationId

integer

Required

OrganizationalUnitId

integer

Required

Name

string

Required

Description

string

None.

Color

string

Required

Icon

string

Required

NumberOfLevels

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "qualificationId": 1,
  "organizationalUnitId": 2,
  "name": "sample string 3",
  "description": "sample string 4",
  "color": "sample string 5",
  "icon": "sample string 6",
  "numberOfLevels": 7
}

multipart/form-data

Sample:
{"qualificationId":1,"organizationalUnitId":2,"name":"sample string 3","description":"sample string 4","color":"sample string 5","icon":"sample string 6","numberOfLevels":7}

application/xml, text/xml

Sample:
<QualificationDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <QualificationId>1</QualificationId>
  <OrganizationalUnitId>2</OrganizationalUnitId>
  <Name>sample string 3</Name>
  <Description>sample string 4</Description>
  <Color>sample string 5</Color>
  <Icon>sample string 6</Icon>
  <NumberOfLevels>7</NumberOfLevels>
</QualificationDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

identyfikator nowo dodanego obiektu

QualificationDto
NameDescriptionTypeAdditional information
QualificationId

integer

Required

OrganizationalUnitId

integer

Required

Name

string

Required

Description

string

None.

Color

string

Required

Icon

string

Required

NumberOfLevels

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "qualificationId": 1,
  "organizationalUnitId": 2,
  "name": "sample string 3",
  "description": "sample string 4",
  "color": "sample string 5",
  "icon": "sample string 6",
  "numberOfLevels": 7
}

multipart/form-data

Sample:
{"qualificationId":1,"organizationalUnitId":2,"name":"sample string 3","description":"sample string 4","color":"sample string 5","icon":"sample string 6","numberOfLevels":7}

application/xml, text/xml

Sample:
<QualificationDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <QualificationId>1</QualificationId>
  <OrganizationalUnitId>2</OrganizationalUnitId>
  <Name>sample string 3</Name>
  <Description>sample string 4</Description>
  <Color>sample string 5</Color>
  <Icon>sample string 6</Icon>
  <NumberOfLevels>7</NumberOfLevels>
</QualificationDto>