Skip to main content

Put Labels

PUT /labels

Upsert function will either add new asset to program, or update existing asset with the same asset_id

Request Parameters

Header Parameters

NameTypeDescription
program-id requiredstring

Request Body

LabelList | application/json

NameTypeProperties
labels requiredarray

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

Label | application/json

NameTypeProperties
label requiredstring

maxLength: 64

weight requirednumber

description: The strength of the action recommendation for the given user. Higher values mean stronger recommendation.

Request Example

{
"labels": [
{
"label": "string",
"weight": "number"
}
]
}

Responses

200 Successful Response

SuccessMessage | application/json

NameTypeProperties
result requiredstring

Response Example

{
"result": "string"
}

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