POST v1/Employees

Add a new Employee. Note: setting ShopRoles and EmployeeGroups are not supported by this URI. Please use specific URIs to add/remove ShopRoles and EmployeeGroups.

Request Information

Requires Authorization!

URI Parameters

None.

Body Parameters

The EmployeeChanges object

EmployeeChanges
NameDescriptionTypeAdditional information
Password

Gets or sets the Password

string

Required

Max length: 100

PublicAlias

Gets or sets the PublicAlias

string

Max length: 50

TimeZone

Gets or sets the TimeZone

string

Max length: 50

BirthDate

Gets or sets the BirthDate

date

None.

Gender

Gets or sets the Gender

GenderEnum

None.

EmailAddress

Gets or sets the EmailAddress

string

Max length: 100

JobTitle

Gets or sets the JobTitle

string

Max length: 250

OfficeLocation

Gets or sets the OfficeLocation

string

Max length: 100

MobilePhone

Gets or sets the MobilePhone

string

Max length: 20

Ref1

Gets or sets the Reference1

string

Max length: 50

Ref2

Gets or sets the Reference2

string

Max length: 50

LoginCount

Gets or sets the LoginCount

integer

Required

LoginUserToken

Gets or sets the LoginUserToken

string

Max length: 40

PictureFileId

Gets or sets the PictureFileId

integer

None.

ShopRoles

Gets the ShopRoles

Collection of EmployeeShopRole

None.

EmployeeGroups

Gets or sets the EmployeeGroups

Collection of EmployeeGroup

None.

Id

Gets or sets the id

integer

Must be 0

FullName

Gets or sets the FullName

string

Required

Max length: 100

Login

Gets or sets the Login

string

Required

Max length: 50

Enabled

Gets or sets the Enabled status

boolean

Required

ShopOwnerId

Gets or sets the ShopOwnerId

integer

None.

ShopOwnerCompanyName

Gets or sets the ShopOwnerCompanyName

string

None.

IsAdmin

Gets or sets the IsAdmin

boolean

Required

IsShopOwnerAdmin

Gets or sets the IsShopOwnerAdmin

boolean

Required

LastLogin

Gets or sets the LastLogin date and time

date

None.

PhoneExtension

Gets or sets the Phone

string

Max length: 10

CultureId

Gets or sets the CultureId

integer

None.

CultureCode

Gets or sets the CultureCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Password": "sample string 1",
  "PublicAlias": "sample string 2",
  "TimeZone": "sample string 3",
  "BirthDate": "2021-12-02T20:19:32.73228+01:00",
  "Gender": 0,
  "EmailAddress": "sample string 4",
  "JobTitle": "sample string 5",
  "OfficeLocation": "sample string 6",
  "MobilePhone": "sample string 7",
  "Ref1": "sample string 8",
  "Ref2": "sample string 9",
  "LoginCount": 10,
  "LoginUserToken": "sample string 11",
  "PictureFileId": 1,
  "ShopRoles": [],
  "EmployeeGroups": [],
  "Id": 12,
  "FullName": "sample string 13",
  "Login": "sample string 14",
  "Enabled": true,
  "ShopOwnerId": 1,
  "ShopOwnerCompanyName": "sample string 16",
  "IsAdmin": true,
  "IsShopOwnerAdmin": true,
  "LastLogin": "2021-12-02T20:19:32.7478985+01:00",
  "PhoneExtension": "sample string 19",
  "CultureId": 1,
  "CultureCode": "sample string 20"
}

application/xml, text/xml

Sample:
<EmployeeChanges xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>12</Id>
  <FullName>sample string 13</FullName>
  <Login>sample string 14</Login>
  <Enabled>true</Enabled>
  <ShopOwnerId>1</ShopOwnerId>
  <ShopOwnerCompanyName>sample string 16</ShopOwnerCompanyName>
  <IsAdmin>true</IsAdmin>
  <IsShopOwnerAdmin>true</IsShopOwnerAdmin>
  <LastLogin>2021-12-02T20:19:32.7478985+01:00</LastLogin>
  <PhoneExtension>sample string 19</PhoneExtension>
  <CultureId>1</CultureId>
  <CultureCode>sample string 20</CultureCode>
  <PublicAlias>sample string 2</PublicAlias>
  <TimeZone>sample string 3</TimeZone>
  <BirthDate>2021-12-02T20:19:32.73228+01:00</BirthDate>
  <Gender>Unknown</Gender>
  <EmailAddress>sample string 4</EmailAddress>
  <JobTitle>sample string 5</JobTitle>
  <OfficeLocation>sample string 6</OfficeLocation>
  <MobilePhone>sample string 7</MobilePhone>
  <Ref1>sample string 8</Ref1>
  <Ref2>sample string 9</Ref2>
  <LoginCount>10</LoginCount>
  <LoginUserToken>sample string 11</LoginUserToken>
  <PictureFileId>1</PictureFileId>
  <ShopRoles />
  <EmployeeGroups />
  <Password>sample string 1</Password>
