UiPath Documentation
maestro
latest
false
Maestro API ガイド
  • ケースアプリ API
    • CaseApp の要求
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

CaseApp の要求

API endpoints for triggering ad-hoc case tasks, closing case instances, and listing available ad-hoc tasks through the CaseApp v3 API.

アドホック ケース タスクをトリガーする​

実行中の Maestro Case インスタンスで、ケース プラン名で識別される、手動でトリガーする (アドホック) タスクを 1 つトリガーします。

POST

{AutomationCloudURL}/{organizationName}/{tenantName}/pims_/api/v3/caseapp/instances/{instanceId}/tasks/trigger

要求ヘッダー​

キー値 (Value)
認可Bearer
X-UIPATH-FolderKeyケース インスタンスのフォルダー キーです

要求本文​

フィールド入力Required説明
taskNamestringはいトリガーするアドホック タスクの名前です。ケース プランで解決される名前とまったく同じです。一致では大文字と小文字が区別されます。
タスク入力objectいいえ自由形式の JSON オブジェクトが、入れ子になったペイロードとしてトリガーされたタスクに逐語的に転送されます。たとえば、承認の参照や意思決定データなどです。このペイロードは解釈もスキーマ検証も行わず、タスクの宣言された入力にバインドされません。
{
  "taskName": "string",
  "taskInput": {}
}
{
  "taskName": "string",
  "taskInput": {}
}

応答コード​

200成功(空の本体)

エラー応答​

コード意味
400要求本文が見つからないか、無効です。
401呼び出し元は認証されていません。
403呼び出し元には、このタスクに必要なアクセス許可がありません。
404ケース インスタンスが存在しないか、同じ名前のアドホック タスクがケース プランに存在しません。エントリ条件が「アドホック」のタスクのみが対象となります。それ以外の名前では 404 が返されます。
500予期しないサーバー エラーが発生していました。

権限​

要求されたタスクを所有するステージの範囲で承認された Cases.RunAdhocTasks 権限が必要です。

ケース インスタンスを閉じる​

実行中の Maestro Case インスタンスを閉じます。

POST

{AutomationCloudURL}/{organizationName}/{tenantName}/pims_/api/v3/caseapp/instances/{instanceId}/close

要求ヘッダー​

キー値 (Value)
認可Bearer
X-UIPATH-FolderKeyケース インスタンスのフォルダー キーです

応答コード​

コード意味
200インスタンスは Cancelingに移行します。作業者がシフトを完了して、非同期に Cancelled します。すでにターミナルにあるインスタンスは、現在のステータスを変更せずに返します。
400インスタンスはすでに Completed に達しているため、キャンセルできません。
401呼び出し元は認証されていません。
403呼び出し元には、このインスタンスに必要な権限がありません。
404インスタンス ID がケース インスタンスに解決されません。

権限​

Cases.Close ペルソナの付与が必要です。

List the ad-hoc tasks you can run on a case​

Lists the ad-hoc tasks a caller is permitted to trigger on a case instance, grouped by the stage that owns each task.

GET

{AutomationCloudURL}/{organizationName}/{tenantName}/pims_/api/v3/caseapp/instances/{instanceId}/tasks/adhoc

要求ヘッダー​

キー値 (Value)
認可Bearer
X-UIPATH-FolderKeyケース インスタンスのフォルダー キーです

応答本文​

Returns the ad-hoc tasks the caller can trigger, grouped by the stage that owns them. Stages without a task the caller can trigger are omitted, so an empty stages list means the caller can't trigger any task on this case.

フィールド入力説明
stages配列The stages that contain at least one task the caller can trigger.
stages[].stageIdstringThe stage's case plan node ID. Can be null.
stages[].stageLabelstringThe stage's label in the case plan.
stages[].tasks配列The stage's ad-hoc tasks, in case plan order.
stages[].tasks[].taskNamestringThe task's name, to pass as taskName when calling Trigger an ad-hoc case task. Matching is case-sensitive.
stages[].tasks[].taskIdstringThe task's case plan node ID. Can be null. The trigger endpoint doesn't accept it.
{
  "stages": [
    {
      "stageId": "string",
      "stageLabel": "string",
      "tasks": [
        {
          "taskName": "string",
          "taskId": "string"
        }
      ]
    }
  ]
}
{
  "stages": [
    {
      "stageId": "string",
      "stageLabel": "string",
      "tasks": [
        {
          "taskName": "string",
          "taskId": "string"
        }
      ]
    }
  ]
}

A listed task is one the caller is authorized to trigger, but the trigger can still fail. For example, triggering a task on a completed case returns 404.

応答コード​

コード意味
200The list was returned. It can be empty.
400The X-UIPATH-FolderKey header is missing or invalid.
401呼び出し元は認証されていません。
403The caller has no Cases.RunAdhocTasks grant related to this case.
404The instance doesn't exist in the folder specified in X-UIPATH-FolderKey, or it isn't a case instance.
500The case plan couldn't be read, or an unexpected server error occurred.

権限​

Requires the Cases.RunAdhocTasks permission, authorized at the scope of the stage that owns each listed task.

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得