---
title: "Get the latest draft playbook version for a playbook"
method: GET
path: "/workspace/{ws_id}/playbooks/{id}/draft"
tags: ["Workflows"]
---

# Get the latest draft playbook version for a playbook

`GET /workspace/{ws_id}/playbooks/{id}/draft`

Get the latest draft playbook version for a playbook

## Path parameters

- `ws_id` string, required
- `id` string, required

## Response `200`

Latest draft version

- ApiPlaybookVersionWithSubflowNamesResponse — Playbook version data
  - `actions` ModelsPlaybookAction[] — List of actions used in the playbook
    - `action_full_name` string
    - `collection_icon_uri` string
    - `collection_name` string
    - `full_name` string
    - `id` string — TODO: migrate automations to remove the below fields + remove usage from actions-cell-renderer UI component
    - `name` string
  - `active` boolean — Whether the playbook is currently active
  - `analyst_copilot_workflow` boolean — Whether this is an Analyst Copilot workflow
  - `automation_origin_id` string — The ID of the original playbook if this is a replica
  - `automation_type` string — The type of automation
  - `branch` string
  - `branched_from` integer
  - `created_at` integer
  - `created_by` string
  - `custom_timeout` integer — Custom execution timeout in hours
  - `deleted` string — When the playbook was deleted
  - `display_settings` ModelsRequestDisplaySettings — Settings for displaying the playbook in the self-service portal.
    - `description` string — The description in the portal
    - `display_as_html` boolean — Whether to render the description as HTML
    - `icon` string — The icon URI
    - `name` string — The display name in the portal
  - `has_published_version` boolean
  - `icon` string — The icon associated with the playbook
  - `id` string
  - `is_icon_selected_by_user` boolean — Whether the icon was manually selected
  - `is_otb` boolean — Whether this is an Out-Of-The-Box playbook
  - `is_published` boolean
  - `is_request` boolean — Whether the playbook is exposed as a self-service request
  - `link_type` string — Playbook version's link type
  - `max_concurrency_level` integer — Maximum number of concurrent executions (0 for unlimited)
  - `name` string — The name of the playbook
  - `notification_emails` string — A comma-separated list of emails for notifications
  - `pack` ModelsAutomationPack
    - `actions` string[]
    - `created_at` integer
    - `created_by` string
    - `deployed_from_other_ws_at` integer
    - `deployed_from_ws_name` string
    - `description` string
    - `display_name` string
    - `full_name` string
    - `has_replica_connection_mapping` boolean — HasReplicaConnectionMapping - is used in ui to determine if the user should be able to set connections on the pack
    - `id` string
    - `is_replica_connections_valid` boolean — HasReplicaConnectionMapping - is used in ui to determine if current connection mapping miss some mapping value
    - `link_type` string
    - `name` string
    - `primary_pack_id` string
    - `tags` string[]
    - `tenant_id` string
    - `updated_at` integer
    - `updated_by` string
    - `workspace_id` string
  - `pack_id` string — The ID of the automation pack containing this playbook
  - `playbook` string — The YAML definition of the playbook
  - `playbook_to_run_on_error` string — The ID of the playbook to run if this one fails
  - `preferred_engine_version` string — The preferred workflow engine version
  - `runner` string — The name of the runner group assigned to this playbook
  - `source` string
  - `step_transition_limit` integer — Maximum number of step transitions allowed in a single execution
  - `subflows_reference_to_name_mapping` object — Subflow reference IDs to playbook names mapping
  - `tags` string[] — Tags associated with the playbook
  - `tenant_id` string — The ID of the parent tenant
  - `updated_at` integer
  - `updated_by` string
  - `used_connections` string[] — List of connection IDs used by the playbook
  - `used_global_variables` string[] — List of used global variables
  - `used_subflows` string[] — List of subflow IDs used by the playbook
  - `used_tables` string[] — List of used tables
  - `version` string — The version of the playbook
  - `version_id` integer
  - `wizard_id` string — The ID of the wizard used to create this playbook
  - `workspace_id` string — The ID of the parent workspace

## Other responses

- `400` — Missing or invalid path parameter
- `500` — Internal server error

---

[API](https://skmtc.net/blinkops/apis/blink-rest-api.md) · [All operations](https://skmtc.net/blinkops/apis/blink-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/blinkops/blink-rest-api/versions/f043409736b2/schema)
