{
  "host": "backup.athom.com",
  "basePath": "/api/v1",
  "operations": {
    "getMyBackups": {
      "path": "/user/me",
      "method": "get",
      "parameters": {
        "token": {
          "in": "query",
          "type": "string",
          "required": true
        }
      }
    },
    "deleteMyBackup": {
      "path": "/user/me/homey/{homeyId}/backup/{backupId}",
      "method": "delete",
      "parameters": {
        "homeyId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "backupId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "token": {
          "in": "query",
          "type": "string",
          "required": true
        }
      }
    },
    "getBackups": {
      "path": "/user/{userId}",
      "method": "get",
      "parameters": {
        "userId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "secret": {
          "in": "query",
          "type": "string",
          "required": true
        }
      }
    },
    "deleteBackups": {
      "path": "/user/{userId}",
      "method": "delete",
      "parameters": {
        "userId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "getBackup": {
      "path": "/user/{userId}/backup/{backupId}",
      "method": "get",
      "parameters": {
        "userId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "backupId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "secret": {
          "in": "query",
          "type": "string",
          "required": true
        }
      }
    },
    "createBackup": {
      "path": "/user/{userId}/homey/{homeyId}",
      "method": "post",
      "parameters": {
        "userId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "homeyId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "secret": {
          "in": "query",
          "type": "string",
          "required": true
        },
        "homeyName": {
          "type": "string",
          "in": "body"
        },
        "homeyPlatform": {
          "type": "string",
          "in": "body"
        },
        "homeyPlatformVersion": {
          "type": "number",
          "in": "body"
        },
        "homeyModel": {
          "type": "string",
          "in": "body"
        },
        "version": {
          "type": "string",
          "in": "body"
        },
        "channel": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "setBackupComplete": {
      "path": "/user/{userId}/homey/{homeyId}/backup/{backupId}/complete",
      "method": "put",
      "parameters": {
        "userId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "homeyId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "backupId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "secret": {
          "in": "query",
          "type": "string",
          "required": true
        },
        "size": {
          "type": "number",
          "in": "body"
        },
        "hash": {
          "type": "string",
          "in": "body"
        },
        "meta": {
          "type": "object",
          "in": "body"
        }
      }
    }
  }
}