Skip to content

Todos.Update uses wrong endpoint - missing /buckets/{projectID}/ segment #259

Description

@pravashkarki

Description

TodosService.Update() in pkg/basecamp/todos.go:407 calls:

s.client.parent.gen.UpdateTodoWithBodyWithResponse(ctx, s.client.accountID, todoID, ...)

This sends PUT /{accountID}/todos/{todoID}.json instead of the documented PUT /buckets/{projectID}/todos/{todoID}.json.

Impact

The shorthand endpoint accepts the request (returns 200) but silently ignores the description field. Other fields like content and due_on appear to work, making this hard to diagnose.

This affects the CLI (basecamp todos update --description) and any SDK consumer trying to set a todo's description.

Related CLI issue: basecamp/basecamp-cli#422

Expected

Todos.Update() should use the project-scoped endpoint: PUT /buckets/{projectID}/todos/{todoID}.json

Version

basecamp-sdk/go v0.7.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions