UiPath Documentation
uipath-cli
latest
false
UiPath-CLI-Benutzerhandbuch
Wichtig :
Dieser Inhalt wurde maschinell übersetzt. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.

uip tasks

Commands for managing Action Center tasks, catalogs, comments, labels, metadata, and task data using the `uip tasks` tool.

uip tasks manages Action Center tasks — the human-in-the-loop work items (form fills, approvals, document validation/classification, data labeling) that RPA processes and agents create for a person to complete. The tool lets you list and inspect tasks, assign or reassign them, complete them with an action and data payload, and manage the auxiliary resources attached to a task: catalogs (grouping/retention config), comments, labels (tags), metadata (title/priority/catalog link), and the task's own form/business data. tasks is the command prefix; the underlying package is @uipath/tasks-tool.

Konzepte

  • Folder scoping — every verb that operates on a specific task or catalog accepts --folder-id <id>, --folder-path <path>, or --folder-key <key> (mutually exclusive; enforced at parse time via Commander conflicts). When none is passed on an interactive terminal, the CLI shows a folder picker; in a non-interactive run (CI, coding agents) it fails fast asking for one. uip tasks list and uip tasks get are the two exceptions — a folder is optional there and simply narrows the results/lookup when given.
  • Task type — several verbs (get --task-type, complete --type) take one of FormTask, ExternalTask, AppTask, DocumentValidationTask, DocumentClassificationTask, DataLabelingTask, QuickFormTask. An unrecognized value fails client-side with the full list named in the error.
  • Pagination — list-style verbs (list, catalogs list, comments list, users) page internally with a 100-item page size and follow nextCursor until exhausted or --limit is reached, returning one flat array either way — there's no cursor flag to manage yourself.
  • Catalogs are optional grouping/retention config for tasksmetadata --catalog-id links a task to one; catalogs create/update's retention fields (--retention-action, --retention-period, --retention-bucket-id) control what happens to catalog data over time. --encrypted on catalogs create is immutable — there's no way to change it via catalogs update.

Zusammenfassung

uip tasks list [--folder-id <id> | --folder-path <path> | --folder-key <key>] [--as-admin] [-l, --limit <n>]
uip tasks get <id> [--task-type <type>] [--folder-id <id> | --folder-path <path> | --folder-key <key>]
uip tasks assign <task-id> (--user-id <id> | --user <email>)
uip tasks reassign <task-id> (--user-id <id> | --user <email>)
uip tasks unassign <task-id>
uip tasks complete <task-id> --type <type> [--data <json>] [--action <action>] [--folder-id <id> | --folder-path <path> | --folder-key <key>]
uip tasks users [folder-id] [--folder-path <path> | --folder-key <key>] [-l, --limit <n>]

uip tasks catalogs list [--folder-id <id> | --folder-path <path> | --folder-key <key>] [-l, --limit <n>]
uip tasks catalogs get <id> [--folder-id <id> | --folder-path <path> | --folder-key <key>]
uip tasks catalogs create --name <name> [--description <text>] [--encrypted] [--retention-action <action>] [--retention-period <days>] [--retention-bucket-id <id>] [--folder-id <id> | --folder-path <path> | --folder-key <key>]
uip tasks catalogs update <id> [--name <name>] [--description <text>] [--retention-action <action>] [--retention-period <days>] [--retention-bucket-id <id>] [--folder-id <id> | --folder-path <path> | --folder-key <key>]

uip tasks comments list <task-id> [-l, --limit <n>] [folder options]
uip tasks comments add <task-id> --text <text> [folder options]

uip tasks labels <task-id> --labels <json> [folder options]
uip tasks metadata <task-id> [--title <text>] [--priority <level>] [--catalog-id <id> | --unset-catalog] [--note <text>] [folder options]

uip tasks data get <task-id> [folder options]
uip tasks data save <task-id> --data <json> [folder options]
uip tasks list [--folder-id <id> | --folder-path <path> | --folder-key <key>] [--as-admin] [-l, --limit <n>]
uip tasks get <id> [--task-type <type>] [--folder-id <id> | --folder-path <path> | --folder-key <key>]
uip tasks assign <task-id> (--user-id <id> | --user <email>)
uip tasks reassign <task-id> (--user-id <id> | --user <email>)
uip tasks unassign <task-id>
uip tasks complete <task-id> --type <type> [--data <json>] [--action <action>] [--folder-id <id> | --folder-path <path> | --folder-key <key>]
uip tasks users [folder-id] [--folder-path <path> | --folder-key <key>] [-l, --limit <n>]

