Asset Custom Fields
Add your own fields, such as a CMDB tag, to every asset.
Add your own fields to assets. For example, a Tag # from your CMDB.
Every asset in your organization gets the fields you define.
Add a custom field
- Go to Settings and select the Assets tile.
- Click Add custom field.
- Fill in:
- Display name: the label people see, such as
Tag #. - Key: the name used in the API, such as
cmdb_tag. Lowercase letters, digits and underscores, starting with a letter. - Type: Text, Number or Date.
- Display name: the label people see, such as
- Click Add custom field.
Key and Type cannot be changed later. You can rename the Display name in the table.
Only admins see the Assets tile. It shows when Asset Management is enabled for your organization.
Fill in a value
- Open an asset (add or edit) and use the Custom fields section.
- The values show in the asset details.
- In the assets table they are optional columns. Turn them on from the column picker.
Delete a custom field
- Go to Settings → Assets.
- Open the field's menu and click Delete.
- Confirm.
Deleting a field also removes its values from every asset.
Use custom fields through the API
Custom field values are part of every asset in the Organization API.
- Read them in Get Assets and Get Asset.
- Write them in Create Asset and Update Asset, in
custom_fields, keyed by the field's Key.
{
"custom_fields": { "cmdb_tag": "TAG-0042" }
}Define the fields in the portal first. The API does not create fields.
API key
- Go to Settings → API Keys and create a key. See API Keys.
- Send it in the
Authorizationheader of every request.
curl -X PUT "https://hub.xyte.io/core/v1/organization/assets/{asset_id}" \
-H "Authorization: <your API key>" \
-H "Content-Type: application/json" \
-d '{"custom_fields": {"cmdb_tag": "TAG-0042"}}'A key has full access to the organization. Keep it secret.
Limits
- Up to 20 custom fields per organization.
- Key: up to 50 characters. Display name: up to 100.
- Text values: up to 255 characters.
- Number values: up to ±9,007,199,254,740,991.
- Date values:
YYYY-MM-DD.
Updated 4 minutes ago
Did this page help you?
