Skip to main content
PUT
/
modules
/
{module_id}
Update Module
curl --request PUT \
  --url https://api.docketqa.com/modules/{module_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "title": "<string>",
  "steps": [
    {
      "step_number": 123,
      "type": "<string>",
      "action": "<string>",
      "use_vision": true,
      "test_blueprint_module_id": 123,
      "api_request": {
        "url": "<string>",
        "method": "<string>",
        "headers": {},
        "body": {},
        "timeout": 123,
        "retries": 123,
        "backoff_seconds": 123,
        "should_refresh_page": true
      },
      "trigger_run_config": {
        "test_blueprint_id": 123
      },
      "assert_images_count": 123,
      "disable_self_healing": true,
      "click_count": 123,
      "hold_start_duration": 123,
      "hold_end_duration": 123
    }
  ],
  "device_type": "<string>",
  "device_name": "<string>",
  "viewport_width": 123,
  "viewport_height": 123,
  "browser_zoom": 123,
  "test_blueprint_category_id": 123,
  "folder_path": "<string>"
}
'
{
  "message": "<string>",
  "module": {
    "id": 123,
    "title": "<string>",
    "type": "<string>",
    "status": "<string>",
    "device_type": "<string>",
    "device_name": "<string>",
    "company_id": 123,
    "browser_zoom": 123,
    "viewport_width": 123,
    "viewport_height": 123,
    "test_blueprint_category_id": 123,
    "test_blueprint_category_name": "<string>",
    "folder_path": "<string>",
    "test_steps": [
      {
        "id": 123,
        "step_number": 123,
        "type": "<string>",
        "action": "<string>",
        "use_vision": true,
        "test_blueprint_module_id": 123,
        "api_request": {},
        "trigger_run_config": {},
        "disable_self_healing": true,
        "click_count": 123,
        "hold_start_duration": 123,
        "hold_end_duration": 123,
        "assert_images_count": 123,
        "attached_file_ids": [
          123
        ]
      }
    ],
    "test_blueprints_using_module": [
      {}
    ],
    "usage_count": 123,
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}
Update an existing module’s title, browser settings, and steps. When steps are provided, all existing steps are replaced with the new set.
module_id
integer
required
The ID of the module to update.

Request body

All fields are optional. Only provided fields will be updated.
title
string
The updated module name. Must be between 1 and 128 characters and unique within your account.
steps
object[]
The new set of steps for the module. Replaces all existing steps.
device_type
string
The device to run the module on. Must be one of:
  • "browser" — desktop browser
  • "android" — Android device
  • "ios" — iOS device
device_name
string
The specific device name to use for mobile testing.
viewport_width
integer
Browser viewport width in pixels.
viewport_height
integer
Browser viewport height in pixels.
browser_zoom
number
Browser zoom level. Must be between 0.75 and 2.0.
test_blueprint_category_id
integer
The ID of the test suite this module belongs to.
folder_path
string
The folder path for organizing the module.

Example request body

{
  "title": "Updated Login Module",
  "viewport_width": 1440,
  "viewport_height": 900,
  "browser_zoom": 1,
  "steps": [
    {
      "step_number": 1,
      "type": "act",
      "action": "Navigate to the updated login page",
      "use_vision": false
    },
    {
      "step_number": 2,
      "type": "step_module",
      "action": "Run nested auth module",
      "test_blueprint_module_id": 50
    }
  ]
}

Response

message
string
A confirmation message (e.g. "Module updated successfully").
module
object
The updated module object.

Example response

{
  "message": "Module updated successfully",
  "module": {
    "id": 963,
    "title": "Updated Login Module",
    "type": "step_module",
    "status": "active",
    "device_type": "browser",
    "device_name": null,
    "company_id": 23,
    "browser_zoom": 1.0,
    "viewport_width": 1440,
    "viewport_height": 900,
    "test_blueprint_category_id": null,
    "folder_path": "/",
    "usage_count": 0,
    "test_blueprints_using_module": [],
    "test_steps": [
      {
        "id": 23108,
        "step_number": 1,
        "type": "act",
        "action": "Navigate to the updated login page",
        "use_vision": false,
        "test_blueprint_module_id": null,
        "api_request": null,
        "trigger_run_config": null,
        "disable_self_healing": false,
        "click_count": 1
      },
      {
        "id": 23109,
        "step_number": 2,
        "type": "step_module",
        "action": "Run nested auth module",
        "use_vision": false,
        "test_blueprint_module_id": 50,
        "api_request": null,
        "trigger_run_config": null,
        "disable_self_healing": false,
        "click_count": 1
      }
    ],
    "created_at": "2025-12-13T18:56:48.692214+00:00",
    "updated_at": "2025-12-13T20:00:51.903151+00:00"
  }
}
Updating a module replaces all existing steps with the steps provided in the request body. Make sure to include all steps you want to keep.