postTags(caseID, tags, c11nEnv)
Adds tags to a specific case.
Returns
A Promise that resolves to an object.
Parameters
Name | Type | Description | Required |
caseID | string | The ID of the case to which the tags must be added. | ✅ |
tags | array.<object> | The list of tags that must be added to the case. | ✅ |
c11nEnv | object | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API adds the tags, Tag1
and
Tag2
to the case whose ID is W-102
.
PCore.getTagUtils().postTags('W-102', [{ Name : 'Tag1'}, {Name : 'Tag2'}], 'app/primary_1')
.then(() => {
// success
}).catch(err => {
// Error handling
});
Previous topic getTags(caseID, c11nEnv) Next topic removeTag(caseID, tagID, c11nEnv)