POST api/Employes/WithRole/{role}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
role | string |
Required |
Body Parameters
EmployesName | Description | Type | Additional information |
---|---|---|---|
EmployesId | integer |
None. |
|
FirstName | string |
None. |
|
LastName | string |
None. |
|
Sex | string |
None. |
|
HiredDate | date |
None. |
|
Workplace | string |
None. |
|
Login | string |
None. |
|
Telephone | string |
None. |
|
string |
None. |
||
SiteId | integer |
None. |
|
AspNetUserId | string |
None. |
|
CompanyId | integer |
None. |
|
CompanyRankId | integer |
None. |
|
WorkFamillyId | integer |
None. |
|
WorkFunctionId | integer |
None. |
|
LastChanged | date |
None. |
|
FirstConnexion | date |
None. |
|
LastConnexion | date |
None. |
|
Hobby | string |
None. |
|
LastChange_AuthorId | integer |
None. |
|
Token_Regeneration | boolean |
None. |
|
Display_Phone | boolean |
None. |
|
Display_Mail | boolean |
None. |
|
ByPass_Moderation | boolean |
None. |
|
Role | string |
None. |
|
UserTemplateId | globally unique identifier |
None. |
|
LanguageId | integer |
None. |
|
IsVisibleInApp | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "EmployesId": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "Sex": "sample string 4", "HiredDate": "2025-08-14T03:18:58.6974849+00:00", "Workplace": "sample string 5", "Login": "sample string 6", "Telephone": "sample string 7", "Mail": "sample string 8", "SiteId": 9, "AspNetUserId": "sample string 10", "CompanyId": 11, "CompanyRankId": 12, "WorkFamillyId": 13, "WorkFunctionId": 14, "LastChanged": "2025-08-14T03:18:58.6974849+00:00", "FirstConnexion": "2025-08-14T03:18:58.6974849+00:00", "LastConnexion": "2025-08-14T03:18:58.6974849+00:00", "Hobby": "sample string 16", "LastChange_AuthorId": 1, "Token_Regeneration": true, "Display_Phone": true, "Display_Mail": true, "ByPass_Moderation": true, "Role": "sample string 21", "UserTemplateId": "0b1e8b84-2018-4d0e-bfce-6867944d28bb", "LanguageId": 1, "IsVisibleInApp": true }
application/xml, text/xml
Sample:
<Employes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models"> <AspNetUserId>sample string 10</AspNetUserId> <ByPass_Moderation>true</ByPass_Moderation> <CompanyId>11</CompanyId> <CompanyRankId>12</CompanyRankId> <Display_Mail>true</Display_Mail> <Display_Phone>true</Display_Phone> <EmployesId>1</EmployesId> <FirstConnexion>2025-08-14T03:18:58.6974849+00:00</FirstConnexion> <FirstName>sample string 2</FirstName> <HiredDate>2025-08-14T03:18:58.6974849+00:00</HiredDate> <Hobby>sample string 16</Hobby> <IsVisibleInApp>true</IsVisibleInApp> <LanguageId>1</LanguageId> <LastChange_AuthorId>1</LastChange_AuthorId> <LastChanged>2025-08-14T03:18:58.6974849+00:00</LastChanged> <LastConnexion>2025-08-14T03:18:58.6974849+00:00</LastConnexion> <LastName>sample string 3</LastName> <Login>sample string 6</Login> <Mail>sample string 8</Mail> <Role>sample string 21</Role> <Sex>sample string 4</Sex> <SiteId>9</SiteId> <Telephone>sample string 7</Telephone> <Token_Regeneration>true</Token_Regeneration> <UserTemplateId>0b1e8b84-2018-4d0e-bfce-6867944d28bb</UserTemplateId> <WorkFamillyId>13</WorkFamillyId> <WorkFunctionId>14</WorkFunctionId> <Workplace>sample string 5</Workplace> </Employes>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
EmployesName | Description | Type | Additional information |
---|---|---|---|
EmployesId | integer |
None. |
|
FirstName | string |
None. |
|
LastName | string |
None. |
|
Sex | string |
None. |
|
HiredDate | date |
None. |
|
Workplace | string |
None. |
|
Login | string |
None. |
|
Telephone | string |
None. |
|
string |
None. |
||
SiteId | integer |
None. |
|
AspNetUserId | string |
None. |
|
CompanyId | integer |
None. |
|
CompanyRankId | integer |
None. |
|
WorkFamillyId | integer |
None. |
|
WorkFunctionId | integer |
None. |
|
LastChanged | date |
None. |
|
FirstConnexion | date |
None. |
|
LastConnexion | date |
None. |
|
Hobby | string |
None. |
|
LastChange_AuthorId | integer |
None. |
|
Token_Regeneration | boolean |
None. |
|
Display_Phone | boolean |
None. |
|
Display_Mail | boolean |
None. |
|
ByPass_Moderation | boolean |
None. |
|
Role | string |
None. |
|
UserTemplateId | globally unique identifier |
None. |
|
LanguageId | integer |
None. |
|
IsVisibleInApp | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "EmployesId": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "Sex": "sample string 4", "HiredDate": "2025-08-14T03:18:58.6974849+00:00", "Workplace": "sample string 5", "Login": "sample string 6", "Telephone": "sample string 7", "Mail": "sample string 8", "SiteId": 9, "AspNetUserId": "sample string 10", "CompanyId": 11, "CompanyRankId": 12, "WorkFamillyId": 13, "WorkFunctionId": 14, "LastChanged": "2025-08-14T03:18:58.6974849+00:00", "FirstConnexion": "2025-08-14T03:18:58.6974849+00:00", "LastConnexion": "2025-08-14T03:18:58.6974849+00:00", "Hobby": "sample string 16", "LastChange_AuthorId": 1, "Token_Regeneration": true, "Display_Phone": true, "Display_Mail": true, "ByPass_Moderation": true, "Role": "sample string 21", "UserTemplateId": "8363cefe-0e8d-40d8-9cdc-95d0df2241a9", "LanguageId": 1, "IsVisibleInApp": true }
application/xml, text/xml
Sample:
<Employes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models"> <AspNetUserId>sample string 10</AspNetUserId> <ByPass_Moderation>true</ByPass_Moderation> <CompanyId>11</CompanyId> <CompanyRankId>12</CompanyRankId> <Display_Mail>true</Display_Mail> <Display_Phone>true</Display_Phone> <EmployesId>1</EmployesId> <FirstConnexion>2025-08-14T03:18:58.6974849+00:00</FirstConnexion> <FirstName>sample string 2</FirstName> <HiredDate>2025-08-14T03:18:58.6974849+00:00</HiredDate> <Hobby>sample string 16</Hobby> <IsVisibleInApp>true</IsVisibleInApp> <LanguageId>1</LanguageId> <LastChange_AuthorId>1</LastChange_AuthorId> <LastChanged>2025-08-14T03:18:58.6974849+00:00</LastChanged> <LastConnexion>2025-08-14T03:18:58.6974849+00:00</LastConnexion> <LastName>sample string 3</LastName> <Login>sample string 6</Login> <Mail>sample string 8</Mail> <Role>sample string 21</Role> <Sex>sample string 4</Sex> <SiteId>9</SiteId> <Telephone>sample string 7</Telephone> <Token_Regeneration>true</Token_Regeneration> <UserTemplateId>8363cefe-0e8d-40d8-9cdc-95d0df2241a9</UserTemplateId> <WorkFamillyId>13</WorkFamillyId> <WorkFunctionId>14</WorkFunctionId> <Workplace>sample string 5</Workplace> </Employes>