DX API v2 endpoint catalogue
On this page
Case types
| ID | Method | Path | What it does | Notes |
|---|---|---|---|---|
casetypes.list |
GET | casetypes |
List the case types the operator can create | |
casetypes.get |
GET | casetypes/{caseTypeID} |
Case type with its create view (uiResources) | Not served: 404 on Infinity 25.1 and 26.1.1. In Constellation the create form is the first assignment after POST cases, or casetypes.action with Create. |
casetypes.action |
GET | casetypes/{caseTypeID}/actions/{actionID} |
Case type action (create flow) view | GET …/actions/Create returns the create view on 26.1.1. |
Cases
| ID | Method | Path | What it does | Notes |
|---|---|---|---|---|
cases.create |
POST | cases |
Create a case | |
cases.get |
GET | cases/{caseID} |
Case details (caseInfo, assignments, actions) and its view | |
cases.delete |
DELETE | cases/{caseID} |
Delete a case that is still in its create stage | |
cases.history |
GET | cases/{caseID}/history |
Audit history of a case (not served by Infinity 26.1: use data view D_pyWorkHistory) | Not served: 404 on Infinity 26.1.1; getCaseHistory uses the D_pyWorkHistory data view instead. |
Case views & actions
| ID | Method | Path | What it does | Notes |
|---|---|---|---|---|
cases.view |
GET | cases/{caseID}/views/{viewID} |
A named view of the case (e.g. pyDetails) | |
cases.view.refresh |
PATCH | cases/{caseID}/views/{viewID}/refresh |
Re-evaluate a case view with pending changes (needs If-Match) | |
cases.action |
GET | cases/{caseID}/actions/{actionID} |
Case-wide (optional) action and its form | |
cases.action.perform |
PATCH | cases/{caseID}/actions/{actionID} |
Submit a case-wide action (needs If-Match) | |
cases.action.refresh |
PATCH | cases/{caseID}/actions/{actionID}/refresh |
Refresh a case action form (refresh-on-change) (needs If-Match) | |
cases.action.recalculate |
PATCH | cases/{caseID}/actions/{actionID}/recalculate |
Recalculate calculated fields of a case action form (needs If-Match) | calculations.fields may only name calculated (declare expression) properties; any other property gives a 500 Execution error. |
Stages
| ID | Method | Path | What it does | Notes |
|---|---|---|---|---|
cases.stages |
GET | cases/{caseID}/stages |
Stages of the case with visit status | |
cases.stages.next |
POST | cases/{caseID}/stages/next |
Move the case to the next stage (needs If-Match) | POST needs the case-level "change stage" privilege. |
cases.stages.jump |
PUT | cases/{caseID}/stages/{stageID} |
Jump the case to a given stage (needs If-Match) | PUT needs the "change stage" privilege. |
Attachments
| ID | Method | Path | What it does | Notes |
|---|---|---|---|---|
attachments.list |
GET | cases/{caseID}/attachments |
Attachments of a case | |
attachments.link |
POST | cases/{caseID}/attachments |
Attach uploaded files or URLs to a case | |
attachments.upload |
POST | attachments/upload |
Upload a file (multipart field "content"); returns a temporary attachment ID | |
attachments.get |
GET | attachments/{attachmentID} |
Download an attachment | A File attachment comes back as base64 text |
attachments.delete |
DELETE | attachments/{attachmentID} |
Delete an attachment | |
attachments.categories |
GET | cases/{caseID}/attachment_categories |
Attachment categories the operator may use on the case | → { attachment_categories: [{ ID, name, canCreate… }] }; cases/{caseID}/attachments/categories is 404. |
Followers
| ID | Method | Path | What it does | Notes |
|---|---|---|---|---|
followers.list |
GET | cases/{caseID}/followers |
Followers of a case | { followers: [{ name, ID, email }] }, or {} when nobody follows. |
followers.add |
POST | cases/{caseID}/followers |
Add followers | ID is the operator ID (D_OperatorID .pyUserIdentifier). |
followers.remove |
DELETE | cases/{caseID}/followers/{followerID} |
Remove a follower | followerID is the operator ID. |
Related cases
| ID | Method | Path | What it does | Notes |
|---|---|---|---|---|
related.list |
GET | cases/{caseID}/related_cases |
Related cases | {} when there are none; otherwise relatedCases with ID, name, caseTypeLabel, createTime and links (open, delete), no status. |
related.add |
POST | cases/{caseID}/related_cases |
Relate cases | answers 207 with a result per case; Pega relates only case types set up for it in the case type settings, otherwise the result carries "Case type is not related". Set up in App Studio: case type → Settings → Related case types. |
related.remove |
DELETE | cases/{caseID}/related_cases/{relatedCaseID} |
Remove a related case | the relatedCaseID is the full case key, as in the list's links.delete. |
Tags
| ID | Method | Path | What it does | Notes |
|---|---|---|---|---|
tags.list |
GET | cases/{caseID}/tags |
Tags on a case | { tagsList: [{ tagName, tagKey }] }. |
tags.add |
POST | cases/{caseID}/tags |
Add tags | answers 207 with a result per tag; a name with a space is refused ("Couldn't add tag."). |
tags.remove |
DELETE | cases/{caseID}/tags/{tagID} |
Remove a tag | tagID is the tagKey from tags.list; with the tag name Pega answers 200 and keeps the tag. |
Participants
| ID | Method | Path | What it does | Notes |
|---|---|---|---|---|
participants.list |
GET | cases/{caseID}/participants |
Participants of a case | |
participants.get |
GET | cases/{caseID}/participants/{participantID} |
One participant | |
participants.add |
POST | cases/{caseID}/participants |
Add a participant (needs If-Match) | If-Match required (400 ifMatchHeader without). The participant ID is the role ID (e.g. Customer). |
participants.update |
PATCH | cases/{caseID}/participants/{participantID} |
Update a participant (needs If-Match) | If-Match required. |
participants.remove |
DELETE | cases/{caseID}/participants/{participantID} |
Remove a participant (needs If-Match) | If-Match required. |
participants.roles |
GET | cases/{caseID}/participant_roles |
Participant roles of the case type | |
participants.role |
GET | cases/{caseID}/participant_roles/{participantRoleID} |
One participant role and its view |
Assignments
| ID | Method | Path | What it does | Notes |
|---|---|---|---|---|
assignments.get |
GET | assignments/{assignmentID} |
Assignment with its default action form | |
assignments.action |
GET | assignments/{assignmentID}/actions/{actionID} |
Assignment action form | |
assignments.action.perform |
PATCH | assignments/{assignmentID}/actions/{actionID} |
Submit an assignment action (needs If-Match) | |
assignments.action.refresh |
PATCH | assignments/{assignmentID}/actions/{actionID}/refresh |
Refresh an assignment form (refresh-on-change) (needs If-Match) | |
assignments.action.save |
PATCH | assignments/{assignmentID}/actions/{actionID}/save |
Save the assignment form for later (needs If-Match) | |
assignments.action.recalculate |
PATCH | assignments/{assignmentID}/actions/{actionID}/recalculate |
Recalculate calculated fields of an assignment form (needs If-Match) | calculations.fields may only name calculated (declare expression) properties; any other property gives a 500 Execution error. |
assignments.navigation |
PATCH | assignments/{assignmentID}/navigation_steps/{stepID} |
Jump to a step of a multi-step (screen flow) assignment (needs If-Match) | with step IDs from uiResources.navigation (AssignmentSF1…); jumping to the current step gives 409 Error_Jump_To_Same_Step. |
Data views
| ID | Method | Path | What it does | Notes |
|---|---|---|---|---|
dataviews.query |
POST | data_views/{dataViewID} |
Query a data page (select, filter, sort, paging) | |
dataviews.count |
POST | data_views/{dataViewID}/count |
Count the results of a data page query | |
dataviews.metadata |
GET | data_views/{dataViewID}/metadata |
Data page metadata (fields, parameters, queryability) | |
dataviews.get |
GET | data_views/{dataViewID} |
GET of a data page (page-type pages need it); parameters as a JSON object in dataViewParameters | |
dataviews.update |
PATCH | data_views/{dataViewID} |
Legacy: save through a data view (405 on 26.1: use the data object calls below) | Checked on 26.1.1: answers 405 even for a savable data page (D_Recipe); Constellation saves data records through data/{dataViewID} instead. |
dataobjects.view |
POST | data_views/{dataViewID}/views/{viewID} |
Open a data record in a view (e.g. pyEdit) of its lookup data page | returns the record and the view; used by Constellation before editing a data object. |
dataobjects.create |
POST | data/{dataViewID} |
Create a data record through a savable data page | |
dataobjects.update |
PATCH | data/{dataViewID} |
Update a data record through a savable data page (keys in data) | 200 with responseData; no eTag. An operator without edit rights on the data class gets 500 "lockInfo is null". |
dataobjects.replace |
PUT | data/{dataViewID} |
Replace a data record through a savable data page | |
dataobjects.delete |
DELETE | data/{dataViewID} |
Delete a data record (keys as dataViewParameters JSON) |
Messages
| ID | Method | Path | What it does | Notes |
|---|---|---|---|---|
messages.list |
GET | messages |
Pulse messages of a context (filterBy=context, filterFor=case ID) | |
messages.post |
POST | messages |
Post a Pulse message to a context (field context = case key) |
the case key goes in context; a contextID field is ignored and the message lands in no feed. |
messages.get |
GET | messages/{messageID} |
One Pulse message (ID like PEGASOCIAL M-1) | |
messages.edit |
PUT | messages/{messageID} |
Change the text of your own Pulse message or reply (Pega marks it isEdited) | the list then shows the new text with isEdited true. |
messages.delete |
DELETE | messages/{messageID} |
Delete a Pulse message | only the operator who posted it may delete it (403 otherwise). The list's pyIsDeleteEnabled was false even for the author's own message, so it does not tell who may delete. |
messages.reply |
POST | messages |
Reply to a Pulse message: context and parentMessageId are the parent message ID |
the reply comes back nested in the parent message's replies (full messages) in messages.list. |
messages.like |
POST | messages/{messageID}/likes |
Like a Pulse message or reply | what Constellation itself calls; messages.list then reports likedByMe/likeCount. |
messages.unlike |
DELETE | messages/{messageID}/likes |
Take back a like | |
mentions.types |
GET | mention_types |
What can be mentioned in Pulse (Users, Cases…) | [{ type: "Users", label: "User" }, { type: "Cases", label: "Case" }]. |
mentions.search |
GET | mentions |
People (or cases) to mention: mentionsType is a type from mention_types, e.g. Users | returns [{ mentionsID, caption }]; mentionsType must be the type ("Users"), the label gives 400. A message mentions someone by "@mentions); other markups are not recognised. |
Portals
| ID | Method | Path | What it does | Notes |
|---|---|---|---|---|
portals.get |
GET | portals/{portalName} |
Portal definition (navigation, pages) for the operator | |
components.get |
GET | components/{componentKey} |
A published DX component as Pega serves it (JavaScript; use the key with .js, e.g. Studio_Forms_MyForm.js) |