PUT api/licenses/{id}

Update specific License

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

unique identifier of License

globally unique identifier

Required

Body Parameters

License details to be updated

UpdateLicenseRequest
NameDescriptionTypeAdditional information
LicenseId

globally unique identifier

None.

LicenseName

string

None.

StartDate

date

None.

EndDate

date

None.

UserGroupId

globally unique identifier

None.

OwnerId

globally unique identifier

None.

AvailableSeats

integer

None.

ContactPersonName

string

None.

ContactPhone

string

None.

ContactEmail

string

None.

Buffer

integer

None.

Grade

string

None.

LicenseCategoryId

globally unique identifier

None.

AllowableUserRoles

Collection of globally unique identifier

None.

IsPaused

boolean

None.

SeatUserGroupIds

Collection of globally unique identifier

None.

PrivilegedUserRoles

Collection of globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "LicenseId": "f76ac030-df89-41a9-a62a-b6fbbba5a58c",
  "LicenseName": "sample string 2",
  "StartDate": "2025-12-25T15:49:43.2908281+00:00",
  "EndDate": "2025-12-25T15:49:43.2908281+00:00",
  "UserGroupId": "e48a4bb5-122c-469e-8b27-c495fc152ea9",
  "OwnerId": "73d71804-5f00-489f-9959-8bcefa7c10d6",
  "AvailableSeats": 5,
  "ContactPersonName": "sample string 6",
  "ContactPhone": "sample string 7",
  "ContactEmail": "sample string 8",
  "Buffer": 1,
  "Grade": "sample string 9",
  "LicenseCategoryId": "7f7b70ff-3043-4779-a771-575454e56edc",
  "AllowableUserRoles": [
    "25e1dd03-7185-4dc0-b63e-0df178164e13",
    "82fbfa56-127d-4200-bc6e-d9b28801dcc8"
  ],
  "IsPaused": true,
  "SeatUserGroupIds": [
    "4928208b-29c7-480b-9c86-23be024cd80f",
    "7fbdca72-0083-4ddd-b2d9-33bc3443ed0e"
  ],
  "PrivilegedUserRoles": [
    "a1de26b1-3e0c-47e2-af78-0bf47088a2cd",
    "2d179f7b-9cdc-4f61-b6b4-2880537b6bc5"
  ]
}

application/xml, text/xml

Sample:
<UpdateLicenseRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Requests">
  <AllowableUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>25e1dd03-7185-4dc0-b63e-0df178164e13</d2p1:guid>
    <d2p1:guid>82fbfa56-127d-4200-bc6e-d9b28801dcc8</d2p1:guid>
  </AllowableUserRoles>
  <AvailableSeats>5</AvailableSeats>
  <Buffer>1</Buffer>
  <ContactEmail>sample string 8</ContactEmail>
  <ContactPersonName>sample string 6</ContactPersonName>
  <ContactPhone>sample string 7</ContactPhone>
  <EndDate>2025-12-25T15:49:43.2908281+00:00</EndDate>
  <Grade>sample string 9</Grade>
  <IsPaused>true</IsPaused>
  <LicenseCategoryId>7f7b70ff-3043-4779-a771-575454e56edc</LicenseCategoryId>
  <LicenseId>f76ac030-df89-41a9-a62a-b6fbbba5a58c</LicenseId>
  <LicenseName>sample string 2</LicenseName>
  <OwnerId>73d71804-5f00-489f-9959-8bcefa7c10d6</OwnerId>
  <PrivilegedUserRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>a1de26b1-3e0c-47e2-af78-0bf47088a2cd</d2p1:guid>
    <d2p1:guid>2d179f7b-9cdc-4f61-b6b4-2880537b6bc5</d2p1:guid>
  </PrivilegedUserRoles>
  <SeatUserGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>4928208b-29c7-480b-9c86-23be024cd80f</d2p1:guid>
    <d2p1:guid>7fbdca72-0083-4ddd-b2d9-33bc3443ed0e</d2p1:guid>
  </SeatUserGroupIds>
  <StartDate>2025-12-25T15:49:43.2908281+00:00</StartDate>
  <UserGroupId>e48a4bb5-122c-469e-8b27-c495fc152ea9</UserGroupId>
</UpdateLicenseRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResponse
NameDescriptionTypeAdditional information
Errors

Collection of Error

None.

IsValid

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Errors": [
    {
      "PropertyName": "sample string 1",
      "Message": "sample string 2"
    },
    {
      "PropertyName": "sample string 1",
      "Message": "sample string 2"
    }
  ],
  "IsValid": false
}

application/xml, text/xml

Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">
  <Errors>
    <Error>
      <Message>sample string 2</Message>
      <PropertyName>sample string 1</PropertyName>
    </Error>
    <Error>
      <Message>sample string 2</Message>
      <PropertyName>sample string 1</PropertyName>
    </Error>
  </Errors>
</ApiResponse>