Create an attribute

Creates a new attribute in the organization.

Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.

To use this endpoint, select Write Attributes under the Setup & Administration category when creating or editing an API token. Learn More.

Body Params

The attribute to create.

string
enum
required
Defaults to multi-select

Denotes the data type of the attribute's values. Valid values: single-select, multi-select, text, freeform-multi-select, number, date.

Allowed:
entities
array of objects

Entities that will be applied to this attribute

entities
string
enum
required

Denotes the type of entity, driver or asset.

Allowed:
string
required

Name

numberValues
array of doubles

Number values that can be associated with this attribute

numberValues
stringValues
array of strings

String values that can be associated with this attribute

stringValues
string
enum
Defaults to NO_UNIT

Unit of the attribute (only for Number attributes).

Responses

Language
Credentials
Bearer
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json