E2. Create a New Station

Top  Previous  Next

Request

Request Parameters

Parameter

Description

Obligatory

Default value

id

Identifier

no

autogenerated

name

Station name

no

similar to id

password

Password

no

autogenerated

group_id

Identifier of the primary group

no

Everyone group ID

expires = YYYYMMDD

or

expires = YYYYMMDDHHmmss

Expiration date (inclusive), unless which the client have access.

no

0

blockbeg = YYYYMMDD

or

blockbeg = YYYYMMDDHHmmss

Date (inclusive) of bocking period start.

no

0

blockend = YYYYMMDD

or

blockend = YYYYMMDDHHmmss

Date (inclusive) of bocking period end.

no

0

description

Description

no

-

longitude

Longitude. Coordinates are given in seconds. North and East are positive, South and West are negative.

no

-

latitude

Latitude. Coordinates are given in seconds. North and East are positive, South and West are negative.

no

-

organization

Organization

no

-

province

Province

no

-

street

Street

no

-

floor

Floor

no

-

room

Room

no

-

department

Department

no

-

country

Country. Represented as two-character code according to ISO 3166 standard

no

-

city

City

no

-

graceperiod

Grace period

no

yes

If the group_id parameter is not specified:

under full-rights administrator, station will be created in the Everyone group,

under group administrator, error will occur.

If the grace-period parameter is set to yes, station has 30 days of grace period.

Reply XML

<avdesk-xml-api api="2.2.0" timestamp="20160321114348999" server="10.4.0.191" oper="add-customer" version="10.00.1.201510090" rc="true">
<customers>
<customer>
<id>Client (Station) identifier</id>
<description>Описание клиента (станции)<description/>
<group id="Group identifier">Group name</group>
<password>Password</password>
<url>Link for the Agent download</url>
<tariff id="Tariff group identifier">Tariff group name</tariff>
</customer>
</customers>
</avdesk-xml-api>