Create a style
POST
Creates a style and returns it with status 201. The response is the bare object, without the standard {status, message, data} envelope.
How to use it
- Send a unique, non-blank name for the style.
- The style is created with a server-assigned ID and returned with status 201; it can now be assigned to items.
BearerAuthheader
AuthorizationBearer <JWT>application/json- body
id?|Numeric style ID; use it as styleId on items.
Format
int64name*stringStyle name, unique across the catalog.
modifiedTime*stringWhen the style was last changed (ISO 8601 timestamp).
Format
date-timeOK
*/*- response
id?|Numeric style ID; use it as styleId on items.
Format
int64name*stringStyle name, unique across the catalog.
modifiedTime*stringWhen the style was last changed (ISO 8601 timestamp).
Format
date-timeExample Request
curl -X POST 'https://beta.iotoms.com/api/v1/catalog/attributes/styles' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "modifiedTime": "2019-08-24T14:15:22Z"}'Example Response
{ "id": 0, "name": "string", "modifiedTime": "2019-08-24T14:15:22Z"}