Skip to main content

Assignment

A sub namespace of Document, exclusive for assignment operations


update

Description

This method can be used to update an assignment field/s.

Method(s)

1   declare function update(
2 assignmentId: string,
3 documentId: string,
4 documentType: string,
5 params: { newValuesModel?: any } = {}
6 ): Promise<AssignmentDto>
ParameterTypeRequiredDefaultsDescription
assignmentIdstringtrueAssignment id
documentIdstringtrueDocumentId id
documentTypestringtrueDocument type
newValuesModelanyfalseNew values to update assignment

Basic Usage

SW.Document.Assignment.update(
"dd54bd31-376f-4fe7-b840-102016759b6b",
"570f95fe-6b41-43a5-830f-cb644e6285e0",
"Skill.Module.BusinessObjects.Deliverable",
{ newValuesModel: { User: newExecutorId } }
);