updateBacklogTask method
Update an existing backlog task.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter agentSpaceId :
The unique identifier for the agent space containing the task
Parameter taskId :
The unique identifier of the task to update
Parameter clientToken :
Client-provided token for idempotent operations
Parameter taskStatus :
Updated task status
Implementation
Future<UpdateBacklogTaskResponse> updateBacklogTask({
required String agentSpaceId,
required String taskId,
String? clientToken,
TaskStatus? taskStatus,
}) async {
final $payload = <String, dynamic>{
'clientToken': clientToken ?? _s.generateIdempotencyToken(),
if (taskStatus != null) 'taskStatus': taskStatus.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/backlog/agent-space/${Uri.encodeComponent(agentSpaceId)}/tasks/${Uri.encodeComponent(taskId)}',
hostPrefix: 'dp.',
exceptionFnMap: _exceptionFns,
);
return UpdateBacklogTaskResponse.fromJson(response);
}