POST Api/PreferedWorkTypes
Dodaje asynchronicznie nowy obiekt PreferedWorkType do bazy danych
Request Information
URI Parameters
None.
Body Parameters
nowy obiekt
PreferedWorkTypeDtoName | Description | Type | Additional information |
---|---|---|---|
PreferedWorkTypeId | integer |
Required |
|
WorkTypeId | integer |
Required |
|
ProfileId | string |
Required |
Request Formats
application/json, text/json
Sample:
{ "preferedWorkTypeId": 1, "workTypeId": 2, "profileId": "sample string 3" }
multipart/form-data
Sample:
{"preferedWorkTypeId":1,"workTypeId":2,"profileId":"sample string 3"}
application/xml, text/xml
Sample:
<PreferedWorkTypeDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <PreferedWorkTypeId>1</PreferedWorkTypeId> <WorkTypeId>2</WorkTypeId> <ProfileId>sample string 3</ProfileId> </PreferedWorkTypeDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
identyfikator nowo dodanego obiektu
PreferedWorkTypeDtoName | Description | Type | Additional information |
---|---|---|---|
PreferedWorkTypeId | integer |
Required |
|
WorkTypeId | integer |
Required |
|
ProfileId | string |
Required |
Response Formats
application/json, text/json
Sample:
{ "preferedWorkTypeId": 1, "workTypeId": 2, "profileId": "sample string 3" }
multipart/form-data
Sample:
{"preferedWorkTypeId":1,"workTypeId":2,"profileId":"sample string 3"}
application/xml, text/xml
Sample:
<PreferedWorkTypeDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <PreferedWorkTypeId>1</PreferedWorkTypeId> <WorkTypeId>2</WorkTypeId> <ProfileId>sample string 3</ProfileId> </PreferedWorkTypeDto>