enterprise_license_create
POST/api/v3//enterprise/license/
License Viewset
Request
- application/json
Body
required
key stringrequired
Possible values: non-empty
Responses
- 201
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
license_uuid uuidrequired
name stringrequired
key stringrequired
expiry date-timerequired
internal_users integerrequired
external_users integerrequired
{
"license_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"key": "string",
"expiry": "2024-09-27T14:26:18.142Z",
"internal_users": 0,
"external_users": 0
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST '/api/v3/enterprise/license/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"key": "string"
}'