Prefect · Capability

Prefect Cloud API — Deployments

Prefect Cloud API — Deployments. 32 operations. Lead operation: Create Deployment. Self-contained Naftiko capability covering one Prefect business surface.

Run with Naftiko PrefectDeployments

What You Can Do

POST
Createdeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentspost — Create Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments
POST
Bulkdeletedeploymentsapiaccountsaccountidworkspacesworkspaceiddeploymentsbulkdeletepost — Bulk Delete Deployments
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/bulk-delete
POST
Countdeploymentsapiaccountsaccountidworkspacesworkspaceiddeploymentscountpost — Count Deployments
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/count
POST
Readdeploymentsapiaccountsaccountidworkspacesworkspaceiddeploymentsfilterpost — Read Deployments
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/filter
POST
Getscheduledflowrunsfordeploymentsapiaccountsaccountidworkspacesworkspaceiddeploymentsgetscheduledflowrunspost — Get Scheduled Flow Runs For Deployments
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/get-scheduled-flow-runs
POST
Readactorsdeploymentaccessapiaccountsaccountidworkspacesworkspaceiddeploymentsmyaccesspost — Read Actors Deployment Access
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/my-access
GET
Readdeploymentbynameapiaccountsaccountidworkspacesworkspaceiddeploymentsnameflownamedeploymentnameget — Read Deployment By Name
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/name/{flow-name}/{deployment-name}
POST
Paginatedeploymentsapiaccountsaccountidworkspacesworkspaceiddeploymentspaginatepost — Paginate Deployments
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/paginate
PATCH
Updatedeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidpatch — Update Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}
GET
Readdeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidget — Read Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}
DELETE
Deletedeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsiddelete — Delete Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}
GET
Readdeploymentaccessapiaccountsaccountidworkspacesworkspaceiddeploymentsidaccessget — Read Deployment Access
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/access
PUT
Setdeploymentaccessapiaccountsaccountidworkspacesworkspaceiddeploymentsidaccessput — Set Deployment Access
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/access
POST
Branchfromdeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidbranchpost — Branch From Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/branch
POST
Createflowrunfromdeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidcreateflowrunpost — Create Flow Run From Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/create-flow-run
POST
Bulkcreateflowrunsfromdeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidcreateflowrunbulkpost — Bulk Create Flow Runs From Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/create-flow-run/bulk
POST
Disabledeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsiddisablepost — Disable Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/disable
POST
Enabledeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidenablepost — Enable Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/enable
POST
Pausedeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidpausedeploymentpost — Pause Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/pause-deployment
POST
Resumedeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidresumedeploymentpost — Resume Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/resume-deployment
POST
Scheduledeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidschedulepost — Schedule Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/schedule
GET
Readdeploymentschedulesapiaccountsaccountidworkspacesworkspaceiddeploymentsidschedulesget — Read Deployment Schedules
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/schedules
POST
Createdeploymentschedulesapiaccountsaccountidworkspacesworkspaceiddeploymentsidschedulespost — Create Deployment Schedules
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/schedules
PATCH
Updatedeploymentscheduleapiaccountsaccountidworkspacesworkspaceiddeploymentsidschedulesscheduleidpatch — Update Deployment Schedule
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/schedules/{schedule-id}
DELETE
Deletedeploymentscheduleapiaccountsaccountidworkspacesworkspaceiddeploymentsidschedulesscheduleiddelete — Delete Deployment Schedule
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/schedules/{schedule-id}
POST
Resumedeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidsetscheduleactivepost — Resume Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/set-schedule-active
POST
Pausedeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidsetscheduleinactivepost — Pause Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/set-schedule-inactive
POST
Paginatedeploymentversionsapiaccountsaccountidworkspacesworkspaceiddeploymentsidversionspaginatepost — Paginate Deployment Versions
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/versions/paginate
GET
Readdeploymentversionapiaccountsaccountidworkspacesworkspaceiddeploymentsidversionsversionidget — Read Deployment Version
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/versions/{version-id}
DELETE
Deletedeploymentversionapiaccountsaccountidworkspacesworkspaceiddeploymentsidversionsversioniddelete — Delete Deployment Version
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/versions/{version-id}
POST
Promotedeploymentversionapiaccountsaccountidworkspacesworkspaceiddeploymentsidversionsversionidpromotepost — Promote Deployment Version
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/versions/{version-id}/promote
GET
Workqueuecheckfordeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidworkqueuecheckget — Work Queue Check For Deployment
/v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/{id}/work-queue-check

MCP Tools

create-deployment

Create Deployment

bulk-delete-deployments

Bulk Delete Deployments

count-deployments

Count Deployments

read-deployments

Read Deployments

get-scheduled-flow-runs-deployments

Get Scheduled Flow Runs For Deployments

read-only
read-actors-deployment-access

Read Actors Deployment Access

read-deployment-name

Read Deployment By Name

read-only idempotent
paginate-deployments

Paginate Deployments

update-deployment

Update Deployment

idempotent
read-deployment

