claimOrgLicense
POST https://{{host}}/api/v1/orgs/:org_id/claim
Body Parameters
Name | Type | Description |
---|---|---|
code | string | activation code |
type | string | what to claim, all (default) / license / inventory |
device_type | string | if only intended to claim certain device type |
Request Body
{"code"=>"ZHT3K-H36DT-MG85D-M61AC", "type"=>"all"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | ||
X-CSRFToken | string | ||
Content-Type | string |
RESPONSES
status: OK
{"license_added":[{"type":"SUB-MAN","start":1504828800,"end":1520380800,"quantity":180},{"type":"SUB-LOC","start":1504828800,"end":1520380800,"quantity":120}],"license_duplicated":[{"type":"SUB-MAN","start":1504828800,"end":1520380800,"quantity":180}],"license_error":[{"order":"00000464","reason":""}],"inventory_added":[{"serial":"FXLH2015150025","model":"AP41","type":"ap","magic":"6JG8EPTFV2A9Z2N","mac":"5c5b35000018"}],"inventory_duplicated":[{"serial":"FXLH2015150027","model":"AP41","type":"ap","magic":"DVH4VSNMSZPDXBR","mac":"5c5b35000012"}]}