- Apps API
Apps API guide
Upgrades one or more deployed apps to their latest published version.
Point de terminaison de l’API
POST <BaseURL>/models/deployed/apps/updateToLatestAppVersionBulk
See Base URL for the root endpoint path.
En-têtes de requête.
| En-tête | Valeur (Value) |
|---|---|
| Autorisation | Porteur <access_token> |
| Type de contenu | application/json |
| X-UiPath-Internal-TenantId | <tenant_id> |
| X-UiPath-FolderKey | <folder_key> |
Remplacez toutes les valeurs entre les chevrons <...> par leurs valeurs de cas d’utilisation correspondantes.
The <access_token> is the one you received when you authorized the external application with the Apps or Apps.Write scope, and the OR.Folders.Read scope. It is available for 1 hour, then you need to generate a new one, or request a refresh token.
Corps de la requête (obligatoire)
{
"deploymentIds": [
"deployment-id-1",
"deployment-id-2"
]
}
{
"deploymentIds": [
"deployment-id-1",
"deployment-id-2"
]
}
| Champ | Type de données | Description |
|---|---|---|
| deploymentIds (required) | string[] | The deployment IDs of the deployed apps to upgrade. |
Réponses
200 OK
Returns the list of successfully updated deployments and any failed items.
{
"updatedDeployments": [
{
"id": "string",
"appSystemName": "string",
"version": 3
}
],
"failedItems": ["deployment-id-2"]
}
{
"updatedDeployments": [
{
"id": "string",
"appSystemName": "string",
"version": 3
}
],
"failedItems": ["deployment-id-2"]
}
| Champ | Type de données | Description |
|---|---|---|
| updatedDeployments | array | The list of successfully upgraded deployments. |
| updatedDeployments[].id | string | The deployment ID. |
| updatedDeployments[].appSystemName | string | The system name of the app. |
| updatedDeployments[].version | number | The new version number after upgrade. |
| failedItems | string[] | The deployment IDs that failed to upgrade. |
401 Non autorisé
You are not authenticated. Make sure you are using a valid access token with the Apps or Apps.Write scope.
403 Forbidden
You don't have permission to edit deployed apps in the specified folder.