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
Description
TodosService.Update()inpkg/basecamp/todos.go:407calls:This sends
PUT /{accountID}/todos/{todoID}.jsoninstead of the documentedPUT /buckets/{projectID}/todos/{todoID}.json.Impact
The shorthand endpoint accepts the request (returns 200) but silently ignores the
descriptionfield. Other fields likecontentanddue_onappear 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}.jsonVersion
basecamp-sdk/go v0.7.3