POST api/WorkFunctions/PostWorkFunction

Request Information

URI Parameters

None.

Body Parameters

WorkFunction
NameDescriptionTypeAdditional information
WorkFunctionId

integer

None.

WorkFunctionName

string

None.

LastChanged

date

None.

LastChange_AuthorId

integer

None.

CompanyId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "WorkFunctionId": 1,
  "WorkFunctionName": "sample string 2",
  "LastChanged": "2025-08-14T03:10:29.0669781+00:00",
  "LastChange_AuthorId": 1,
  "CompanyId": 4
}

application/xml, text/xml

Sample:
<WorkFunction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models">
  <CompanyId>4</CompanyId>
  <LastChange_AuthorId>1</LastChange_AuthorId>
  <LastChanged>2025-08-14T03:10:29.0669781+00:00</LastChanged>
  <WorkFunctionId>1</WorkFunctionId>
  <WorkFunctionName>sample string 2</WorkFunctionName>
</WorkFunction>

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

Response Information

Resource Description

WorkFunction
NameDescriptionTypeAdditional information
WorkFunctionId

integer

None.

WorkFunctionName

string

None.

LastChanged

date

None.

LastChange_AuthorId

integer

None.

CompanyId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "WorkFunctionId": 1,
  "WorkFunctionName": "sample string 2",
  "LastChanged": "2025-08-14T03:10:29.0669781+00:00",
  "LastChange_AuthorId": 1,
  "CompanyId": 4
}

application/xml, text/xml

Sample:
<WorkFunction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models">
  <CompanyId>4</CompanyId>
  <LastChange_AuthorId>1</LastChange_AuthorId>
  <LastChanged>2025-08-14T03:10:29.0669781+00:00</LastChanged>
  <WorkFunctionId>1</WorkFunctionId>
  <WorkFunctionName>sample string 2</WorkFunctionName>
</WorkFunction>