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
Name | Type | Description |
---|---|---|
program-id required | string |
Request Body
LabelList | application/json
Name | Type | Properties |
---|---|---|
labels required | array | items: {'$ref': '#/components/schemas/Label'} |
Label | application/json
Name | Type | Properties |
---|---|---|
label required | string | maxLength: 64 |
weight required | number | 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
Name | Type | Properties |
---|---|---|
result required | string |
Response Example
{
"result": "string"
}
422
Validation Error
HTTPValidationError | application/json
Name | Type | Properties |
---|---|---|
detail | array | items: {'$ref': '#/components/schemas/ValidationError'} |
ValidationError | application/json
Name | Type | Properties |
---|---|---|
loc required | array | items: {'anyOf': [{'type': 'string'}, {'type': 'integer'}]} |
msg required | string | |
type required | string |