startTaskJson
abstract suspend fun startTaskJson(context: Ctx, request: TaskCreateJsonRequest): TaskCreatedResponse
Starts a new task with JSON input.
Return
Response containing the new taskId.
Parameters
context
Context for the request.
request
Parameters for task creation.
Throws
if task creation fails.
Samples
runBlocking {
val response =
client.startTaskJson(
TaskCreateJsonRequest(
clientRequestId = "unique-req-123",
taskType = "document.review",
input =
buildJsonObject {
put("documentId", "doc-123")
},
),
)
println("Started task: ${response.taskId}")
}Content copied to clipboard