For Downloading a Report

02/13/2020 | Less than 1 minute to read

Info Note

API TYPE: POST
End Point: POST /download
Description: For Downloading a Report

Request (For Downloading a Report)

02/13/2020 | 6 minutes to read



{
  "data": [
    {
      "detail": {
        "adminEmail": "string",
        "deviceBos": [
          {
            "attributes": [
              {
                "attributeName": "string",
                "attributeType": "string",
                "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                "isActive": true,
                "jsonPath": "string",
                "modifiedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                "noOfAttributes": 0,
                "noOfTags": 0,
                "uuid": "string"
              }
            ],
            "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
            "description": "string",
            "deviceName": "string",
            "edgeDeviceUuid": "string",
            "isActive": true,
            "isDisabled": true,
            "isTemplate": true,
            "modifiedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
            "noOfAttributes": 0,
            "noOfTags": 0,
            "noOfTriggers": 0,
            "organizationName": "string",
            "organizationUuid": "string",
            "tags": [
              {
                "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                "isActive": true,
                "modifiedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                "name": "string",
                "noOfAttributes": 0,
                "noOfTags": 0,
                "uuid": "string",
                "value": "string"
              }
            ],
            "timestamp": 0,
            "triggers": [
              {
                "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                "isActive": true,
                "modifiedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                "noOfAttributes": 0,
                "noOfTags": 0,
                "rules": [
                  {
                    "andOr": "string",
                    "condition": "string",
                    "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                    "isActive": true,
                    "modifiedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                    "noOfAttributes": 0,
                    "noOfTags": 0,
                    "property": "string",
                    "uuid": "string",
                    "value": "string"
                  }
                ],
                "triggerAddress": "string",
                "triggerAddressArgument": "string",
                "triggerHttpCallType": "string",
                "triggerMessage": "string",
                "triggerMessageArgument": "string",
                "triggerName": "string",
                "triggerOptions": [
                  {
                    "attributeName": "string",
                    "attributeValue": "string",
                    "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                    "isActive": true,
                    "modifiedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                    "uuid": "string"
                  }
                ],
                "triggerQueueTopic": "string",
                "triggerScript": "string",
                "triggerType": "string",
                "uuid": "string"
              }
            ],
            "userUuid": "string",
            "uuid": "string"
          }
        ],
        "deviceNumber": 0,
        "deviceUUID": "string",
        "inviteUserEmail": "string",
        "inviteUserUuid": "string",
        "mailToUser": true,
        "orgEmail": "string",
        "orgUUID": "string",
        "recipientEmail": "string",
        "recipientUUID": "string",
        "roleUUID": "string",
        "sandboxBos": [
          {
            "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
            "description": "string",
            "deviceUuid": "string",
            "from": 0,
            "isActive": true,
            "isDataMocked": true,
            "name": "string",
            "organizationUuid": "string",
            "sandboxDetails": [
              {
                "attributeName": "string",
                "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                "dataMethodCodeUuid": "string",
                "generationCode": {
                  "clazz": "string",
                  "codeIdentifier": "string",
                  "codeType": {
                    "clazz": "string",
                    "codeTypeIdentifier": "string",
                    "codes": [
                      {}
                    ],
                    "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                    "isActive": true,
                    "longDescription": "string",
                    "shortDescription": "string",
                    "updatedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                    "uuid": "string",
                    "value": "string"
                  },
                  "createdOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                  "isActive": true,
                  "longDescription": "string",
                  "shortDescription": "string",
                  "updatedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                  "uuid": "string",
                  "value": "string"
                },
                "isActive": true,
                "max": 0,
                "min": 0,
                "sandbox": {},
                "updatedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
                "value": "string"
              }
            ],
            "timeField": "string",
            "timeunit": 0,
            "to": 0,
            "updatedOn": "yyyy-MM-dd'T'HH:mm:ss*SSSZ",
            "userUuid": "string",
            "uuid": "string"
          }
        ],
        "sandboxUUID": "string",
        "senderEmail": "string",
        "senderUUID": "string"
      },
      "emailData": "string",
      "fileData": "string",
      "fileType": "string",
      "reportName": "string",
      "templateKey": "string",
      "token": "string"
    }
  ],
  "metadata": {
    "fileCodeUuid": "string",
    "orgUuid": "string",
    "userUuid": "string"
  }
}

Response (For Downloading a Report)

02/13/2020 | Less than 1 minute to read



{
  "data": [
    {}
  ],
  "metadata": {
    "fileCodeUuid": "string",
    "orgUuid": "string",
    "userUuid": "string"
  },
  "statusCode": "OK"
}

ErrorCode (For Downloading a Report)

02/13/2020 | 3 minutes to read

HTTP Status Code Reason Response Model Headers
200 We received the request and created Successfully    
200 CCP-RM-002 | Error while downloading report    
400 CCP-HTTP-003 | Request method not supported    
401 You are not authorized to view the resource    
403 Accessing the resource you were trying to reach is forbidden    
404 The resource you were trying to reach is not found    

©2024 Developer.CSensorNet.com. All rights reserved | Powered by www.clovity.com