Using custom dimension segmentation in the API

Hi,

How to use segment param for custom dimensions (there is information about custom variables in reference and no information about custom dimensions)?