uip tasks catalogs list [--folder-id <id> | --folder-path <path> | --folder-key <key>] [-l, --limit <n>]
uip tasks catalogs get <id> [--folder-id <id> | --folder-path <path> | --folder-key <key>]
uip tasks catalogs create --name <name> [--description <text>] [--encrypted] [--retention-action <action>] [--retention-period <days>] [--retention-bucket-id <id>] [--folder-id <id> | --folder-path <path> | --folder-key <key>]
uip tasks catalogs update <id> [--name <name>] [--description <text>] [--retention-action <action>] [--retention-period <days>] [--retention-bucket-id <id>] [--folder-id <id> | --folder-path <path> | --folder-key <key>]

uip tasks comments list <task-id> [-l, --limit <n>] [folder options]
uip tasks comments add <task-id> --text <text> [folder options]

uip tasks labels <task-id> --labels <json> [folder options]
uip tasks metadata <task-id> [--title <text>] [--priority <level>] [--catalog-id <id> | --unset-catalog] [--note <text>] [folder options]

uip tasks data get <task-id> [folder options]
uip tasks data save <task-id> --data <json> [folder options]

uip tasks list

List tasks across folders (or one folder, when scoped).

Optionen

LongWertBeschreibung
--folder-id <id>IntegerFilter by folder ID.
--folder-path <path>stringFilter by folder path (alternative to --folder-id).
--folder-key <key>GUIDFilter by folder key (alternative to --folder-id).
--as-adminMarkierenList tasks as admin (broader visibility than your own assigned/available tasks).
-l, --limit <number>IntegerMaximum items to return. Fetches everything (paging internally) when omitted.

Beispiel

uip tasks list --folder-path "Shared/Finance" --limit 20
uip tasks list --folder-path "Shared/Finance" --limit 20

Datenform (--output json)

{ "Code": "TaskList", "Data": [ { "id": 1, "title": "Approve invoice", "type": "FormTask", "status": "Pending" } ] }
{ "Code": "TaskList", "Data": [ { "id": 1, "title": "Approve invoice", "type": "FormTask", "status": "Pending" } ] }

uip tasks get

Get details of a task by ID.

Argumente

NameErforderlichZweck
<id>jaTask ID. Use tasks list to find one.

Optionen

LongWertBeschreibung
--task-type <type>one of the 7 task typesTask type. Requires a folder option when passed — fails fast otherwise.
--folder-id <id> / --folder-path <path> / --folder-key <key>Folder scope. Required only when --task-type is set.

Beispiel

uip tasks get 123 --task-type FormTask --folder-id 42
uip tasks get 123 --task-type FormTask --folder-id 42

Datenform (--output json)

{ "Code": "TaskDetails", "Data": { "id": 123, "title": "Approve invoice", "type": "FormTask", "status": "Pending" } }
{ "Code": "TaskDetails", "Data": { "id": 123, "title": "Approve invoice", "type": "FormTask", "status": "Pending" } }

uip tasks assign / reassign

Assign a task to a user, or reassign it to a different one — identical option shape, different Code on success.

Argumente

NameErforderlichZweck
<task-id>jaTask ID.

Optionen

LongWertErforderlichBeschreibung
--user-id <id>Integerone of these twoAssignee's numeric user ID.
--user <email>stringone of these twoAssignee's username or email (alternative to --user-id).

Passing neither fails with an explicit "missing assignee" error.

Beispiel

uip tasks assign 123 --user alice@company.com
uip tasks reassign 123 --user-id 7
uip tasks assign 123 --user alice@company.com
uip tasks reassign 123 --user-id 7

Datenform (--output json)

{ "Code": "TaskAssigned", "Data": { "id": 123, "assignedTo": "alice@company.com" } }
{ "Code": "TaskAssigned", "Data": { "id": 123, "assignedTo": "alice@company.com" } }

Code is TaskReassigned for reassign.

uip tasks unassign

Remove the assignee from a task. No options beyond the task ID.

Argumente

NameErforderlichZweck
<task-id>jaTask ID.

Beispiel

uip tasks unassign 123
uip tasks unassign 123

Datenform (--output json)

{ "Code": "TaskUnassigned", "Data": { "id": 123 } }
{ "Code": "TaskUnassigned", "Data": { "id": 123 } }

uip tasks complete

Complete a task with an action and optional data payload.

Argumente

NameErforderlichZweck
<task-id>jaTask ID.

Optionen

LongWertErforderlichBeschreibung
--type <type>one of the 7 task typesjaTask type — validated client-side against the enum.
--data <json>JSONneinTask data payload as a JSON string.
--action <action>stringconditionallyAction name. Required in practice for FormTask and AppTask (not enforced client-side — the platform rejects a missing action for those types).
Folder optionsneinA folder is resolved (interactively if omitted, on a TTY) before completing.

