Ana içeriğe atla
POST
Activate or deactivate several products

Yetkilendirmeler

Authorization
string
header
gerekli

The access token received from the authorization server in the OAuth 2.0 flow.

Başlıklar

X-Tenant
number
gerekli

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Gövde

application/json
is_active
boolean
gerekli

The active status to apply to every selected product.

product_ids
integer[]

The identifiers of the selected records. Send either these or select_all.

Required array length: 1 - 100 elements
Gerekli aralık: x >= 1
select_all
boolean

Select every record the list shows with the filters in filters. The action then runs in the background and the response only carries the number of records.

filters
object | null

With select_all, the filters the list shows, as an object: the query parameters of GET /api/v1/products with the same names and values, array parameters without the []. Paging and sorting parameters are ignored.

except_ids
integer[] | null

With select_all, the identifiers of the records to leave out, at most 1000.

Maximum array length: 1000

A record identifier to leave out.

Gerekli aralık: x >= 1

Yanıt

success
boolean
gerekli
data
object
gerekli