---
title: "Create Action"
method: POST
path: "/api/products/{product_id}/actions/"
tags: ["actions"]
---

# Create Action

`POST /api/products/{product_id}/actions/`

## Request

- Base URL: `https://api.usecrow.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.usecrow.ai/api/products/{product_id}/actions/`
- Auth: none declared. Required headers: `authorization`
- TypeScript: <https://skmtc.dev/usecrow/apis/crow-backend-multi-tenant-saas/docs/api/products/:product_id/actions/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new action for a product

## Path parameters

- `product_id` string, uuid, required

## Headers

- `authorization` string, required

## Request body

- ActionCreate: Model for creating a new action
  - `name` string, required
  - `description` string, required
  - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE', required
  - `path` string, required
  - `parameters` object, required

## Response `200`

Successful Response

- Action: Action model
  - `id` string, uuid, required
  - `product_id` string, uuid, required
  - `name` string, required
  - `description` string, required
  - `method` string, required
  - `path` string, required
  - `parameters` object, required
  - `suggestable` boolean
  - `suggestion_label` string, nullable
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/usecrow/apis/crow-backend-multi-tenant-saas.md) - [All operations](https://skmtc.dev/usecrow/apis/crow-backend-multi-tenant-saas/llms.txt) - [OpenAPI document](https://skmtc.dev/usecrow/apis/crow-backend-multi-tenant-saas/revisions/b2950af46532?raw)
