---
title: "# Create Process"
method: POST
path: "/v1/threat-library/processes"
tags: ["Threats"]
---

# # Create Process

`POST /v1/threat-library/processes`

Creates custom processes with given arguments

## Request body

- CreateProcessListInput — CreateProcessListInput represents the request parameters for creating a process
  - `argument` string — Argument
  - `code` integer — Expected exit code, part of the process success condition
  - `comment` string — Comment
  - `delay` integer — Delay
  - `file_ids` integer[] — FileIds
  - `is_async` boolean — Is Asynchronous
  - `is_blocked` boolean — Is Blocked
  - `output` string — Output
  - `path` string — Path
  - `process_type` string — ProcessType can be play or rewind
  - `success_cond_exist` boolean — Success Condition Exist
  - `timeout` integer — Timeout

## Response `200`

ProcessCreateReturnResponse

- object
  - `process` CapiProcessDTO
    - `argument` string
    - `created_at` string, date-time
    - `id` integer
    - `path` string

## Other responses

- `422` — validationErrorSwagger is represents the erroneous cases
- `default` — genericErrorSwagger is represents the erroneous cases

---

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