Skip to content

assignments

assignments get

Get a Pega assignment by ID

Usage

bash
pega assignments get <assignmentId> [flags]

Source endpoint: GET /assignments/{assignmentID}view command source

Arguments

ArgumentRequiredDescription
assignmentIdYesFull assignment handle

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile

Examples

sh
pega assignments get ASSIGN-WORKLIST X-1!FLOW

assignments get-action

Get the action/view details for a specific action on an assignment

Usage

bash
pega assignments get-action <assignmentId> [flags]

Source endpoint: GET /assignments/{assignmentID}/actions/{actionID}view command source

Arguments

ArgumentRequiredDescription
assignmentIdYesFull assignment handle

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--actionoptionYesFlow action ID

Examples

sh
pega assignments get-action ASSIGN-1 --action Submit

assignments get-next

Get the next assignment from the worklist

Usage

bash
pega assignments get-next [flags]

Source endpoint: GET /assignments/nextview command source

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile

Examples

sh
pega assignments get-next

assignments navigate-back

Navigate back to the previous step in a multi-step assignment

Usage

bash
pega assignments navigate-back <assignmentId> [flags]

Source endpoint: PATCH /assignments/{assignmentID}/navigation_steps/previousview command source

Arguments

ArgumentRequiredDescription
assignmentIdYesAssignment ID

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--dataoptionNoJSON content (inline, @file, or -)
--page-instructionsoptionNoJSON page-instructions array (inline, @file, or -)
--attachmentsoptionNoJSON attachments array (inline, @file, or -)

Examples

sh
pega assignments navigate-back ASSIGN-1
sh
pega assignments navigate-back ASSIGN-1 --data '{"x":1}'

assignments navigate-to-step

Navigate to a specific step in a multi-step assignment

Usage

bash
pega assignments navigate-to-step <assignmentId> [flags]

Source endpoint: PATCH /assignments/{assignmentID}/navigation_steps/{stepID}view command source

Arguments

ArgumentRequiredDescription
assignmentIdYesAssignment ID

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--stepoptionYesStep ID
--dataoptionNoJSON content (inline, @file, or -)
--page-instructionsoptionNoJSON page-instructions array
--attachmentsoptionNoJSON attachments array

Examples

sh
pega assignments navigate-to-step ASSIGN-1 --step Step3

assignments perform

Perform an assignment action (auto-fetches eTag)

Usage

bash
pega assignments perform <assignmentId> [flags]

Source endpoint: PATCH /assignments/{assignmentID}/actions/{actionID}view command source

Arguments

ArgumentRequiredDescription
assignmentIdYesAssignment ID

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--actionoptionNoAction ID (required unless --interactive)
--dataoptionNoJSON content (inline, @file, or -)
--page-instructionsoptionNoJSON page-instructions array (inline, @file, or -)
--attachmentsoptionNoJSON attachments array (inline, @file, or -)
--interactivebooleanNoWalk through action + required fields via prompts (TTY only)

Examples

sh
pega assignments perform ASSIGN-1 --action Submit --data @form.json
sh
pega assignments perform ASSIGN-1 --interactive

assignments recalculate

Recalculate calculated fields and when conditions for an assignment action

Usage

bash
pega assignments recalculate <assignmentId> [flags]

Source endpoint: PATCH /assignments/{assignmentID}/actions/{actionID}/recalculateview command source

Arguments

ArgumentRequiredDescription
assignmentIdYesAssignment ID

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--actionoptionYesAction ID
--dataoptionYesJSON: {calculations:{fields:[{name:".X",context:"content"}]}} (inline, @file, or -)

Examples

sh
pega assignments recalculate ASSIGN-1 --action Submit --data '{"calculations":{"fields":[{"name":".Total","context":"content"}]}}'

assignments refresh-action

Refresh a field after a value change

Usage

bash
pega assignments refresh-action <assignmentId> [flags]

Source endpoint: PATCH /assignments/{assignmentID}/actions/{actionID}/refreshview command source

Arguments

ArgumentRequiredDescription
assignmentIdYesAssignment ID

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--actionoptionYesAction ID
--dataoptionNoJSON content (inline, @file, or -)
--page-instructionsoptionNoJSON page-instructions array (inline, @file, or -)
--interest-pageoptionNoEmbedded list row reference (e.g. .OrderItems(1)). Infinity '25+
--interest-page-action-idoptionNoAction ID of the inner ('interest page') action. Infinity '25+
--attachmentsoptionNoNOT ACCEPTED for refresh (use perform-action or save instead). Errors with INVALID_ARGS.

Examples

sh
pega assignments refresh-action ASSIGN-1 --action Submit --data '{"field":"new"}'
sh
pega assignments refresh-action ASSIGN-1 --action Submit --interest-page .OrderItems(1) --interest-page-action-id EmbeddedAction

assignments save

Save a draft of an in-progress assignment

Usage

bash
pega assignments save <assignmentId> [flags]

Source endpoint: PATCH /assignments/{assignmentID}/actions/{actionID}/saveview command source

Arguments

ArgumentRequiredDescription
assignmentIdYesAssignment ID

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--actionoptionYesAction ID
--dataoptionNoJSON content (inline, @file, or -)
--page-instructionsoptionNoJSON page-instructions array (inline, @file, or -)
--attachmentsoptionNoJSON attachments array (inline, @file, or -)

Examples

sh
pega assignments save ASSIGN-1 --action Submit --data @draft.json