Install a private app via URL.
{% hint style="info" %}
It requires the manage-apps
permission.
{% endhint %}
URL | Requires Auth | HTTP Method |
---|---|---|
/api/apps |
yes |
POST |
Argument | Example | Required | Description |
---|---|---|---|
X-User-Id | myuser-name | Required | The authenticated user ID. |
X-Auth-Token | myauth-token | Required | Auth token. |
Argument | Example | Required | Description |
---|---|---|---|
url | https://github.com/RocketChat/Apps.RocketChat.Tester/blob/master/dist/appsrocketchattester_0.0.5.zip?raw=true | Required | The app URL where the zip file is located. |
{
"url":"https://github.com/RocketChat/Apps.RocketChat.Tester/blob/master/dist/appsrocketchattester_0.0.5.zip?raw=true"
}
curl --location 'http://localhost:3000/api/apps' \
--header 'x-auth-token: yhtCdq2Xf7DZxlZa5CrFADHo_pT-iLG_BZVqIMkJot_' \
--header 'x-user-id: rbAXPnMktTFbNpwtJ' \
--header 'Content-Type: application/json' \
--data '{
"url":"https://github.com/RocketChat/Apps.RocketChat.Tester/blob/master/dist/appsrocketchattester_0.0.5.zip?raw=true"
}'
{
"app": {
"id": "bc4dd4a1-bf9b-408e-83a4-aba7eba0bf02",
"version": "0.0.5",
"requiredApiVersion": "^1.33.0",
"iconFile": "icon.png",
"author": {
"name": "Rocket.Chat",
"homepage": "https://github.com/RocketChat",
"support": "a"
},
"name": "Apps.RocketChat.Tester",
"nameSlug": "appsrocketchattester",
"classFile": "AppsRocketChatTesterApp.js",
"description": "An app that provides endpoints to test Apps integration to Rocket.Chat",
"implements": [],
"iconFileContent": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQBAMAAACAGwOrAAAAG1BMVEUAAAD///9fX19/f38/Pz+fn5/f398fHx+/v7+TbuY3AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAJ80lEQVR4nO3bzVvbRgLHcWMb5GMmBMdHHOg2xzqEJkdMeEKPdShpj/Z2m80RU5ZwjJptmj+7kub9xVhGDs+zz34/z9OnZmzJMz9Jo5mR02oBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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XriofigfACKAAAAAElFTkSuQmCC",
"status": "auto_enabled"
},
"implemented": {
"IPreMessageSentPrevent": false,
"IPreMessageSentExtend": false,
"IPreMessageSentModify": false,
"IPostMessageSent": false,
"IPreMessageDeletePrevent": false,
"IPostMessageDeleted": false,
"IPreMessageUpdatedPrevent": false,
"IPreMessageUpdatedExtend": false,
"IPreMessageUpdatedModify": false,
"IPostMessageUpdated": false,
"IPostMessageReacted": false,
"IPostMessageFollowed": false,
"IPostMessagePinned": false,
"IPostMessageStarred": false,
"IPostMessageReported": false,
"IPreRoomCreatePrevent": false,
"IPreRoomCreateExtend": false,
"IPreRoomCreateModify": false,
"IPostRoomCreate": false,
"IPreRoomDeletePrevent": false,
"IPostRoomDeleted": false,
"IPreRoomUserJoined": false,
"IPostRoomUserJoined": false,
"IPreRoomUserLeave": false,
"IPostRoomUserLeave": false,
"IPostExternalComponentOpened": false,
"IPostExternalComponentClosed": false,
"IUIKitInteractionHandler": false,
"IUIKitLivechatInteractionHandler": false,
"IPostLivechatRoomStarted": false,
"IPostLivechatRoomClosed": false,
"ILivechatRoomClosedHandler": false,
"IPostLivechatAgentAssigned": false,
"IPostLivechatAgentUnassigned": false,
"IPostLivechatRoomTransferred": false,
"IPostLivechatGuestSaved": false,
"IPostLivechatRoomSaved": false,
"IPreFileUpload": false,
"IPreEmailSent": false,
"IPostUserCreated": false,
"IPostUserUpdated": false,
"IPostUserDeleted": false,
"IPostUserLoggedIn": false,
"IPostUserLoggedOut": false,
"IPostUserStatusChanged": false
},
"licenseValidation": {
"errors": {},
"warnings": {}
},
"success": true
}
Any of the following errors can occur on the endpoint.
- Authorization: Requires an authentication token for the request to be made.
- No Permission: Occurs when the authenticated user doesn't have the
manage-apps
permission.
{% tabs %} {% tab title="Authorization" %}
{
"status": "error",
"message": "You must be logged in to do this."
}
{% endtab %}
{% tab title="Permission" %}
{
"success": false,
"error": "User does not have the permissions required for this action [error-unauthorized]"
}
{% endtab %} {% endtabs %}
Version | Description |
---|---|
3.1.0 | Added |