Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
55 lines (39 loc) · 1.54 KB

confirm-enterprise-license.md

File metadata and controls

55 lines (39 loc) · 1.54 KB

Confirm Enterprise License

Confirm if the current workspace is an enterprise edition workspace.

URL Requires Auth HTTP Method
/api/v1/licenses.isEnterprise Optional GET

Headers

ArgumentExampleRequiredDescription
X-User-Idmyuser-nameRequiredThe authenticated user ID.
X-Auth-Tokenmyauth-tokenRequiredAuth token.

Example Call

curl --location 'http://localhost:3000/api/v1/licenses.isEnterprise' \
--header 'x-auth-token: iqJERsuaUgzVSmPMV87RdMThc_yFhK8U5T5mr6Z5CPs' \
--header 'x-user-id: wxnehxdyBPuPyQaNa' \

Example Result

Success

{
    "isEnterprise": true,
    "success": true
}

Error

Any of the following errors can occur on the endpoint.

  • Authorization: Requires an authentication token for the request to be made.

{% tabs %} {% tab title="Authorization" %}

{
    "status": "error",
    "message": "You must be logged in to do this."
}

{% endtab %} {% endtabs %}

Change Log

Version Description
5.0.0 Added