Read Deployment

read-only idempotent
delete-deployment

Delete Deployment

idempotent
read-deployment-access

Read Deployment Access

read-only idempotent
set-deployment-access

Set Deployment Access

idempotent
branch-deployment

Branch From Deployment

create-flow-run-deployment

Create Flow Run From Deployment

bulk-create-flow-runs-deployment

Bulk Create Flow Runs From Deployment

disable-deployment

Disable Deployment

enable-deployment

Enable Deployment

pause-deployment

Pause Deployment

resume-deployment

Resume Deployment

schedule-deployment

Schedule Deployment

read-deployment-schedules

Read Deployment Schedules

read-only idempotent
create-deployment-schedules

Create Deployment Schedules

update-deployment-schedule

Update Deployment Schedule

idempotent
delete-deployment-schedule

Delete Deployment Schedule

idempotent
resume-deployment-2

Resume Deployment

pause-deployment-2

Pause Deployment

paginate-deployment-versions

Paginate Deployment Versions

read-deployment-version

Read Deployment Version

read-only idempotent
delete-deployment-version

Delete Deployment Version

idempotent
promote-deployment-version

Promote Deployment Version

work-queue-check-deployment

Work Queue Check For Deployment

read-only idempotent

Capability Spec

prefect-deployments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Prefect Cloud API — Deployments
  description: 'Prefect Cloud API — Deployments. 32 operations. Lead operation: Create Deployment. Self-contained Naftiko
    capability covering one Prefect business surface.'
  tags:
  - Prefect
  - Deployments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PREFECT_API_KEY: PREFECT_API_KEY
