Reports module
Endpoints for managing Reportings
GET
/reportschedules Returns collection of Report schedule resources
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/reportschedules HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
401 Unauthorized
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 5865, "culture": 0, "description": "value", "emails": "value", "end_at": "2020-01-26 02:56:31", "format": 0, "frequency": "value", "name": "value", "report_id": 6458, "start_at": "2020-01-26 02:50:58" } ], "total": 59 }
POST
/reportschedules Creates new Report schedule resource
Parameters
JSON body attributes:
report_id integer
name string
description string
emails array
Array of emails
Array of emails
culture string
start_at date
end_at date
frequency array
Array of frequency config options
Array of frequency config options
Example Request
POST /v1.1/voipstudio/reportschedules HTTP/1.1 Host: l7api.com { "report_id": 818, "name": "abcd", "description": "abcd", "emails": [ "john@example.com", "mike@w3c.com" ], "culture": "abcd", "start_at": "2023-09-12", "end_at": "2023-09-12", "frequency": { "type": "W", "time_of_day": [ 10 ], "day_of_week": [ 1, 5 ], "day_of_month": [] } }
Responses
201 Success
400 Validation error
401 Unauthorized
400 Validation error
401 Unauthorized
Example Response
HTTP/1.1 201 OK Content-Type: application/json { "data": { "id": 4869, "culture": 0, "description": "value", "emails": "value", "end_at": "2018-09-18 05:38:36", "format": 0, "frequency": "value", "name": "value", "report_id": 4325, "start_at": "2018-09-18 05:47:08" }, "links": {} }
GET
/reportschedules/{id} Returns Report schedule resource for given Id
Parameters
Endpoint URL:
{id} integerReportSchedule2 identifier
Example Request
GET /v1.1/voipstudio/reportschedules/39 HTTP/1.1 Host: l7api.com
Responses
200 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 3386, "culture": 4, "description": "value", "emails": "value", "end_at": "2019-10-12 16:19:02", "format": 0, "frequency": "value", "name": "value", "report_id": 6188, "start_at": "2019-10-12 16:19:10" }, "links": {} }
PATCH
/reportschedules/{id} Updates existing Report schedule resource
Parameters
Endpoint URL:
{id} integerReportSchedule2 identifier
JSON body attributes:
report_id integer
name string
description string
emails array
Array of emails
Array of emails
culture string
start_at date
end_at date
frequency array
Array of frequency config options
Array of frequency config options
Example Request
PATCH /v1.1/voipstudio/reportschedules/49 HTTP/1.1 Host: l7api.com { "report_id": 203, "name": "abcd", "description": "abcd", "emails": [ "john@example.com", "mike@w3c.com" ], "culture": "abcd", "start_at": "2023-09-12", "end_at": "2023-09-12", "frequency": { "type": "W", "time_of_day": [ 10 ], "day_of_week": [ 1, 5 ], "day_of_month": [] } }
Responses
200 Success
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
400 Validation error
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": { "id": 5731, "culture": 1, "description": "value", "emails": "value", "end_at": "2018-05-03 19:02:10", "format": 0, "frequency": "value", "name": "value", "report_id": 6816, "start_at": "2018-05-03 18:57:17" }, "links": {} }
DELETE
/reportschedules/{id} Deletes existing Report schedule resource
Parameters
Endpoint URL:
{id} integerReportSchedule2 identifier
Example Request
DELETE /v1.1/voipstudio/reportschedules/65 HTTP/1.1 Host: l7api.com
Responses
204 Success
401 Unauthorized
403 Access denied
404 Resource not found
401 Unauthorized
403 Access denied
404 Resource not found
Example Response
HTTP/1.1 204 OK
GET
/reportschedules/dictionaries Returns Dictionary for Report schedule resource
Parameters
No parameters
Example Request
GET /v1.1/voipstudio/reportschedules/dictionaries HTTP/1.1 Host: l7api.com
Responses
200 Success
Example Response
HTTP/1.1 200 OK Content-Type: application/json { "data": [ { "id": 192, "culture": 6, "description": "value", "emails": "value", "end_at": "2017-09-20 10:32:01", "format": 0, "frequency": "value", "name": "value", "report_id": 4886, "start_at": "2017-09-20 10:20:00" } ], "total": 59 }