POST api/Employee

Request Information

URI Parameters

None.

Body Parameters

RequestEmployee
NameDescriptionTypeAdditional information
EmployeeId

integer

None.

Name

string

None.

Password

string

None.

CURP

string

None.

EmpresaId

integer

None.

PhoneNumber

string

None.

Email

string

None.

Status

integer

None.

LstLockers

Collection of Locker

None.

LstEmployees

Collection of Employee

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1,
  "Name": "sample string 2",
  "Password": "sample string 3",
  "CURP": "sample string 4",
  "EmpresaId": 5,
  "PhoneNumber": "sample string 6",
  "Email": "sample string 7",
  "Status": 8,
  "LstLockers": [
    {
      "LockerId": 1,
      "LockerKey": "sample string 2",
      "Location": "sample string 3",
      "Url": "sample string 4",
      "Status": 5,
      "Comments": "sample string 6",
      "CreationDate": "2025-10-26T14:47:40.2617887-06:00",
      "LastUpdate": "2025-10-26T14:47:40.2617887-06:00",
      "TotalDoors": 9
    },
    {
      "LockerId": 1,
      "LockerKey": "sample string 2",
      "Location": "sample string 3",
      "Url": "sample string 4",
      "Status": 5,
      "Comments": "sample string 6",
      "CreationDate": "2025-10-26T14:47:40.2617887-06:00",
      "LastUpdate": "2025-10-26T14:47:40.2617887-06:00",
      "TotalDoors": 9
    }
  ],
  "LstEmployees": [
    {
      "EmployeeId": 1,
      "Name": "sample string 2",
      "Password": "sample string 3",
      "Vat": "sample string 4",
      "EmpresaId": 5,
      "PhoneNumber": "sample string 6",
      "Email": "sample string 7",
      "Status": 8,
      "CreationDate": "2025-10-26T14:47:40.2617887-06:00",
      "LastUpdate": "2025-10-26T14:47:40.2617887-06:00"
    },
    {
      "EmployeeId": 1,
      "Name": "sample string 2",
      "Password": "sample string 3",
      "Vat": "sample string 4",
      "EmpresaId": 5,
      "PhoneNumber": "sample string 6",
      "Email": "sample string 7",
      "Status": 8,
      "CreationDate": "2025-10-26T14:47:40.2617887-06:00",
      "LastUpdate": "2025-10-26T14:47:40.2617887-06:00"
    }
  ]
}

application/xml, text/xml

Sample:
<RequestEmployee xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MLO.SmartLockers.WEB.Models.Request">
  <CURP>sample string 4</CURP>
  <Email>sample string 7</Email>
  <EmployeeId>1</EmployeeId>
  <EmpresaId>5</EmpresaId>
  <LstEmployees xmlns:d2p1="http://schemas.datacontract.org/2004/07/MLO.SmartLockers.WEB.Models">
    <d2p1:Employee>
      <d2p1:CreationDate>2025-10-26T14:47:40.2617887-06:00</d2p1:CreationDate>
      <d2p1:Email>sample string 7</d2p1:Email>
      <d2p1:EmployeeId>1</d2p1:EmployeeId>
      <d2p1:EmpresaId>5</d2p1:EmpresaId>
      <d2p1:LastUpdate>2025-10-26T14:47:40.2617887-06:00</d2p1:LastUpdate>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Password>sample string 3</d2p1:Password>
      <d2p1:PhoneNumber>sample string 6</d2p1:PhoneNumber>
      <d2p1:Status>8</d2p1:Status>
      <d2p1:Vat>sample string 4</d2p1:Vat>
    </d2p1:Employee>
    <d2p1:Employee>
      <d2p1:CreationDate>2025-10-26T14:47:40.2617887-06:00</d2p1:CreationDate>
      <d2p1:Email>sample string 7</d2p1:Email>
      <d2p1:EmployeeId>1</d2p1:EmployeeId>
      <d2p1:EmpresaId>5</d2p1:EmpresaId>
      <d2p1:LastUpdate>2025-10-26T14:47:40.2617887-06:00</d2p1:LastUpdate>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Password>sample string 3</d2p1:Password>
      <d2p1:PhoneNumber>sample string 6</d2p1:PhoneNumber>
      <d2p1:Status>8</d2p1:Status>
      <d2p1:Vat>sample string 4</d2p1:Vat>
    </d2p1:Employee>
  </LstEmployees>
  <LstLockers xmlns:d2p1="http://schemas.datacontract.org/2004/07/MLO.SmartLockers.WEB.Models">
    <d2p1:Locker>
      <d2p1:Comments>sample string 6</d2p1:Comments>
      <d2p1:CreationDate>2025-10-26T14:47:40.2617887-06:00</d2p1:CreationDate>
      <d2p1:LastUpdate>2025-10-26T14:47:40.2617887-06:00</d2p1:LastUpdate>
      <d2p1:Location>sample string 3</d2p1:Location>
      <d2p1:LockerId>1</d2p1:LockerId>
      <d2p1:LockerKey>sample string 2</d2p1:LockerKey>
      <d2p1:Status>5</d2p1:Status>
      <d2p1:TotalDoors>9</d2p1:TotalDoors>
      <d2p1:Url>sample string 4</d2p1:Url>
    </d2p1:Locker>
    <d2p1:Locker>
      <d2p1:Comments>sample string 6</d2p1:Comments>
      <d2p1:CreationDate>2025-10-26T14:47:40.2617887-06:00</d2p1:CreationDate>
      <d2p1:LastUpdate>2025-10-26T14:47:40.2617887-06:00</d2p1:LastUpdate>
      <d2p1:Location>sample string 3</d2p1:Location>
      <d2p1:LockerId>1</d2p1:LockerId>
      <d2p1:LockerKey>sample string 2</d2p1:LockerKey>
      <d2p1:Status>5</d2p1:Status>
      <d2p1:TotalDoors>9</d2p1:TotalDoors>
      <d2p1:Url>sample string 4</d2p1:Url>
    </d2p1:Locker>
  </LstLockers>
  <Name>sample string 2</Name>
  <Password>sample string 3</Password>
  <PhoneNumber>sample string 6</PhoneNumber>
  <Status>8</Status>
</RequestEmployee>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.