Information about all attributes
Returns information about system and custom attributes.
Request
GET
https://api-metrica.yandex.net/cdp/api/v1/counter/{counterId}/schema/attributes
Path parameters
Name |
Description |
counterId* |
Type: integer<int32> Counter ID. |
Query parameters
Name |
Description |
entity_type* |
Type: string Attribute ownership.
|
Responses
200 OK
OK
Body
application/json
{
"system_attributes": [
{
"name": "string",
"type_name": "string",
"type_group": "string",
"type_humanized": "string",
"multivalued": false,
"humanized": "string"
}
],
"custom_attributes": [
{
"name": "string",
"type_name": "string",
"type_group": "string",
"type_humanized": "string",
"multivalued": false,
"humanized": "string"
}
]
}
Name |
Description |
custom_attributes |
Type: Attribute[] List of custom attributes. |
system_attributes |
Type: Attribute[] List of system attributes. |
Attribute
Description of the Attribute
object.
Name |
Description |
multivalued* |
Type: boolean Determines whether the attribute can have multiple values. |
name* |
Type: string Attribute ID. Min length: Max length: Pattern: |
humanized |
Type: string Attribute name. Min length: Max length: |
type_group |
Type: string Attribute type group. Possible values:
|
type_humanized |
Type: string Attribute type name. |
type_name |
Type: string Attribute type ID. |
No longer supported, please use an alternative and newer version.