max developers SDK 0.4.0
API reference

Edit Task

PUT /groups/{group_id}/tasks/{task_id}

This operation can change data. Use resources you control.

Request fields

FieldLocationTypeRequired
group_idpathstringRequired
task_idpathstringRequired
assignee_idbodystring | nullOptional
due_datebodystring | nullOptional
statusbodyopen | doneOptional
titlebodystringRequired

Examples

Use the environment settings from Quickstart. Replace sample resource IDs with your own. The examples show the required request shape.

import { MaxClient } from "@elmax/api";

const max = new MaxClient({
  baseURL: process.env.MAX_API_URL,
  apiKey: process.env.MAX_API_KEY,
});

const result = await max.api.putGroupsGroupIdTasksTaskId({
  "path": {
    "group_id": "grp_example",
    "task_id": "example"
  },
  "body": {
    "title": "Welcome"
  }
});
console.log(result);
import os
from elmax_ai import MaxClient

with MaxClient(base_url=os.environ["MAX_API_URL"], api_key=os.environ["MAX_API_KEY"]) as max:
    result = max.api.put_groups_group_id_tasks_task_id(**{'path': {'group_id': 'grp_example', 'task_id': 'example'},
 'body': {'title': 'Welcome'}})
    print(result)

Errors and recovery