Create new product-model

Prev Next
Post
/inventory/productModels

Required permissions: READ_PRODUCT_MODEL, WRITE_PRODUCT_MODEL.

Security
HTTP
Type bearer
Header parameters
X-Servitly-Tenant
stringRequired

The name of the target tenant (e.g. acme).

Body parameters

The details of product-model being created.

Expand All
object
name
string Required

The product-model name.

description
string

The product-model description text.

technicalDescription
string

The product-model technical description text.

technicalSchemes
Array of object

The technical schems associated with this product-model.

object
code
string

The schema identification code.

name
string

The schema name.

description
string

The schema description text.

imageUrl
string

The schema HTTPS image URL.

contentType
string

The schema image content type. In case of SVG, the schema is embedded into the page HTML and became clickable according to positions.

Valid values[ "PNG", "SVG" ]
urlType
string Deprecated

Use contentType instead.

Valid values[ "PNG", "SVG" ]
imageUrl
string

The product-model HTTPS image URL.

categoryId
string

The id of the category this product-model belongs.

thingDefinitionId
string

The id of the thing-definition with which the product-model is associated.

Responses
201

Successful creation.

Expand All
object
id
string

The product-model object identifier.

name
string

The product-model name.

description
string

The product-model description text.

technicalDescription
string

The product-model technical description text.

technicalSchemes
Array of object

The technical schems associated with this product-model.

object
code
string

The schema identification code.

name
string

The schema name.

description
string

The schema description text.

imageUrl
string

The schema HTTPS image URL.

contentType
string

The schema image content type. In case of SVG, the schema is embedded into the page HTML and became clickable according to positions.

Valid values[ "PNG", "SVG" ]
urlType
string Deprecated

Use contentType instead.

Valid values[ "PNG", "SVG" ]
imageUrl
string

The product-model HTTPS image URL.

categoryId
string

The id of the category this product-model belongs.

thingDefinitionId
string

The id of the thing-definition with which the product-model is associated.

400

Request data not valid.

object
message
string

The error response.

ExampleBad request
401

User not authenticated.

object
message
string

The error response.

ExampleUser not authenticated
403

User not authorized.

object
message
string

The error response.

ExampleUser not authorized
429

API call rate limit exeeded.

object
message
string

The error response.

ExampleAPI call rate limit exeeded
500

Internal server error.

object
message
string

The error response.

ExampleInternal Server Error