deleteParticipant(caseID, participantID, c11nEnv)
Deletes an existing participant linked to a case.
Returns
A Promise that resolves to an object.
Parameters
Name | Type | Description | Required |
caseID | string | The ID of the case whose linked participant must be deleted. | ✅ |
participantID | string | The ID of the participant to be deleted. | ✅ |
c11nEnv | object | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API deletes an existing participant of a case whose ID is
W-102
.
PCore.getStakeholderUtils().deleteParticipant('W-102', participantData, 'app/primary_1')
.then(updatedParticipantData => {
// updatedParticipantData
}).catch(err => {
// errors
});
Previous topic createParticipant(caseID, participantRoleID, participantData, c11nEnv) Next topic getParticipant(caseID, participantID, c11nEnv)