# PutServerLicense

## General

### URL

https://[host]/attunityenterprisemanager/api/v1/servers/[server]/license/def

### Description

Registers a license on a specific server via Qlik Enterprise Manager.

### HTTP method

PUT

### Required user role

See [Required Enterprise Manager permissions](https://help.qlik.com/en-US/enterprise-manager/May2025/Content/EnterpriseManager/EnterpriseManager_APIGuide/Introduction/AEMPermissions.htm).

## Request parameters

Request parameters

| Location | Name | Required | Example |
| --- | --- | --- | --- |
| URL | Host [string] | Yes | computer.network.net |
| URL | ServerName [string] | Yes | The name of the server in Enterprise Manager:<br><br>myrepsrv1 |
| Header | EnterpriseManager.APISessionID [string] | Yes | wCo0\_KvjEUFROvfHF5KGrw |

## Request body

The license to register on the server [stream].

This is the license that was provided by your Qlik Sales Representative.

Expected format: Text or JSON.

Currently refers to the Replicate license only.

## cURL example

### Request

`curl -i -k -X PUT --header "EnterpriseManager.APISessionID: wCo0_KvjEUFROvfHF5KGrw" --header "Content-Length: 324" "https://computer.network.net/attunityenterprisemanager/api/v1/servers/myrepsrv1/license/def" -T "C:\license_exp2018-02-07_ser90000319.txt"`

### Request body

`(content of "C:\license_exp2018-02-07_ser90000319.txt ")`

#

# Temporary license for development

#

license\_type=evaluation\_license

licensed\_to=Qlik Internal - Qlik Replicate Development

licensed\_by=Miki

serial\_no=2333

expiration\_date=2018-01-31

source\_types=

target\_types=

features=manager

version=5.5.0.0

issue\_date=2017-11-01

checksum=C2855-R5J8F-JF8RQ-C3K7K

### Response

```
Header:
```

```
HTTP/1.1 200 OK
Cache-Control: no-cache, no-store
Content-Length: 38
Content-Type: application/json; charset=utf-8
Server: Microsoft-HTTPAPI/2.0
Date: Mon, 26 Dec 2016 16:31:01 GMT
```

## Error response

All of the [general errors](https://help.qlik.com/en-US/enterprise-manager/May2025/Content/EnterpriseManager/EnterpriseManager_APIGuide/CurlAPI/error_handling.htm) as well as the errors listed in the table below.

Error responses

| HTTP Code | Enterprise Manager Code | Text | Description |
| --- | --- | --- | --- |
| 500 | AEM\_PUT\_SRV\_LIC\_INNER\_ERR | Failed to put license for server "{server}".<br><br>Error: "{message}" | Returned if Qlik Enterprise Manager encounters an error/exception when trying to register the license on the specified server. |
| 500 | AEM\_SRV\_LIC\_INVALID\_FORMAT | The license file format is corrupt. | Returned when the contents of the license file are invalid. |