Beispiel

uip tasks complete 123 --type FormTask --action Approve --data '{"comment":"Looks good"}'
uip tasks complete 123 --type FormTask --action Approve --data '{"comment":"Looks good"}'

Datenform (--output json)

{ "Code": "TaskCompleted", "Data": { "id": 123, "status": "Completed" } }
{ "Code": "TaskCompleted", "Data": { "id": 123, "status": "Completed" } }

uip tasks users

List users with task permissions in a folder — the source for --user-id/--user values on assign/reassign.

Argumente

NameErforderlichZweck
[folder-id]neinFolder ID as a positional argument. Mutually exclusive with --folder-path/--folder-key — passing both fails explicitly.

Optionen

LongWertBeschreibung
--folder-path <path>stringFolder path (alternative to the positional argument).
--folder-key <key>GUIDFolder key (alternative to the positional argument).
-l, --limit <number>IntegerMaximum items to return.

Beispiel

uip tasks users 42
uip tasks users --folder-path "Shared/Finance" --limit 10
uip tasks users 42
uip tasks users --folder-path "Shared/Finance" --limit 10

Datenform (--output json)

{
  "Code": "TaskUserList",
  "Data": [
    { "id": 1, "name": "Alice", "surname": "Smith", "userName": "alice", "emailAddress": "alice@company.com", "displayName": "Alice Smith" }
  ]
}
{
  "Code": "TaskUserList",
  "Data": [
    { "id": 1, "name": "Alice", "surname": "Smith", "userName": "alice", "emailAddress": "alice@company.com", "displayName": "Alice Smith" }
  ]
}

uip tasks catalogs

Manage task catalogs — named groupings of tasks with optional encryption and retention policy.

uip tasks catalogs list

Optionen
LongWertBeschreibung
Folder optionsFolder to list catalogs in (a folder is resolved if omitted, per Concepts).
-l, --limit <number>IntegerMaximum items to return.
Beispiel
uip tasks catalogs list --folder-id 42
uip tasks catalogs list --folder-id 42
Datenform (--output json)
{ "Code": "TaskCatalogList", "Data": [ { "id": 5, "name": "Invoices", "encrypted": false } ] }
{ "Code": "TaskCatalogList", "Data": [ { "id": 5, "name": "Invoices", "encrypted": false } ] }

uip tasks catalogs get

Argumente
NameErforderlichZweck
<id>jaTask catalog ID.
Beispiel
uip tasks catalogs get 5 --folder-id 42
uip tasks catalogs get 5 --folder-id 42
Datenform (--output json)
{ "Code": "TaskCatalogDetails", "Data": { "id": 5, "name": "Invoices", "encrypted": false } }
{ "Code": "TaskCatalogDetails", "Data": { "id": 5, "name": "Invoices", "encrypted": false } }

uip tasks catalogs create

Optionen
LongWertErforderlichBeschreibung
--name <name>stringjaCatalog name.
--description <text>stringneinCatalog description.
--encryptedMarkierenneinEncrypt task data in this catalog. Immutable — cannot be changed by catalogs update later.
--retention-action <action>Delete | ArchiveneinWhat happens at the retention limit. Any other value fails client-side.
--retention-period <days>IntegerneinRetention period in days.
--retention-bucket-id <id>IntegerneinStorage bucket ID, used when --retention-action Archive.
Beispiel
uip tasks catalogs create --name Invoices --retention-action Archive --retention-period 90 --retention-bucket-id 3 --folder-id 42
uip tasks catalogs create --name Invoices --retention-action Archive --retention-period 90 --retention-bucket-id 3 --folder-id 42
Datenform (--output json)
{ "Code": "TaskCatalogCreated", "Data": { "id": 5, "name": "Invoices" } }
{ "Code": "TaskCatalogCreated", "Data": { "id": 5, "name": "Invoices" } }

uip tasks catalogs update

Merges — only the flags you pass change. At least one of --name/--description/--retention-action/--retention-period/--retention-bucket-id is required; calling with none fails before any file/network access. --encrypted cannot be changed here.

Argumente
NameErforderlichZweck
<id>jaTask catalog ID.
Optionen

Same set as create minus --encrypted.

Beispiel
uip tasks catalogs update 5 --name "Invoices v2" --folder-id 42
uip tasks catalogs update 5 --name "Invoices v2" --folder-id 42
Datenform (--output json)
{ "Code": "TaskCatalogUpdated", "Data": { "id": 5, "name": "Invoices v2" } }
{ "Code": "TaskCatalogUpdated", "Data": { "id": 5, "name": "Invoices v2" } }

uip tasks comments

uip tasks comments list