</EmployeeChanges>

Response Information

Resource Description


Employee
NameDescriptionTypeAdditional information
PublicAlias

Gets or sets the PublicAlias

string

Max length: 50

TimeZone

Gets or sets the TimeZone

string

Max length: 50

BirthDate

Gets or sets the BirthDate

date

None.

Gender

Gets or sets the Gender

GenderEnum

None.

EmailAddress

Gets or sets the EmailAddress

string

Max length: 100

JobTitle

Gets or sets the JobTitle

string

Max length: 250

OfficeLocation

Gets or sets the OfficeLocation

string

Max length: 100

MobilePhone

Gets or sets the MobilePhone

string

Max length: 20

Ref1

Gets or sets the Reference1

string

Max length: 50

Ref2

Gets or sets the Reference2

string

Max length: 50

LoginCount

Gets or sets the LoginCount

integer

Required

LoginUserToken

Gets or sets the LoginUserToken

string

Max length: 40

PictureFileId

Gets or sets the PictureFileId

integer

None.

ShopRoles

Gets the ShopRoles

Collection of EmployeeShopRole

None.

EmployeeGroups

Gets or sets the EmployeeGroups

Collection of EmployeeGroup

None.

Id

Gets or sets the id

integer

Must be 0

FullName

Gets or sets the FullName

string

Required

Max length: 100

Login

Gets or sets the Login

string

Required

Max length: 50

Enabled

Gets or sets the Enabled status

boolean

Required

ShopOwnerId

Gets or sets the ShopOwnerId

integer

None.

ShopOwnerCompanyName

Gets or sets the ShopOwnerCompanyName

string

None.

IsAdmin

Gets or sets the IsAdmin

boolean

Required

IsShopOwnerAdmin

Gets or sets the IsShopOwnerAdmin

boolean

Required

LastLogin

Gets or sets the LastLogin date and time

date

None.

PhoneExtension

Gets or sets the Phone

string

Max length: 10

CultureId

Gets or sets the CultureId

integer

None.

CultureCode

Gets or sets the CultureCode

string

None.

Response Formats

application/json, text/json

Sample:
{
  "PublicAlias": "sample string 1",
  "TimeZone": "sample string 2",
  "BirthDate": "2021-12-02T20:19:32.7478985+01:00",
  "Gender": 0,
  "EmailAddress": "sample string 3",
  "JobTitle": "sample string 4",
  "OfficeLocation": "sample string 5",
  "MobilePhone": "sample string 6",
  "Ref1": "sample string 7",
  "Ref2": "sample string 8",
  "LoginCount": 9,
  "LoginUserToken": "sample string 10",
  "PictureFileId": 1,
  "ShopRoles": [],
  "EmployeeGroups": [],
  "Id": 11,
  "FullName": "sample string 12",
  "Login": "sample string 13",
  "Enabled": true,
  "ShopOwnerId": 1,
  "ShopOwnerCompanyName": "sample string 15",
  "IsAdmin": true,
  "IsShopOwnerAdmin": true,
  "LastLogin": "2021-12-02T20:19:32.7478985+01:00",
  "PhoneExtension": "sample string 18",
  "CultureId": 1,
  "CultureCode": "sample string 19"
}

application/xml, text/xml

Sample:
<Employee xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>11</Id>
  <FullName>sample string 12</FullName>
  <Login>sample string 13</Login>
  <Enabled>true</Enabled>
  <ShopOwnerId>1</ShopOwnerId>
  <ShopOwnerCompanyName>sample string 15</ShopOwnerCompanyName>
  <IsAdmin>true</IsAdmin>
  <IsShopOwnerAdmin>true</IsShopOwnerAdmin>
  <LastLogin>2021-12-02T20:19:32.7478985+01:00</LastLogin>
  <PhoneExtension>sample string 18</PhoneExtension>
  <CultureId>1</CultureId>
  <CultureCode>sample string 19</CultureCode>
  <PublicAlias>sample string 1</PublicAlias>
  <TimeZone>sample string 2</TimeZone>
  <BirthDate>2021-12-02T20:19:32.7478985+01:00</BirthDate>
  <Gender>Unknown</Gender>
  <EmailAddress>sample string 3</EmailAddress>
  <JobTitle>sample string 4</JobTitle>
  <OfficeLocation>sample string 5</OfficeLocation>
  <MobilePhone>sample string 6</MobilePhone>
  <Ref1>sample string 7</Ref1>
  <Ref2>sample string 8</Ref2>
  <LoginCount>9</LoginCount>
  <LoginUserToken>sample string 10</LoginUserToken>
  <PictureFileId>1</PictureFileId>
  <ShopRoles />
  <EmployeeGroups />
</Employee>