DX API: How to create the content payload for assignment api

I’m using react with DX Api integration. I’m trying to build the custom UI elements by using the “uiResource” information provided by the case api response.

I’m unable to figure out how to create the payload for assignment api which gets triggered on click of next button.

Here is the sample payload, my question is regarding the “content” property (in bold):

{
“content”:{“EditAddress”:“No”,“ConfirmDisclosure”:“”},
“pageInstructions”:
}

@VinitK17138924

I’m not sure about your question. That’s the correct way to pass the payload for your application’s custom fields, assuming those are scalar fields. Please ensure that you’re passing the ETag as part of the request headers. AssignmentID and Action ID as part of the URL.

Please check the network logs if you’re running into any errors.

@RameshSangili

Thanks for your response.

Given above is a sample json which I have provided for example, but I don’t know how to identify the expected content payload for the respective assignment api.

@VinitK17138924

This needs to be coordinated with your Pega Development team to understand the required properties that need to be sent for each assignment completion. For example, the first assignment is to capture the Customer details, and then you have to work with your Pega development team to understand the data model for Customer data. Based on data model, then. you have to design the payload to submit it. If the second assignment is approval step, then it may requires approval notes then you have to work with Pega team to understand the details required on the 2nd assignment.