Argumente
NameErforderlichZweck
<task-id>jaTask ID.
Optionen
LongWertBeschreibung
-l, --limit <number>IntegerMaximum items to return.
Folder optionsFolder the task lives in.
Beispiel
uip tasks comments list 123 --folder-id 42
uip tasks comments list 123 --folder-id 42
Datenform (--output json)
{ "Code": "TaskCommentList", "Data": [ { "id": 1, "text": "Looks good", "createdBy": "alice" } ] }
{ "Code": "TaskCommentList", "Data": [ { "id": 1, "text": "Looks good", "createdBy": "alice" } ] }

uip tasks comments add

Argumente
NameErforderlichZweck
<task-id>jaTask ID.
Optionen
LongWertErforderlichBeschreibung
--text <text>stringjaComment text. Empty string is rejected.
Folder optionsneinFolder the task lives in.
Beispiel
uip tasks comments add 123 --text "Escalating to finance" --folder-id 42
uip tasks comments add 123 --text "Escalating to finance" --folder-id 42
Datenform (--output json)
{ "Code": "TaskCommentCreated", "Data": { "id": 2, "text": "Escalating to finance" } }
{ "Code": "TaskCommentCreated", "Data": { "id": 2, "text": "Escalating to finance" } }

uip tasks labels

Set or clear the labels (tags) on a task in one call — this is a full replace, not a merge; pass every label you want to keep.

Argumente

NameErforderlichZweck
<task-id>jaTask ID.

Optionen

LongWertErforderlichBeschreibung
--labels <json>JSON arrayjaLabels to set, e.g. [{"name":"region","displayName":"Region","displayValue":"EMEA"}]. Pass [] to clear all labels. Must be a JSON array — a non-array value fails client-side.
Folder optionsneinFolder the task lives in.

Beispiel

uip tasks labels 123 --labels '[{"name":"region","displayName":"Region","displayValue":"EMEA"}]' --folder-id 42
uip tasks labels 123 --labels '[{"name":"region","displayName":"Region","displayValue":"EMEA"}]' --folder-id 42

Datenform (--output json)

{ "Code": "TaskLabelsSaved", "Data": { "taskId": 123, "labels": [{ "name": "region", "displayName": "Region", "displayValue": "EMEA" }] } }
{ "Code": "TaskLabelsSaved", "Data": { "taskId": 123, "labels": [{ "name": "region", "displayName": "Region", "displayValue": "EMEA" }] } }

uip tasks metadata

Edit a task's title, priority, catalog link, and record a note with the edit. Merges — only the flags you pass change; at least one is required.

Argumente

NameErforderlichZweck
<task-id>jaTask ID.

Optionen

LongWertBeschreibung
--title <title>stringNew title.
--priority <priority>Low | Medium | High | CriticalNew priority. An out-of-set value fails client-side, naming the valid set.
--catalog-id <id>IntegerAssociate a task catalog. Mutually exclusive with --unset-catalog.
--unset-catalogMarkierenRemove the task's catalog association. Mutually exclusive with --catalog-id.
--note <text>stringComment recorded alongside the edit.

Beispiel

uip tasks metadata 123 --priority High --note "Escalated per manager request" --folder-id 42
uip tasks metadata 123 --priority High --note "Escalated per manager request" --folder-id 42

Datenform (--output json)

{ "Code": "TaskMetadataEdited", "Data": { "taskId": 123 } }
{ "Code": "TaskMetadataEdited", "Data": { "taskId": 123 } }

uip tasks data

Read or write a task's underlying form/business data object.

uip tasks data get

Argumente
NameErforderlichZweck
<task-id>jaTask ID.
Beispiel
uip tasks data get 123 --folder-id 42
uip tasks data get 123 --folder-id 42
Datenform (--output json)
{ "Code": "TaskData", "Data": { "invoiceNumber": "INV-001", "amount": 250.0 } }
{ "Code": "TaskData", "Data": { "invoiceNumber": "INV-001", "amount": 250.0 } }

uip tasks data save

Argumente
NameErforderlichZweck
<task-id>jaTask ID.
Optionen
LongWertErforderlichBeschreibung
--data <json>JSON-ObjektjaTask data to save. Must be a JSON object (not an array or scalar) — anything else fails client-side.
Beispiel
uip tasks data save 123 --data '{"invoiceNumber":"INV-001","amount":250.0}' --folder-id 42
uip tasks data save 123 --data '{"invoiceNumber":"INV-001","amount":250.0}' --folder-id 42
Datenform (--output json)
{ "Code": "TaskDataSaved", "Data": { "taskId": 123 } }
{ "Code": "TaskDataSaved", "Data": { "taskId": 123 } }

Siehe auch

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben