Skip to content

cases

cases bulk-actions

List bulk actions available across a set of cases

Usage

bash
pega cases bulk-actions [flags]

Source endpoint: POST /cases/bulk-actionsview 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
--casesoptionYesComma-separated case IDs

Examples

sh
pega cases bulk-actions --cases CASE-1,CASE-2,CASE-3

cases bulk-perform

Perform an action across multiple cases in a single API call

Usage

bash
pega cases bulk-perform [flags]

Source endpoint: PATCH /casesview 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
--actionoptionYesCase action ID
--casesoptionYesComma-separated case IDs
--dataoptionNoJSON content (inline, @file, or -)
--page-instructionsoptionNoJSON page-instructions array (inline, @file, or -)
--attachmentsoptionNoJSON attachments array (inline, @file, or -)
--running-modeoptionNoLaunchpad-only: async (returns 202 with jobID)

Examples

sh
pega cases bulk-perform --action Approve --cases CASE-1,CASE-2,CASE-3
sh
pega cases bulk-perform --action Approve --cases CASE-1,CASE-2 --data '{"reason":"OK"}'

cases calc-fields

Compute calculated fields for a case view

Usage

bash
pega cases calc-fields <caseId> [flags]

Source endpoint: POST /cases/{caseID}/views/{viewID}/calculated_fieldsview command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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
--viewoptionYesView name
--dataoptionYesJSON: {calculations:{fields:[{name:".X",context:"content"}]}} (inline, @file, or -)

Examples

sh
pega cases calc-fields MYAPP-CASE-1 --view Summary --data @fields.json

cases create

Create a new Pega case (V2)

Usage

bash
pega cases create [flags]

Source endpoint: POST /casesview 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
--typeoptionYesCase type ID
--dataoptionNoJSON content (inline, @file, or - for stdin)

Examples

sh
pega cases create --type InsuranceClaim
sh
pega cases create --type InsuranceClaim --data @claim.json

cases delete

Delete a Pega case (V2)

Usage

bash
pega cases delete <caseId> [flags]

Source endpoint: DELETE /cases/{caseID}view command source

Arguments

ArgumentRequiredDescription
caseIdYesFull case 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 cases delete MYAPP-CASE-1

cases discard-updates

Release the case lock (discard pending updates)

Usage

bash
pega cases discard-updates <caseId> [flags]

Source endpoint: DELETE /cases/{caseID}/updatesview command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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

Examples

sh
pega cases discard-updates MYAPP-CASE-1

cases get

Get a Pega case by ID

Usage

bash
pega cases get <caseId> [flags]

Source endpoint: GET /cases/{caseID}view command source

Arguments

ArgumentRequiredDescription
caseIdYesFull case 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 cases get MYAPP-CASE-1 --fields status,urgency

cases get-action

Get the view/form for a specific action on a case

Usage

bash
pega cases get-action <caseId> [flags]

Source endpoint: GET /cases/{caseID}/actions/{actionID}view command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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
--actionoptionYesCase action ID

Examples

sh
pega cases get-action MYAPP-CASE-1 --action Approve

cases get-view

Get a named view for a case

Usage

bash
pega cases get-view <caseId> [flags]

Source endpoint: GET /cases/{caseID}/views/{viewID}view command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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
--viewoptionYesView name

Examples

sh
pega cases get-view MYAPP-CASE-1 --view Summary

cases list-ancestors

List all ancestor cases in the case hierarchy

Usage

bash
pega cases list-ancestors <caseId> [flags]

Source endpoint: GET /cases/{caseID}/ancestorsview command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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

Examples

sh
pega cases list-ancestors MYAPP-CASE-1

cases list-attachment-categories

List configured attachment categories on a case

Usage

bash
pega cases list-attachment-categories <caseId> [flags]

Source endpoint: GET /cases/{caseID}/attachment_categoriesview command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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

Examples

sh
pega cases list-attachment-categories MYAPP-CASE-1

cases list-descendants

List all descendant cases in the case hierarchy

Usage

