---
title: "POST /activations/"
method: POST
path: "/activations/"
tags: ["activations"]
---

# POST /activations/

`POST /activations/`

## Request body

- ActivationCreate — Serializer for creating the Activation.
  - `name` string, required
  - `description` string
  - `is_enabled` boolean
  - `decision_environment_id` integer, required
  - `project_id` integer, nullable
  - `rulebook_id` integer, required
  - `extra_var_id` integer, nullable
  - `restart_policy` 'always' | 'on-failure' | 'never' — * `always` - always * `on-failure` - on-failure * `never` - never

## Response `201`

- ActivationRead — Serializer for reading the Activation with related objects info.
  - `id` integer, required
  - `name` string, required
  - `description` string
  - `is_enabled` boolean
  - `decision_environment` DecisionEnvironmentRef — Serializer for DecisionEnvironment reference.
    - `id` integer, required
    - `name` string, required
    - `description` string
    - `image_url` string, required
  - `status` 'starting' | 'running' | 'pending' | 'failed' | 'stopped' | 'completed', required — * `starting` - starting * `running` - running * `pending` - pending * `failed` - failed * `stopped` - stopped * `completed` - completed
  - `project` ProjectRef
    - `id` integer, required
    - `git_hash` string, required
    - `url` string, required
    - `name` string, required
    - `description` string
  - `rulebook` RulebookRef, required — Serializer for Rulebook reference.
    - `id` integer, required
    - `name` string, required
    - `description` string, nullable
  - `extra_var` ExtraVarRef — Serializer for Extra Var reference.
    - `id` integer, required
  - `instances` ActivationInstance[], required
    - `id` integer, required
    - `name` string
    - `status` 'starting' | 'running' | 'pending' | 'failed' | 'stopped' | 'completed' — * `starting` - starting * `running` - running * `pending` - pending * `failed` - failed * `stopped` - stopped * `completed` - completed
    - `activation_id` integer, required
    - `started_at` string, date-time, required
    - `ended_at` string, date-time, nullable, required
  - `restart_policy` 'always' | 'on-failure' | 'never' — * `always` - always * `on-failure` - on-failure * `never` - never
  - `restart_count` integer
  - `rulebook_name` string, required — Name of the referenced rulebook
  - `rules_count` integer, required
  - `rules_fired_count` integer, required
  - `created_at` string, date-time, required
  - `modified_at` string, date-time, required

## Changes

- **2023-05-19** `f84d9240fdf2` — 7 breaking, 10 info
  - the request property `decision_environment_id` became not nullable (media type: application/json)
  - the request property `decision_environment_id` became not nullable (media type: application/x-www-form-urlencoded)
  - the request property `decision_environment_id` became not nullable (media type: multipart/form-data)
  - removed the required property `decision_environment_id` from the response with the `201` status
  - …13 more
- **2023-04-25** `62d33b790834` — 5 breaking, 39 warning, 17 info
  - removed the required property `awx_token_id` from the response with the `201` status
  - removed the required property `instances` from the response with the `201` status
  - removed the required property `organization` from the response with the `201` status
  - removed the required property `rules_count` from the response with the `201` status
  - …57 more

[Change history](https://skmtc.dev/ansible/apis/event-driven-ansible-api/changes/activations/post.md)

---

[API](https://skmtc.dev/ansible/apis/event-driven-ansible-api.md) · [All operations](https://skmtc.dev/ansible/apis/event-driven-ansible-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ansible/event-driven-ansible-api/revisions/f84d9240fdf2/schema)
