{"type":"api","title":"Create or Schedule a report","meta":{"id":"/apps/pubhub/media/dna-center-235/0e427c513038595590fc5a0593cb0e208dd78571/2192edf3-d24e-3461-ab8c-12a97b547df4","swagger":"2.0","info":{"description":"Cisco DNA Center Platform v. 2.3.5","version":"2.3.5","title":"Intent API"},"schemes":["https"],"x-parser-conf":{"expand":0,"labelConfig":{"endpoint":"summary"}}},"spec":{"operationId":"createOrScheduleAReport","tags":["Reports"],"summary":"Create or Schedule a report","description":"Create/Schedule a report configuration. Use \"Get view details for a given view group & view\" API to get the metadata required to configure a report.","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"request","description":"request","required":true,"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}},"deliveries":{"type":"array","items":{"type":"object"}},"name":{"type":"string"},"schedule":{"type":"object"},"view":{"type":"object","properties":{"fieldGroups":{"type":"array","items":{"type":"object","properties":{"fieldGroupDisplayName":{"type":"string"},"fieldGroupName":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"displayName":{"type":"string"},"name":{"type":"string"}}}}}}},"filters":{"type":"array","items":{"type":"object","properties":{"displayName":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"value":{"type":"object"}}}},"format":{"type":"object","properties":{"formatType":{"type":"string"},"name":{"type":"string"}}},"name":{"type":"string"},"viewId":{"type":"string"}}},"viewGroupId":{"type":"string"},"viewGroupVersion":{"type":"string"}},"$$ref":"#/definitions/reportAPIBody"},"in":"body"},{"name":"Content-Type","description":"Request body content type","default":"application/json","required":true,"type":"string","in":"header"}],"responses":{"200":{"description":"The request was successful. The result is contained in the response body.","schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}},"dataCategory":{"type":"string"},"deliveries":{"type":"array","items":{"type":"object"}},"executionCount":{"type":"integer"},"executions":{"type":"array","items":{"type":"object","properties":{"endTime":{"type":"integer"},"errors":{"type":"array","items":{"type":"string"}},"executionId":{"type":"string"},"processStatus":{"type":"string"},"requestStatus":{"type":"string"},"startTime":{"type":"integer"},"warnings":{"type":"array","items":{"type":"string"}}}}},"name":{"type":"string"},"reportId":{"type":"string"},"reportWasExecuted":{"type":"boolean"},"schedule":{"type":"object"},"view":{"type":"object","properties":{"fieldGroups":{"type":"array","items":{"type":"object","properties":{"fieldGroupDisplayName":{"type":"string"},"fieldGroupName":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"displayName":{"type":"string"},"name":{"type":"string"}}}}}}},"filters":{"type":"array","items":{"type":"object","properties":{"displayName":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"value":{"type":"object"}}}},"format":{"type":"object","properties":{"formatType":{"type":"string"},"name":{"type":"string"},"default":{"type":"boolean"}}},"name":{"type":"string"},"viewId":{"type":"string"},"description":{"type":"string"},"viewInfo":{"type":"string"}}},"viewGroupId":{"type":"string"},"viewGroupVersion":{"type":"string"}},"$$ref":"#/definitions/report"}},"201":{"description":"The POST/PUT request was fulfilled and a new resource has been created. Information about the resource is in the response body."},"202":{"description":"The request was accepted for processing, but the processing has not been completed."},"204":{"description":"The request was successful, however no content was returned."},"206":{"description":"The GET request included a Range Header, and the server responded with the partial content matching the range."},"400":{"description":"The client made a request that the server could not understand (for example, the request syntax is incorrect)."},"401":{"description":"The client's authentication credentials included with the request are missing or invalid."},"403":{"description":"The server recognizes the authentication credentials, but the client is not authorized to perform this request."},"404":{"description":"The client made a request for a resource that does not exist."},"409":{"description":"The target resource is in a conflicted state (for example, an edit conflict where a resource is being edited by multiple users). Retrying the request later might succeed."},"412":{"description":"Request payload did not pass validation."},"415":{"description":"The client sent a request body in a format that the server does not support (for example, XML to a server that only accepts JSON)."},"500":{"description":"The server could not fulfill the request."},"501":{"description":"The server has not implemented the functionality required to fulfill the request."},"503":{"description":"The server is (temporarily) unavailable."},"504":{"description":"The server did not respond inside time restrictions and timed-out."}},"__originalOperationId":"createOrScheduleAReport","method":"post","path":"/dna/intent/api/v1/data/reports"}}