enterprise_license_partial_update
PATCH/api/v3//enterprise/license/:license_uuid/
License Viewset
Request
Path Parameters
license_uuid uuidrequired
A UUID string identifying this License.
- application/json
Body
keystring
Possible values: non-empty
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
license_uuiduuidrequired
namestringrequired
keystringrequired
expirydate-timerequired
internal_usersintegerrequired
external_usersintegerrequired
{
"license_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"key": "string",
"expiry": "2024-07-29T15:51:28.071Z",
"internal_users": 0,
"external_users": 0
}
- application/json
- Schema
- Example (auto)
Schema
non_field_errorsstring[]
codestring
property name*any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
detailstringrequired
codestring
{
"detail": "string",
"code": "string"
}
Authorization: http
name: authentiktype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Patch, "/api/v3/enterprise/license/:license_uuid/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"key\": \"string\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());