Информация о всех атрибутах
Возвращает информацию о системных и кастомных атрибутах.
Request
GET
https://api-metrika.yandex.net/cdp/api/v1/counter/{counterId}/schema/attributes
Path parameters
|
Name |
Description |
|
counterId |
Type: integer Идентификатор счетчика. |
Query parameters
|
Name |
Description |
|
entity_type |
Type: string Принадлежность атрибутов. Возможные значения:
Example: |
Responses
200 OK
OK
Body
application/json
{
"system_attributes": [
{
"name": "example",
"type_name": "example",
"type_group": "example",
"type_humanized": "example",
"multivalued": true,
"humanized": "example"
}
],
"custom_attributes": [
null
]
}
|
Name |
Description |
|
custom_attributes |
Type: Attribute[] Список кастомных атрибутов. Example
|
|
system_attributes |
Type: Attribute[] Список системных атрибутов. Example
|
Attribute
Описание объекта Attribute.
|
Name |
Description |
|
multivalued |
Type: boolean Определяет, может ли атрибут иметь несколько значений. |
|
name |
Type: string Идентификатор атрибута. Min length: Max length: Pattern: Example: |
|
humanized |
Type: string Название атрибута. Min length: Max length: Example: |
|
type_group |
Type: string Группа типа атрибута. Возможные значения:
Example: |
|
type_humanized |
Type: string Название типа атрибута. Example: |
|
type_name |
Type: string Идентификатор типа атрибута. Example: |
Example
{
"name": "example",
"type_name": "example",
"type_group": "example",
"type_humanized": "example",
"multivalued": true,
"humanized": "example"
}
No longer supported, please use an alternative and newer version.