Interface AppsService
-
Method Summary
Modifier and TypeMethodDescriptioncreate(AppCreateRequest appCreateRequest) Create an appvoidDelete an appGet an applist()List all apps for a given projectupdate(String appId, AppUpdateRequest appUpdateRequest) Update an app
-
Method Details
-
list
List all apps for a given projectGet a list of all apps in the specified project.
- Returns:
- AppsListResponse
- Throws:
ApiException- if fails to make API call
-
create
Create an appYou can create a new Conversation API app using the API. You can create an app for one or more channels at once. The ID of the app is generated at creation and will be returned in the response.
- Parameters:
appCreateRequest- The app to create. (required)- Returns:
- AppResponse
- Throws:
ApiException- if fails to make API call
-
delete
Delete an appDeletes the app specified by the App ID. Note that this operation will not delete contacts (which are stored at the project level) nor any channel-specific resources (for example, WhatsApp Sender Identities will not be deleted).
- Parameters:
appId- The unique ID of the app. You can find this on the [Sinch Dashboard](https://dashboard.sinch.com/convapi/apps). (required)- Throws:
ApiException- if fails to make API call
-
get
Get an appReturns a particular app as specified by the App ID.
- Parameters:
appId- The unique ID of the app. You can find this on the [Sinch Dashboard](https://dashboard.sinch.com/convapi/apps). (required)- Returns:
- AppResponse
- Throws:
ApiException- if fails to make API call
-
update
Update an appUpdates a particular app as specified by the App ID. Note that this is a `PATCH` operation, so any specified field values will replace existing values. Therefore, **if you'd like to add additional configurations to an existing Conversation API app, ensure that you include existing values AND new values in the call**. For example, if you'd like to add new `channel_credentials`, you can [get](https://developers.sinch.com/docs/conversation/api-reference/conversation/tag/App/#tag/App/operation/App_GetApp) your existing Conversation API app, extract the existing `channel_credentials` list, append your new configuration to that list, and include the updated `channel_credentials` list in this update call.
- Parameters:
appId- The unique ID of the app. You can find this on the [Sinch Dashboard](https://dashboard.sinch.com/convapi/apps). (required)appUpdateRequest- The updated app. (required)- Returns:
- AppResponse
- Throws:
ApiException- if fails to make API call
-