POST api/Lizenz?benutzername={benutzername}&passwort={passwort}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
benutzername

string

Required

passwort

string

Required

Body Parameters

PostLizenzDto
NameDescriptionTypeAdditional information
Name

string

None.

Price

decimal number

None.

LicenceTimeDays

integer

None.

IsAvaiable

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Price": 2.0,
  "LicenceTimeDays": 3,
  "IsAvaiable": true
}

application/xml, text/xml

Sample:
<PostLizenzDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PDZeiterfassungCommonComponents.Dto.Post">
  <IsAvaiable>true</IsAvaiable>
  <LicenceTimeDays>3</LicenceTimeDays>
  <Name>sample string 1</Name>
  <Price>2</Price>
</PostLizenzDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
Success

boolean

None.

Alerts

Collection of Alert

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Alerts": null
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PDZeiterfassungCommonComponents.Helpers">
  <Alerts i:nil="true" />
  <Success>true</Success>
</Result>