Skip to main content

GET Custom Report Fields

Overview


The following table contains important information about the GET method in regards to receiving custom report fields.

GET Custom Report Fields
MethodPOST
URL or Endpoint/api/custom-reports/fields
HeadersAuthorization
Parametersnone
Bodynone

Response

{
"success": true,
"errors": ["string"],
"messages": ["string"],
"result": {
"dimensions": {
"categories": [
{
"name": "string",
"items": [
{
"display": "string",
"key": "string"
}
]
}
]
},
"metrics": {
"categories": [
{
"name": "string",
"items": [
{
"display": "string",
"key": "string"
}
]
}
]
},
"dateRanges": [
{
"id": 0,
"name": "string"
}
],
"filters": [
{
"id": 0,
"key": "string",
"display": "string"
}
]
},
"resultInfo": "string",
"statusCode": 0
}
Field NameTypeDescription
successboolIf the response is successful it will return true. Otherwise will return false.
errorsarray[]Indicates if there was an error.
messagesarray[]Returns the response message from back-end.
resultarray[Object]Returns the response object.
dimensionsObjectAn object that contains the dimensions of the custom report.
categoriesarrayAn array that contains the categories of a dimension of a custom report.
namestringThe name of the category.
itemsarray[Object]An array that contains the items of a category.
displaystringThe display of the item
keystringThe key of the item.
metricsObjectAn object that contains the metrics of the custom report.
dateRangesarray[Object]An array of objects that contains the date ranges of the custom report.
idinteger($int32)The ID of the date range.
namestringThe name of the date range
filtersarray[Object]An array of objects that contains the filters of the custom reports.
idinteger($int32)The id of the filter.
keystringThe key of the filter.
displaystringThe display of the filter.
resultInfostringReturns extra information about the result.
statusCodeinteger($int32)Returns the HTTP Status Code.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed