Skip to content

fix: handle array response from routine create/update API#1

Merged
asabirov merged 1 commit intomainfrom
fix/routine-create-response-array
Mar 29, 2026
Merged

fix: handle array response from routine create/update API#1
asabirov merged 1 commit intomainfrom
fix/routine-create-response-array

Conversation

@asabirov
Copy link
Copy Markdown
Owner

Summary

Test plan

  • go build ./... passes
  • go test ./... passes
  • Manual: hevycli routine create --file routine.json succeeds

The Hevy API returns the routine field as an array in POST/PUT
responses, but the client expected a single object, causing unmarshal
errors when creating or updating routines.

Fixes obay#2
@asabirov asabirov merged commit e30592e into main Mar 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

routine create fails to parse API response after accepting valid folder_id

1 participant