{
"schema": object (required) {
"scope": string (required),
"version": string (required),
"settings": array (required) [
{
"key": string (required),
"displayName": string (required),
"layout": enum (required) ["description", "textBox", "selection", "checkBox", "button"],
"items": array [
{
"displayName": string (required),
"value": any (required)
}
],
"linkedUrl": string,
"oauthId": integer
}
]
}
}
The root property of the segment.
The segment's package name consisting of characters in the range of [a-zA-Z0-9._-] and maximum 64 characters in length.
Restrictions: Regex pattern: ^[a-zA-Z0-9._-]+$
The version of the schema. Maximum 64 ASCII chars in length.
The list of setting options for the segment. The options are displayed in the same order as they are in the array.
The unique key of a setting option. The key should consist of characters in the range of [a-zA-Z0-9._-] and maximum 64 characters in length.
Restrictions: Regex pattern: ^[a-zA-Z0-9._-]+$
The title of a setting option that is displayed on the N host app UI. It can contain a reference to a string defined in string.json. Maximum 1KB ASCII characters in length.
UI layout components for a setting option in the N host app.
A set of options to select from for selection and checkbox components. The items are displayed in the same order as they are in the array.
Restrictions: Minimum items: 1
The item's name that is diplayed on the N host app UI. It can contain references to strings in the string.json file. Maximum 1KB ASCII characters in length.
The value of the item. It can be in type of object or array.
The URL to redirect to. Maximux 4096byte in size.
The OAuth ID for OAuth authorization procedure. The Personalized Radio function sets the value of the OAuth option to true, if the OAuth has been successfully authorized and the token has been stored in the server. The Personalized Radio function sets the value of the OAuth option to false, if the user has logged out and the token has been cleared. In some exception cases, such an unexpected log-out due to the expriation of the token, the segment should set the value of Oauth option to false via setSegmentConfig API.
Restrictions: Minimum: 0, Maximum: 255