POST api/Licence/Add

Request Information

URI Parameters

None.

Body Parameters

LicenceDto
NameDescriptionTypeAdditional information
Id

string

None.

Name

string

None.

Description

string

None.

StartDate

date

None.

EndDate

date

None.

Price

decimal number

None.

Code

string

None.

CreateDate

date

None.

UpdateDate

date

None.

CreateById

globally unique identifier

None.

UpdateById

globally unique identifier

None.

CreateUser

string

None.

IsDeleted

boolean

None.

IdentityUserId

globally unique identifier

None.

NameSurname

string

None.

LicenceEndDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "name": "sample string 2",
  "description": "sample string 3",
  "startDate": "2025-05-24T14:51:17.7760643+03:00",
  "endDate": "2025-05-24T14:51:17.7760643+03:00",
  "price": 6.0,
  "code": "sample string 7",
  "createDate": "2025-05-24T14:51:17.7760643+03:00",
  "updateDate": "2025-05-24T14:51:17.7760643+03:00",
  "createById": "714792de-53dd-4c8d-bfec-03d6debeaab0",
  "updateById": "03310d14-cca7-4021-9f30-954283714c62",
  "createUser": "sample string 9",
  "isDeleted": true,
  "identityUserId": "17a3cab0-1228-4a2a-8c74-eeb1cfbfa63e",
  "nameSurname": "sample string 12",
  "licenceEndDate": "2025-05-24T14:51:17.7760643+03:00"
}

application/xml, text/xml

Sample:
<LicenceDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs.Licence">
  <Code>sample string 7</Code>
  <CreateById>714792de-53dd-4c8d-bfec-03d6debeaab0</CreateById>
  <CreateDate>2025-05-24T14:51:17.7760643+03:00</CreateDate>
  <CreateUser>sample string 9</CreateUser>
  <Description>sample string 3</Description>
  <EndDate>2025-05-24T14:51:17.7760643+03:00</EndDate>
  <Id>sample string 1</Id>
  <IdentityUserId>17a3cab0-1228-4a2a-8c74-eeb1cfbfa63e</IdentityUserId>
  <IsDeleted>true</IsDeleted>
  <LicenceEndDate>2025-05-24T14:51:17.7760643+03:00</LicenceEndDate>
  <Name>sample string 2</Name>
  <NameSurname>sample string 12</NameSurname>
  <Price>6</Price>
  <StartDate>2025-05-24T14:51:17.7760643+03:00</StartDate>
  <UpdateById>03310d14-cca7-4021-9f30-954283714c62</UpdateById>
  <UpdateDate>2025-05-24T14:51:17.7760643+03:00</UpdateDate>
</LicenceDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"id":"sample string 1","name":"sample string 2","description":"sample string 3","startDate":"2025-05-24T14:51:17.7760643+03:00","endDate":"2025-05-24T14:51:17.7760643+03:00","price":6.0,"code":"sample string 7","createDate":"2025-05-24T14:51:17.7760643+03:00","updateDate":"2025-05-24T14:51:17.7760643+03:00","createById":"714792de-53dd-4c8d-bfec-03d6debeaab0","updateById":"03310d14-cca7-4021-9f30-954283714c62","createUser":"sample string 9","isDeleted":true,"identityUserId":"17a3cab0-1228-4a2a-8c74-eeb1cfbfa63e","nameSurname":"sample string 12","licenceEndDate":"2025-05-24T14:51:17.7760643+03:00"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.