bash
pega cases list-descendants <caseId> [flags]

Source endpoint: GET /cases/{caseID}/descendantsview command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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

Examples

sh
pega cases list-descendants MYAPP-CASE-1

cases list-stages

List stages for a case

Usage

bash
pega cases list-stages <caseId> [flags]

Source endpoint: GET /cases/{caseID}/stagesview command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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

Examples

sh
pega cases list-stages MYAPP-CASE-1

cases perform-action

Perform a case-level action

Usage

bash
pega cases perform-action <caseId> [flags]

Source endpoint: PATCH /cases/{caseID}/actions/{actionID}view command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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
--actionoptionYesCase action ID
--dataoptionNoJSON content (inline, @file, or -)
--page-instructionsoptionNoJSON page-instructions array (inline, @file, or -)
--attachmentsoptionNoJSON attachments array (inline, @file, or -)

Examples

sh
pega cases perform-action MYAPP-CASE-1 --action Approve
sh
pega cases perform-action MYAPP-CASE-1 --action Approve --data '{"reason":"OK"}'
sh
pega cases perform-action MYAPP-CASE-1 --action Approve --data @form.json --page-instructions @pi.json

cases recalculate

Recalculate calculated fields and when conditions for a case action

Usage

bash
pega cases recalculate <caseId> [flags]

Source endpoint: PATCH /cases/{caseID}/actions/{actionID}/recalculateview command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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
--actionoptionYesCase action ID
--dataoptionYesJSON: {calculations:{fields:[{name:".X",context:"content"}]}} (inline, @file, or -)

Examples

sh
pega cases recalculate MYAPP-CASE-1 --action Approve --data '{"calculations":{"fields":[{"name":".Total","context":"content"}]}}'

cases refresh-action

Refresh a case action view (re-render form)

Usage

bash
pega cases refresh-action <caseId> [flags]

Source endpoint: PATCH /cases/{caseID}/actions/{actionID}/refreshview command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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
--actionoptionYesCase action ID
--dataoptionNoJSON content (inline, @file, or -)
--page-instructionsoptionNoJSON page-instructions array (inline, @file, or -)
--interest-pageoptionNoEmbedded list row reference. Infinity '25+
--interest-page-action-idoptionNoAction ID of the inner action. Infinity '25+
--attachmentsoptionNoNOT ACCEPTED for refresh — INVALID_ARGS if passed

Examples

sh
pega cases refresh-action MYAPP-CASE-1 --action Approve

cases refresh-view

Refresh a named case view

Usage

bash
pega cases refresh-view <caseId> [flags]

Source endpoint: PATCH /cases/{caseID}/views/{viewID}/refreshview command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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
--viewoptionYesView name
--dataoptionNoJSON content (inline, @file, or -)
--page-instructionsoptionNoJSON page-instructions array
--interest-pageoptionNoEmbedded page reference (e.g. .PageList(1))
--interest-page-action-idoptionNoAction ID of the inner action
--attachmentsoptionNoNOT ACCEPTED — refresh-shape rejects attachments

Examples

sh
pega cases refresh-view MYAPP-CASE-1 --view Summary

cases stage-go

Move the case to a specific named stage

Usage

bash
pega cases stage-go <caseId> [flags]

Source endpoint: PUT /cases/{caseID}/stages/{stageID}view command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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
--stageoptionYesStage name

Examples

sh
pega cases stage-go MYAPP-CASE-1 --stage Resolution

cases stage-next

Advance the case to the next stage

Usage

bash
pega cases stage-next <caseId> [flags]

Source endpoint: POST /cases/{caseID}/stages/nextview command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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

Examples

sh
pega cases stage-next MYAPP-CASE-1

cases start-process

Start an optional or stage process on a case

Usage

bash
pega cases start-process <caseId> [flags]

Source endpoint: POST /cases/{caseID}/processes/{processID}view command source

Arguments

ArgumentRequiredDescription
caseIdYesCase 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
--processoptionYesProcess ID

Examples

sh
pega cases start-process MYAPP-CASE-1 --process pyAddNote