Skip to main content

Updates model info

PUT 

https://apis.<domain>/iot/models/:modelId

Authorization: http

name: bearerTokentype: httpscheme: bearerin: headerdescription: Authorization Header: `Authorization: Bearer <user_token>`

Updates model's name, description, and metadata.

Authorization Action:

core:models:update

Request

Path Parameters

    modelId uuidrequired

    Unique model identifier.

Body

required

JSON-formatted document describing model updates.

    name string
    description string
    metadata object
    image string

Responses

Model details retrieved successfully.

Schema
    id uuid

    Unique model identifier.

    name string

    Free-form model name.

    description string

    Free-form model description.

    metadata object

    Arbitrary, object-encoded model data.

    tags string[]

    List of tags associated with the model.

    tenants string[]

    List of tenants that can access this model.

    image string

    URL to model image.

    created_at date-time

    Time when the model was created.

    updated_at date-time

    Time when the model was last updated.

curl -L -X PUT 'https://apis.<domain>/iot/models/:modelId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"description": "string",
"metadata": {},
"image": "string"
}'
Request Collapse all
Base URL
https://apis.<domain>
Auth
Parameters
— pathrequired
Body required
{
"name": "string",
"description": "string",
"metadata": {},
"image": "string"
}