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

# Update Live Action

`PATCH /{automation_id}/`

## Request

- Base URL: `https://cf-blast.livelikecdn.com/api/v1/automation-football-live-action`
- URL: `https://cf-blast.livelikecdn.com/api/v1/automation-football-live-action/{automation_id}/`
- Auth: none required

## 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.dev/livelike/apis/football-live-action.md) - [All operations](https://skmtc.dev/livelike/apis/football-live-action/llms.txt) - [OpenAPI document](https://skmtc.dev/livelike/apis/football-live-action/revisions/58c533b1217c?raw)
