Information about all attributes

Returns information about system and custom attributes.

  1. Request syntax
  2. Response format

Request syntax

counterId: Tag ID.

https://api-metrika.yandex.net/cdp/api/v1/counter/{counterId}/schema/attributes
 ? [entity_type=<entity_type>]
entity_typeAttribute entity type: CONTACT or ORDER.
entity_typeAttribute entity type: CONTACT or ORDER.

Response format


{
    "system_attributes" : [ {
        "name" :  < string > ,
        "type_name" :  < string > ,
        "type_group" :  < group > ,
        "type_humanized" :  < string > ,
        "humanized" :  < string > 
    }, ... ],
    "custom_attributes" : [ {
        "name" :  < string > ,
        "type_name" :  < string > ,
        "type_group" :  < group > ,
        "type_humanized" :  < string > ,
        "humanized" :  < string > 
    }, ... ]
}
Parameters Description
system_attributes List of system attributes.
custom_attributes List of custom attributes.
system_attributes
name Attribute ID
type_name Attribute type ID
type_group Attribute type group
type_humanized Attribute type name
humanized Attribute name
custom_attributes
name Attribute ID
type_name Attribute type ID
type_group Attribute type group
type_humanized Attribute type name
humanized Attribute name
Parameters Description
system_attributes List of system attributes.
custom_attributes List of custom attributes.
system_attributes
name Attribute ID
type_name Attribute type ID
type_group Attribute type group
type_humanized Attribute type name
humanized Attribute name
custom_attributes
name Attribute ID
type_name Attribute type ID
type_group Attribute type group
type_humanized Attribute type name
humanized Attribute name