Skip to main content
POST
Create actions in a batch

Authorizations

Authorization
string
header
required

Organization API key (sl_…).

Headers

x-tenant-id
string
required

The organization ID the request is scoped to.

Body

application/json

Create a batch of cost-saving actions in one all-or-nothing request.

Every entry is checked before anything is written: if any entry is rejected, no actions are created and the error names the entry that caused it. The created actions are returned in the same order as items.

items
ActionCreate · object[]
required
Required array length: 1 - 100 elements

Response

Successful Response

items
Action · object[]
required
page_token
string | null

Opaque cursor for the next page; empty/absent on the last page.

row_count
integer | null

Best-effort total for the filtered result set; may be null when expensive.