--- title: "Assign Multiple Licenses" slug: "assign-multiple-licenses" updated: 2026-11-19T12:30:59Z published: 2026-11-19T12:30:59Z canonical: "docs.trellix.com/assign-multiple-licenses" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Assign Multiple Licenses This URL assigns multiple licenses to the device. ### Resource URL POST /license/assignMultiLicense ### Request Parameters URL Parameters: None Payload Request Parameters: | Field Name | Description | Data Type | Mandatory | | --- | --- | --- | --- | | `licenseId` | License id | String | Yes | | `grantIndex` | Grant Index of the license | Number | Yes | | `grantId` | Grant id of the license | String | Yes | | `sensorId` | Sensor id to be associated with license | String | Yes | ### Response Parameters Following fields are returned. | Field Name | Description | Data Type | | --- | --- | --- | | `success` | Success status (true or false) | Boolean | | `msg` | Message | String | | `errMsg` | Error message | String | | `data` | Data | String | | `errorCode` | Error code | Number | ### Example **Request** PUT [https:///sdkapi/](https://<NSM_IP>/sdkapi/getclusterid)[license/unassignMultiLicense](https://localhost/sdkapi/license/unassignMultiLicense/vm5k_2_38) **Payload** ```plaintext [{"licenseId":"19112024-TLX-010000","grantIndex":1,"grantId":"260620231-TLX"}, {"licenseId":"19112024-TLX-010004","grantIndex":1,"grantId":"260620231-TLX"}, {"licenseId":"19112024-TLX-010003","grantIndex":1,"grantId":"260620231-TLX"}, {"licenseId":"19112024-TLX-010002","grantIndex":1,"grantId":"260620231-TLX"}, {"licenseId":"19112024-TLX-010005","grantIndex":1,"grantId":"260620231-TLX"}] ``` **Response** ```plaintext {    "success": true,    "msg": null,    "errMsg": null,    "data": null,    "errorCode": 0 } ``` ### Error Information Following error codes are returned by this URL: | No | HTTP Error Code | SDK API errorId | SDK API errorMessage | | --- | --- | --- | --- | | 1 | 500 | 1001 | Internal error | | 2 | 500 | 1001 | License cannot be assigned to the Sensor |