updateParticipant(caseID, participantID, participantData, c11nEnv)
Updates the details of a participant for a case.
Returns
A Promise that resolves to an object.
Parameters
Name | Type | Description | Required |
caseID | string | The ID of the case whose participant details must be updated. | ✅ |
participantID | string | The ID of the participant whose details must be updated. | ✅ |
participantData | object | The new participant data. | ✅ |
c11nEnv | object | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API updates the details of an existing participant of a case
whose ID is W-102
.
PCore.getStakeholderUtils().updateParticipant('W-102', participantData, 'app/primary_1')
.then(updatedParticipantData => {
// updatedParticipantData
}).catch(err => {
// errors
});
Previous topic getRoleView(caseID, participantRoleID, c11nEnv) Next topic APIs in the TagUtils module