Skip to content

fix: assessmentresult list uses correct current-assessment-result endpoint#23

Merged
thrashr888 merged 1 commit intothrashr888:mainfrom
rchandnaWUSTL:fix/assessment-result-endpoint
Apr 30, 2026
Merged

fix: assessmentresult list uses correct current-assessment-result endpoint#23
thrashr888 merged 1 commit intothrashr888:mainfrom
rchandnaWUSTL:fix/assessment-result-endpoint

Conversation

@rchandnaWUSTL
Copy link
Copy Markdown
Contributor

The assessmentresult list command was hitting /api/v2/workspaces//assessment-results which returns 404. The correct endpoint is /api/v2/workspaces//current-assessment-result as documented in the HCP Terraform API and confirmed via the workspace relationships metadata.

Changes

  • Updated assessmentresult_list.go to use the correct endpoint
  • Updated all test cases in assessmentresult_list_test.go to match the new endpoint

Verification

The fix updates the API endpoint from the incorrect assessment-results to the correct current-assessment-result path. The assessmentresult read command continues to use the correct /api/v2/assessment-results/ endpoint unchanged.

@thrashr888 thrashr888 merged commit 010fe7f into thrashr888:main Apr 30, 2026
1 of 3 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.

2 participants