Get Reports
https://api.lytics.io/v2/reportGet a list of all Reports for the account
{
"_meta": {},
"data": [
{
"components": [
{
"config": null,
"description": "string",
"id": "string",
"name": "string",
"type": "size"
}
],
"description": "string",
"label": "string",
"user_id": "string"
}
],
"request_id": "string",
"status": 0
}Create a Report
https://api.lytics.io/v2/reportCreate a new Report
{
"components": [
{
"config": null,
"description": "string",
"id": "string",
"name": "string",
"type": "size"
}
],
"description": "string",
"label": "string",
"user_id": "string"
}{
"_meta": {},
"data": {
"components": [
{
"config": null,
"description": "string",
"id": "string",
"name": "string",
"type": "size"
}
],
"description": "string",
"label": "string",
"user_id": "string"
},
"request_id": "string",
"status": 0
}Get a Report
https://api.lytics.io/v2/report/{id}Get a Report by ID
{
"_meta": {},
"data": {
"components": [
{
"config": null,
"description": "string",
"id": "string",
"name": "string",
"type": "size"
}
],
"description": "string",
"label": "string",
"user_id": "string"
},
"request_id": "string",
"status": 0
}Update Report
https://api.lytics.io/v2/report/{id}Update a Report's label or description
{
"components": [
{
"config": null,
"description": "string",
"id": "string",
"name": "string",
"type": "size"
}
],
"description": "string",
"label": "string",
"user_id": "string"
}{
"_meta": {},
"data": {
"components": [
{
"config": null,
"description": "string",
"id": "string",
"name": "string",
"type": "size"
}
],
"description": "string",
"label": "string",
"user_id": "string"
},
"request_id": "string",
"status": 0
}Delete a Report
https://api.lytics.io/v2/report/{id}Delete a Report by ID
{
"_meta": {},
"data": {
"components": [
{
"config": null,
"description": "string",
"id": "string",
"name": "string",
"type": "size"
}
],
"description": "string",
"label": "string",
"user_id": "string"
},
"request_id": "string",
"status": 0
}Create a new Report Component
https://api.lytics.io/v2/report/{id}/componentAdd a new Report Component to the Report. If the component already exists, it will be updated.
To create a new Component, you will need to specify the type, name, and config fields.
Depending on the Component type, you may need to specify additional fields in the config object.
For size components, you will need to specify the segment_ids field ([]string) in the config object.
For composition components, you will need to specify the segment_ids ([]string) field and a field (string) from the user schema in the config object.
For overflow components, you will need to specify the segment_ids ([]string) field in the config object.
For dataflow components, you will need to specify the segment_ids ([]string) field in the config object, as well as show_providers, show_streams, and show_destinations (boolean) options.
{
"config": null,
"description": "string",
"id": "string",
"name": "string",
"type": "size"
}{
"_meta": {},
"data": {
"components": [
{
"config": null,
"description": "string",
"id": "string",
"name": "string",
"type": "size"
}
],
"description": "string",
"label": "string",
"user_id": "string"
},
"request_id": "string",
"status": 0
}Update a Report component
https://api.lytics.io/v2/report/{id}/component/{componentid}Update a Report Component by ID
{
"config": null,
"description": "string",
"id": "string",
"name": "string",
"type": "size"
}{
"_meta": {},
"data": {
"components": [
{
"config": null,
"description": "string",
"id": "string",
"name": "string",
"type": "size"
}
],
"description": "string",
"label": "string",
"user_id": "string"
},
"request_id": "string",
"status": 0
}Delete a Report Component
https://api.lytics.io/v2/report/{id}/component/{componentid}Delete a Report Component by ID
{
"_meta": {},
"data": {
"components": [
{
"config": null,
"description": "string",
"id": "string",
"name": "string",
"type": "size"
}
],
"description": "string",
"label": "string",
"user_id": "string"
},
"request_id": "string",
"status": 0
}