## Signature
Request:
- URL: /30/keys
- Method: POST
- Body: Partner API 3.0’s License Key Structure
- Optional query string parameters:
- `return-key-state` (boolean). Defines whether to return the Partner API 3.0’s License Key Structure of a created key in the response (`false` by default).
**Note:** License keys cannot be created for reseller accounts. To create a license key for a client account owned by a reseller account, that client account’s ID must be passed via the `ownerId` field.
Response:
- Success status code: 201
- Header: “Location” with an URL pointing exactly to the created key
- Body: Partner API 3.0’s License Key Structure **.** Not empty if the `return-key-state` parameter was enabled.
## Example
Request:
Response:
POST /30/keys?return-key-state=yes HTTP/1.1
{
"items" : [ {
"externalId" : "98765",
"item" : "PLESK-12-WEB-ADMIN-1M"
},
{
"externalId" : "54321",
"item" : "FT-PLESK-5-LANGUAGE-PACKS-1M"
} ]
}
HTTP/1.1 201 Created
Location: https://api.central.plesk.com/30/keys/12345678
{
"ownerId" : "12345",
"keyIdentifiers" : {
"keyId" : 12345678,
...
}