post https://{app}.{filespin}.{io}/api/v1/assets//addons/scene_classification
Request JSON
This example shows a request payload JSON to process an asset with ID asset_id
and update the metadata.
{
"disposition": {
"update_metadata": true
}
}
Request Parameters
Parameter | Type | Description |
---|---|---|
disposition | JSON | (optional) Indicates how analysed data must be disposed |
disposition .update_metadata | Boolean | true if Asset Metadata should be updated for reserved field _filespin_scene_labels . All labels will be updated as space seperated strings into Asset metadata field. |
RESPONSE JSON when is_synchronous is true
The API call will return with a JSON response as below.
{
"data": [
{
"label": "amusement_park",
"confidence": 0.6366952061653137
},
{
"label": "tower",
"confidence": 0.4299171566963196
},
{
"label": "castle",
"confidence": 0.2965517044067383
},
{
"label": "skyscraper",
"confidence": 0.2801764905452728
},
{
"label": "museum",
"confidence": 0.22096014022827148
}
]
}
RESPONSE JSON when is_synchronous is false
The API call will return with a JSON response as below.
{
"job_id" : "9172985e-a6f2-4bb7-abaa-9026fcabf297"
}
Key | Value | Description |
---|---|---|
job_id | String | The job ID to track the job |