Skip to main content

Metadata Overview

Metadata routes provide information about fields that can be supplied to and returned from API resources. Find the metadata route for an object on the Routes page.


Example Metadata Response

Below is an example response for the Activity.Name field from /api/metadata/activities:

{
"fieldName": "Activity.Name",
"fieldType": 0,
"titleResourceId": "mo-replacement-strings-39",
"fieldDataType": 1,
"fieldFormatting": {
"showNewLines": false,
"fieldLength": 150
},
"validationRules": [
{
"validationMessageResourceId": 520,
"name": "RequiredRule",
"resourceId": "mo-replacement-strings-520"
},
{
"validationMessageResourceId": 19711,
"maxLength": 150,
"name": "MaxLengthRule",
"resourceId": "mo-replacement-strings-19711"
}
],
"timeValueType": 0,
"amsAttributeId": -405,
"isSecure": false,
"isReadOnly": false,
"allowInitialValue": true,
"inactive": false,
"parentName": "Activity",
"tabSequence": 0
}

Field Descriptions

FieldDescription
fieldNameName of the field in object.property format.
fieldType0 = Base field, 1 = Extended attribute.
titleResourceIdKey for the field's UI name (refer to the string resources article).
fieldDataTypeData type of the field (see Data Types below).
fieldFormattingFormatting metadata for display or editing.
validationRulesArray of validation rules for the field.
timeValueTypeDetermines timezone handling for datetime fields (see Time Value Types below).
amsAttributeIdUnique attribute ID (< 0 = Base field, > 0 = Tenant-specific attribute).
isSecureIndicates if the field is secure.
isReadOnlyIndicates if the field is read-only.
allowInitialValueAllows an initial value when creating an object.
inactiveFor extended attributes only. Indicates if the attribute is inactive.
parentNameParent object name.
tabSequenceTab order for UI display.

Data Types

IDData Type
1Text
2Email Address
3URL
4Long Text
11Numeric
12Numeric ID
13Currency
14Percentage
15Integer
21Date
22Time
23DateTime
31Yes/No
32Picklist
33MultiSelect
34Encoded Title ID
35Static Value List
36UserGroup
37Picklist (Legacy)
40System Type
41Selection List
42Selection List Item
99Deprecated Attribute

Time Value Types

IDDescription
0No conversion. Stored as-is; same value for all users.
1User-generated value. Stored as UTC and converted to the user’s timezone.
2System-generated value. Displayed in the user’s timezone.
3Special rules. Does not respect user timezone, often relying on a record-specific timezone setting.