Skip to content

todos update --description silently fails (wrong API endpoint) #422

Description

@pravashkarki

Description

basecamp todos update <id> --description "text" --in <project> returns 200 OK but the description/notes field is never updated.

Root Cause

The CLI sends PUT /todos/{id} instead of the documented PUT /buckets/{project_id}/todos/{id}.json. The shorthand endpoint accepts the request but silently ignores the description field.

Steps to Reproduce

# This does NOT update the description (wrong endpoint)
basecamp todos update 123 --description "test" --in 456 -vv
# Trace shows: PUT https://3.basecampapi.com/{account}/todos/123# This DOES work (correct endpoint)
basecamp api put "/buckets/456/todos/123.json" -d '{"description": "<p>test</p>"}'# Trace shows: PUT https://3.basecampapi.com/{account}/buckets/456/todos/123.json

Expected Behavior

todos update --description should use the full /buckets/{project_id}/todos/{id}.json endpoint so the description field is persisted.

Environment

  • OS: macOS 13.5
  • CLI version: latest (installed via brew)

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