Skip to main content

Get all assets of a schema

GET 

/assets/by/schema/:schemaId

Get all assets of a schema

Request

Path Parameters

    schemaId schemaIdrequired

    The schemaId to grab data about

Query Parameters

    type assetType

    The type of the assets to grab

    matchTags boolean

    Whether to get the assets that match the schema tags (coming from project and global assets)

    startDate date-time

    Search by start date

    endDate date-time

    Search by end date

    page integer

    Possible values: >= 1

    Default value: 1

    Specify the page number for pagination (default is 1).

    limit integer

    Default value: 10

    Specify the number of projects per page (default is 10, 0 gets all results).

    orderBy string

    Possible values: [createdAt, type, name, state]

    Field to order the results by (e.g., 'createdAt', 'ownerId'). Default is 'createdAt'.

    sortOrder string

    Possible values: [asc, desc]

    Default value: desc

    'asc' for ascending or 'desc' for descending order. Default is 'desc'.

Responses

List of assets for Schema

Schema

  • Array [

  • id string

    Unique identifier for Asset

    type string
    createdAt date-time

    Time representation of Asset creation

    url string

    Asset URL

    schemaId schemaId (string)

    Unique identifier for Schema

    description string

    Asset description

    tags string[]

    Asset tags

    data string

    Asset data

    projectId projectId (string)

    Unique identifier for Project

    name stringrequired

    Asset name

  • ]

Loading...