Skip to main content
GET
Spree Admin SDK

Filters

Filter with q[<attribute>_<predicate>]=value, for example q[alt_cont]=…. Send a list as q[<attribute>_in][]=a&q[<attribute>_in][]=b. How filters work. Sort by: alt, created_at, id, media_type, position, updated_at. Prefix a field with - to sort descending.

Authorizations

x-spree-api-key
string
header
required

Secret API key for admin access

Authorization
string
header
required

JWT token for admin user authentication

Headers

x-spree-api-key
string
required
Authorization
string
required

Bearer token for admin authentication

Path Parameters

product_id
string
required

Product ID

variant_id
string
required

Variant ID

Query Parameters

q[attached]
boolean

Set to true to apply attached.

q[filename_cont]
string

Applies filename_cont to the given value.

q[unattached]
boolean

Set to true to apply unattached.

page
integer

Page number

limit
integer

Number of records per page

q
object

Attribute filters, as q[<attribute>_<predicate>]=value. See Filters above for the list.

Response

200 - application/json

media found

data
object[]
required
meta
object
required