capability:
  consumes:
  - type: http
    namespace: prefect-deployments
    baseUri: ''
    description: Prefect Cloud API — Deployments business capability. Self-contained, no shared references.
    resources:
    - name: api-accounts-account_id-workspaces-workspace_id-deployments
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/
      operations:
      - name: createdeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentspost
        method: POST
        description: Create Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-bulk_delete
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/bulk_delete
      operations:
      - name: bulkdeletedeploymentsapiaccountsaccountidworkspacesworkspaceiddeploymentsbulkdeletepost
        method: POST
        description: Bulk Delete Deployments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-count
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/count
      operations:
      - name: countdeploymentsapiaccountsaccountidworkspacesworkspaceiddeploymentscountpost
        method: POST
        description: Count Deployments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-filter
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/filter
      operations:
      - name: readdeploymentsapiaccountsaccountidworkspacesworkspaceiddeploymentsfilterpost
        method: POST
        description: Read Deployments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-get_scheduled_flow_r
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/get_scheduled_flow_runs
      operations:
      - name: getscheduledflowrunsfordeploymentsapiaccountsaccountidworkspacesworkspaceiddeploymentsgetscheduledflowrunspost
        method: POST
        description: Get Scheduled Flow Runs For Deployments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-my-access
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/my-access
      operations:
      - name: readactorsdeploymentaccessapiaccountsaccountidworkspacesworkspaceiddeploymentsmyaccesspost
        method: POST
        description: Read Actors Deployment Access
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-name-flow_name-deplo
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/name/{flow_name}/{deployment_name}
      operations:
      - name: readdeploymentbynameapiaccountsaccountidworkspacesworkspaceiddeploymentsnameflownamedeploymentnameget
        method: GET
        description: Read Deployment By Name
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: flow_name
          in: path
          type: string
          description: The name of the flow
          required: true
        - name: deployment_name
          in: path
          type: string
          description: The name of the deployment
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-paginate
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/paginate
      operations:
      - name: paginatedeploymentsapiaccountsaccountidworkspacesworkspaceiddeploymentspaginatepost
        method: POST
        description: Paginate Deployments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}
      operations:
      - name: updatedeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidpatch
        method: PATCH
        description: Update Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: readdeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidget
        method: GET
        description: Read Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
      - name: deletedeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsiddelete
        method: DELETE
        description: Delete Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-access
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/access
      operations:
      - name: readdeploymentaccessapiaccountsaccountidworkspacesworkspaceiddeploymentsidaccessget
        method: GET
        description: Read Deployment Access
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
      - name: setdeploymentaccessapiaccountsaccountidworkspacesworkspaceiddeploymentsidaccessput
        method: PUT
        description: Set Deployment Access
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-branch
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/branch
      operations:
      - name: branchfromdeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidbranchpost
        method: POST
        description: Branch From Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-create_flow_run
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/create_flow_run
      operations:
      - name: createflowrunfromdeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidcreateflowrunpost
        method: POST
        description: Create Flow Run From Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-create_flow_run-b
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/create_flow_run/bulk
      operations:
      - name: bulkcreateflowrunsfromdeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidcreateflowrunbulkpost
        method: POST
        description: Bulk Create Flow Runs From Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-disable
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/disable
      operations:
      - name: disabledeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsiddisablepost
        method: POST
        description: Disable Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-enable
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/enable
      operations:
      - name: enabledeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidenablepost
        method: POST
        description: Enable Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-pause_deployment
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/pause_deployment
      operations:
      - name: pausedeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidpausedeploymentpost
        method: POST
        description: Pause Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-resume_deployment
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/resume_deployment
      operations:
      - name: resumedeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidresumedeploymentpost
        method: POST
        description: Resume Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-schedule
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/schedule
      operations:
      - name: scheduledeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidschedulepost
        method: POST
        description: Schedule Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-schedules
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/schedules
      operations:
      - name: readdeploymentschedulesapiaccountsaccountidworkspacesworkspaceiddeploymentsidschedulesget
        method: GET
        description: Read Deployment Schedules
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
      - name: createdeploymentschedulesapiaccountsaccountidworkspacesworkspaceiddeploymentsidschedulespost
        method: POST
        description: Create Deployment Schedules
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-schedules-schedul
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/schedules/{schedule_id}
      operations:
      - name: updatedeploymentscheduleapiaccountsaccountidworkspacesworkspaceiddeploymentsidschedulesscheduleidpatch
        method: PATCH
        description: Update Deployment Schedule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: schedule_id
          in: path
          type: string
          description: The schedule id
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletedeploymentscheduleapiaccountsaccountidworkspacesworkspaceiddeploymentsidschedulesscheduleiddelete
        method: DELETE
        description: Delete Deployment Schedule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: schedule_id
          in: path
          type: string
          description: The schedule id
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-set_schedule_acti
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/set_schedule_active
      operations:
      - name: resumedeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidsetscheduleactivepost
        method: POST
        description: Resume Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-set_schedule_inac
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/set_schedule_inactive
      operations:
      - name: pausedeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidsetscheduleinactivepost
        method: POST
        description: Pause Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-versions-paginate
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/versions/paginate
      operations:
      - name: paginatedeploymentversionsapiaccountsaccountidworkspacesworkspaceiddeploymentsidversionspaginatepost
        method: POST
        description: Paginate Deployment Versions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-versions-version_
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/versions/{version_id}
      operations:
      - name: readdeploymentversionapiaccountsaccountidworkspacesworkspaceiddeploymentsidversionsversionidget
        method: GET
        description: Read Deployment Version
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: version_id
          in: path
          type: string
          description: The version id
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
      - name: deletedeploymentversionapiaccountsaccountidworkspacesworkspaceiddeploymentsidversionsversioniddelete
        method: DELETE
        description: Delete Deployment Version
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: version_id
          in: path
          type: string
          description: The version id
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-versions-version_
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/versions/{version_id}/promote
      operations:
      - name: promotedeploymentversionapiaccountsaccountidworkspacesworkspaceiddeploymentsidversionsversionidpromotepost
        method: POST
        description: Promote Deployment Version
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: version_id
          in: path
          type: string
          description: The version id
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-accounts-account_id-workspaces-workspace_id-deployments-id-work_queue_check
      path: /api/accounts/{account_id}/workspaces/{workspace_id}/deployments/{id}/work_queue_check
      operations:
      - name: workqueuecheckfordeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentsidworkqueuecheckget
        method: GET
        description: Work Queue Check For Deployment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The deployment id
          required: true
        - name: account_id
          in: path
          type: string
          required: true
        - name: workspace_id
          in: path
          type: string
          required: true
        - name: x-prefect-api-version
          in: header
          type: string
  exposes:
  - type: rest
    namespace: prefect-deployments-rest
    port: 8080
    description: REST adapter for Prefect Cloud API — Deployments. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments
      name: api-accounts-account-id-workspaces-workspace-id-deployments
      description: REST surface for api-accounts-account_id-workspaces-workspace_id-deployments.
      operations:
      - method: POST
        name: createdeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentspost
        description: Create Deployment
        call: prefect-deployments.createdeploymentapiaccountsaccountidworkspacesworkspaceiddeploymentspost
        with:
          account_id: rest.account_id
          workspace_id: rest.workspace_id
          x-prefect-api-version: rest.x-prefect-api-version
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/accounts/{account-id}/workspaces/{workspace-id}/deployments/bulk-delete
      name: api-accounts-account-id-workspaces-workspace-id-deployments-bulk-delete
      description: REST surface for api-accounts-account_id-workspaces-workspace_id-deployments-bulk_delete.
      operations:
      - method: POST
        name: bulkdeletedeploymentsapiaccountsaccountidworkspacesworkspaceiddeploymentsbulkdeletepost
        description: Bulk Delete Deployments
        call: prefect-deployments.bulkdeletedeploymentsapiaccountsaccountidworkspacesworkspaceiddeploymentsbulkdeletepost
        with:
          workspace_id: rest.workspace_id
          account_id: rest.account_id
          x-prefect-api-version: rest.x-prefect-api-version
          body: rest.body
        outputParameters:
        - type: object
          mapping

# --- truncated at 32 KB (73 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/prefect/refs/heads/main/capabilities/prefect-deployments.yaml