TaskServices.MarkTaskCompleteAsync
Description
The API completes the specified task ID inside the AI Command Center.
Signature [C#]
Task MarkTaskCompleteAsync(int taskId)
Properties
Input
| Property | Description |
|---|---|
| taskId | Specify the task ID to be assigned to a user. |
Remarks
Use MarkTaskCompleteAsync API to complete a task in the connected AI Command Center.
Example
C#
public void CompleteTask()
{
IControlRoomContext context = LoginControlRoom("RegularBuild", "BasicAuth");
int taskId = 1;
Task.Run(() => context.Tasks.MarkTaskCompleteAsync(taskId)).Wait();
}
C#
public IControlRoomContext LoginControlRoom()
{
IControlRoomContext context;
string connectionString;
connectionString = "ServerUrl=https://demo.onnitellibuddies.com;UserName=demoadmin;Password=password";
context = new ControlRoomContext(connectionString);
context.Open();
return context;
}