Skip to content

[modified endpoint] Sync cloudos-cli with CloudOS API endpoint rename: /api/v2/jobs → /api/v2/jobsNew#362

Draft
danielboloc with Copilot wants to merge 2 commits into
mainfrom
copilot/sync-cloudos-cli-api-change
Draft

[modified endpoint] Sync cloudos-cli with CloudOS API endpoint rename: /api/v2/jobs → /api/v2/jobsNew#362
danielboloc with Copilot wants to merge 2 commits into
mainfrom
copilot/sync-cloudos-cli-api-change

Conversation

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Three /api/v2/jobs endpoints were renamed server-side (api-server PR #5656, commit 86303264). This patch updates all affected URL strings in the CLI and test mocks.

Overview

Syncs cloudos-cli with the CloudOS API server rename of /api/v2/jobs endpoints to /api/v2/jobsNew.

JIRA

  • N/A — upstream API contract change

Changes

  • cloudos_cli/jobs/job.py: Updates POST /api/v2/jobsPOST /api/v2/jobsNew in send_job (job run / bash job / bash array-job) and clone_resume_job (clone/resume); GET /api/v2/jobsGET /api/v2/jobsNew in get_job_relatedness
  • cloudos_cli/clos.py: Updates GET /api/v2/jobsGET /api/v2/jobsNew in get_job_list; PUT /api/v2/jobs/{id}/abortPUT /api/v2/jobsNew/{id}/abort in abort_job
  • 15 test files: Updates all responses/requests_mock mock URLs from /api/v2/jobs to /api/v2/jobsNew
  • cloudos_cli/_version.py: Bumps 2.91.02.91.1
  • CHANGELOG.md: Adds v2.91.1 patch entry

Endpoints not renamed (paths unchanged, only detected as modified in TypeScript): GET /api/v1/jobs/array-file/metadata, DELETE /api/v1/jobs/{job_id}/data, GET /api/v1/jobs/{job_id}/request-payload, PUT /api/v1/jobs — these already pass the required teamId query param.

Acceptance Criteria

Scenario 1 - cloudos job run submits to /api/v2/jobsNew

cloudos job run (and cloudos bash job / cloudos bash array-job) should POST to /api/v2/jobsNew?teamId=<workspace_id> instead of the old /api/v2/jobs.

Scenario 2 - cloudos job list / abort / clone / resume use updated paths
  • cloudos job list GETs from /api/v2/jobsNew
  • cloudos job abort PUTs to /api/v2/jobsNew/{id}/abort
  • cloudos job clone / cloudos job resume POST to /api/v2/jobsNew

DEV

Proof this feature/patch works in this environment

AZURE

Proof this feature/patch works in this environment

Interactive Analysis

Proof this feature/patch works in this environment

Copilot AI changed the title [WIP] Sync cloudos-cli with CloudOS API endpoint changes Sync cloudos-cli with CloudOS API endpoint rename: /api/v2/jobs → /api/v2/jobsNew Jun 18, 2026
Copilot AI requested a review from danielboloc June 18, 2026 17:13
@danielboloc danielboloc changed the title Sync cloudos-cli with CloudOS API endpoint rename: /api/v2/jobs → /api/v2/jobsNew [rename endpoint] Sync cloudos-cli with CloudOS API endpoint rename: /api/v2/jobs → /api/v2/jobsNew Jun 19, 2026
@danielboloc danielboloc changed the title [rename endpoint] Sync cloudos-cli with CloudOS API endpoint rename: /api/v2/jobs → /api/v2/jobsNew [modified endpoint] Sync cloudos-cli with CloudOS API endpoint rename: /api/v2/jobs → /api/v2/jobsNew Jun 19, 2026
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