Skip to main content

Get Assets

GET /assets

Retrieve the assets used in a given program

Request Parameters

Query Parameters

NameTypeDescription
searchstring

Term will be searched for in any field

pageinteger

Default: 1

sizeinteger

Default: 50

Header Parameters

NameTypeDescription
program-id requiredstring

Responses

200 Successful Response

PageAsset | application/json

NameTypeProperties
items requiredarray

items: {'$ref': '#/components/schemas/Asset'}

total requiredinteger

minimum: 0.0

page requiredinteger

minimum: 1.0

size requiredinteger

minimum: 1.0

Asset | application/json

NameTypeProperties
asset_id requiredstring

maxLength: 64

asset_namestring

maxLength: 124

labelsarray

items: {}

Response Example

{
"items": [
{
"asset_id": "string",
"asset_name": "string",
"labels": "array"
}
],
"total": "integer",
"page": "integer",
"size": "integer"
}

422 Validation Error

HTTPValidationError | application/json

NameTypeProperties
detailarray

items: {'$ref': '#/components/schemas/ValidationError'}

ValidationError | application/json

NameTypeProperties
loc requiredarray

items: {'anyOf': [{'type': 'string'}, {'type': 'integer'}]}

msg requiredstring
type requiredstring