POST Api/TypeOfContractAttributes

Dodaje asynchronicznie nowy obiekt TypeOfContractAttribute do bazy danych

Request Information

URI Parameters

None.

Body Parameters

nowy obiekt

TypeOfContractAttributeDto
NameDescriptionTypeAdditional information
TypeOfContractAttributeId

integer

Required

OrganizationalUnitId

integer

Required

Name

string

Required

TypeOfAttributeId

integer

Required

DefaultValue

string

None.

ListOfValues

string

None.

Request Formats

application/json, text/json

Sample:
{
  "typeOfContractAttributeId": 1,
  "organizationalUnitId": 2,
  "name": "sample string 3",
  "typeOfAttributeId": 4,
  "defaultValue": "sample string 5",
  "listOfValues": "sample string 6"
}

multipart/form-data

Sample:
{"typeOfContractAttributeId":1,"organizationalUnitId":2,"name":"sample string 3","typeOfAttributeId":4,"defaultValue":"sample string 5","listOfValues":"sample string 6"}

application/xml, text/xml

Sample:
<TypeOfContractAttributeDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <TypeOfContractAttributeId>1</TypeOfContractAttributeId>
  <OrganizationalUnitId>2</OrganizationalUnitId>
  <Name>sample string 3</Name>
  <TypeOfAttributeId>4</TypeOfAttributeId>
  <DefaultValue>sample string 5</DefaultValue>
  <ListOfValues>sample string 6</ListOfValues>
</TypeOfContractAttributeDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

identyfikator nowo dodanego obiektu

TypeOfContractAttributeDto
NameDescriptionTypeAdditional information
TypeOfContractAttributeId

integer

Required

OrganizationalUnitId

integer

Required

Name

string

Required

TypeOfAttributeId

integer

Required

DefaultValue

string

None.

ListOfValues

string

None.

Response Formats

application/json, text/json

Sample:
{
  "typeOfContractAttributeId": 1,
  "organizationalUnitId": 2,
  "name": "sample string 3",
  "typeOfAttributeId": 4,
  "defaultValue": "sample string 5",
  "listOfValues": "sample string 6"
}

multipart/form-data

Sample:
{"typeOfContractAttributeId":1,"organizationalUnitId":2,"name":"sample string 3","typeOfAttributeId":4,"defaultValue":"sample string 5","listOfValues":"sample string 6"}

application/xml, text/xml

Sample:
<TypeOfContractAttributeDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <TypeOfContractAttributeId>1</TypeOfContractAttributeId>
  <OrganizationalUnitId>2</OrganizationalUnitId>
  <Name>sample string 3</Name>
  <TypeOfAttributeId>4</TypeOfAttributeId>
  <DefaultValue>sample string 5</DefaultValue>
  <ListOfValues>sample string 6</ListOfValues>
</TypeOfContractAttributeDto>