---
title: "Update Live Action"
method: PATCH
path: "/{automation_id}/"
---

# Update Live Action

`PATCH /{automation_id}/`

## Path parameters

- `automation_id` string, required

## Request body

- object
  - `program_id` string, required — ID of the program to update the prediction for
  - `match_id` string — Match ID from OPTA
  - `automation_actions` object[]
    - `enabled` boolean, required — action should be active or not
    - `action_type` 'goal' | 'penalty' | 'red_card' | 'yellow_card' | 'match_start' | 'match_half' | 'match_end' | 'substitution' | 'shot' | 'foul' | 'missed_penalty' | 'var_event', required — name of the action to be assigned
    - `widget_text` string — The prompt or question for the widget to be made
    - `widget_options` object[]
      - `description` string — The text associated with the widget option
    - `publish_delay` string — Delay publishing widgets (ISODuration format)
  - `status` boolean — to active live action automation
  - `match_scheduled_at` string, date — The UTC time that the automation will start
  - `sponsor_ids` string[]

## Response `200`

200

- object
  - `id` string
  - `match_id` string
  - `widget_timeout` string
  - `status` boolean
  - `widget_title` string
  - `enabled_by` object
    - `id` string
    - `name` unknown
    - `image_url` unknown
  - `match_scheduled_at` unknown
  - `automation_status` string
  - `automatedactions` object[]
    - `id` string
    - `action` string
    - `status` string
    - `widget_kind` string
    - `widget_uuid` unknown
    - `automation_partner_id` string
    - `is_active` boolean
    - `created_at` string
    - `updated_at` string
    - `text_poll` unknown

---

[API](https://skmtc.net/livelike/apis/engagement-suite.md) · [All operations](https://skmtc.net/livelike/apis/engagement-suite/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/livelike/engagement-suite/revisions/f3171d1c30f7/schema)
