Analytics
Create custom dimension
Changed onConfigure new custom dimension.
post/api/analytics/v1/manage/custom-dimensions/
Request
- Base URLhttps://example.piwik.pro
- AuthOAuth 2Client credentialsToken URL/auth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"data": {
"id": "677fe0d3-b4f7-43ed-852d-1a9e7b8e59fb",
"attributes": {
"website_id": "dde2dc68-b6bb-45ee-9ac2-868b6181e33f",
"name": "Visitor hair color",
"extractions": [
{
"pattern": "/foo/(.*)/bar"
}
]
}
}
}Response
OK
Example response
{
"data": {
"id": "677fe0d3-b4f7-43ed-852d-1a9e7b8e59fb",
"attributes": {
"website_id": "dde2dc68-b6bb-45ee-9ac2-868b6181e33f",
"name": "Visitor hair color",
"extractions": [
{
"pattern": "/foo/(.*)/bar"
}
]
}
}
}Changes
- info
added the new optional request property
/// - info
added the new optional request property
/// - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status
- info