{
  "host": "apps-api.athom.com",
  "basePath": "/api/v1",
  "operations": {
    "updateArchive": {
      "path": "/archive/{archiveId}",
      "method": "put",
      "parameters": {
        "archiveId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "state": {
          "type": "string",
          "in": "body"
        },
        "error": {
          "type": "string",
          "in": "body"
        },
        "manifest": {
          "type": "object",
          "in": "body"
        },
        "assetsId": {
          "type": "string",
          "in": "body"
        },
        "hash": {
          "type": "string",
          "in": "body"
        },
        "size": {
          "type": "number",
          "in": "body"
        }
      }
    },
    "getApps": {
      "path": "/app",
      "method": "get",
      "parameters": {
        "page": {
          "in": "query",
          "type": "number"
        },
        "count": {
          "in": "query",
          "type": "number"
        },
        "category": {
          "in": "query",
          "type": "string"
        },
        "author": {
          "in": "query",
          "type": "string"
        }
      }
    },
    "searchApps": {
      "path": "/app/search",
      "method": "get",
      "parameters": {
        "query": {
          "in": "query",
          "type": "string",
          "required": true
        },
        "language": {
          "in": "query",
          "type": "string"
        },
        "homeyVersion": {
          "in": "query",
          "type": "string"
        },
        "homeyPlatform": {
          "in": "query",
          "type": "string"
        },
        "homeyPlatformVersion": {
          "in": "query",
          "type": "string"
        },
        "homeyModel": {
          "in": "query",
          "type": "string"
        }
      }
    },
    "searchAppsBy433MhzSignal": {
      "path": "/app/search-signal-rf433",
      "method": "get",
      "parameters": {
        "language": {
          "in": "query",
          "type": "string"
        },
        "homeyVersion": {
          "type": "string",
          "in": "body"
        },
        "homeyPlatform": {
          "type": "string",
          "in": "body"
        },
        "recordings": {
          "type": "array",
          "in": "body"
        }
      }
    },
    "searchZigbeeDriver": {
      "path": "/app/search-zigbee-driver",
      "method": "post",
      "parameters": {
        "language": {
          "in": "query",
          "type": "string"
        },
        "homeyVersion": {
          "type": "string",
          "in": "body"
        },
        "homeyPlatform": {
          "type": "string",
          "in": "body"
        },
        "homeyMinimumSdkVersion": {
          "type": "number",
          "in": "body"
        },
        "productId": {
          "type": "string",
          "in": "body"
        },
        "manufacturerName": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "searchZwaveDriver": {
      "path": "/app/search-zwave-driver",
      "method": "post",
      "parameters": {
        "language": {
          "in": "query",
          "type": "string"
        },
        "homeyVersion": {
          "type": "string",
          "in": "body"
        },
        "homeyPlatform": {
          "type": "string",
          "in": "body"
        },
        "homeyMinimumSdkVersion": {
          "type": "number",
          "in": "body"
        },
        "productId": {
          "type": "number",
          "in": "body"
        },
        "productTypeId": {
          "type": "number",
          "in": "body"
        },
        "manufacturerId": {
          "type": "number",
          "in": "body"
        }
      }
    },
    "searchMatterDriver": {
      "path": "/app/search-matter-driver",
      "method": "post",
      "parameters": {
        "language": {
          "in": "query",
          "type": "string"
        },
        "homeyVersion": {
          "type": "string",
          "in": "body"
        },
        "homeyPlatform": {
          "type": "string",
          "in": "body"
        },
        "homeyMinimumSdkVersion": {
          "type": "number",
          "in": "body"
        },
        "productId": {
          "type": "number",
          "in": "body"
        },
        "vendorId": {
          "type": "number",
          "in": "body"
        }
      }
    },
    "browseApps": {
      "path": "/app/browse",
      "method": "get",
      "parameters": {
        "query": {
          "in": "query",
          "type": "string"
        },
        "language": {
          "in": "query",
          "type": "string"
        },
        "platform": {
          "in": "query",
          "type": "array"
        },
        "connectivity": {
          "in": "query",
          "type": "array"
        },
        "category": {
          "in": "query",
          "type": "array"
        },
        "features": {
          "in": "query",
          "type": "array"
        },
        "limit": {
          "in": "query",
          "type": "number"
        },
        "offset": {
          "in": "query",
          "type": "number"
        }
      }
    },
    "syncApps": {
      "path": "/app/sync",
      "method": "post",
      "parameters": {}
    },
    "getAppsSummary": {
      "path": "/app/summary",
      "method": "get",
      "parameters": {
        "secret": {
          "in": "query",
          "type": "string",
          "required": true
        }
      }
    },
    "getHighlightedApps": {
      "path": "/app/highlight",
      "method": "get",
      "parameters": {
        "platforms": {
          "in": "query",
          "type": "string"
        }
      }
    },
    "getHighlightedAppsV2": {
      "path": "/app/highlight2",
      "method": "get",
      "parameters": {
        "platform": {
          "in": "query",
          "type": "array"
        },
        "language": {
          "in": "query",
          "type": "string"
        },
        "tags": {
          "in": "query",
          "type": "array"
        }
      }
    },
    "getMyApps": {
      "path": "/app/me",
      "method": "get",
      "parameters": {}
    },
    "getAllLiveAppIDs": {
      "path": "/app/ids",
      "method": "get",
      "parameters": {}
    },
    "getAllLiveApps": {
      "path": "/app/all",
      "method": "get",
      "parameters": {}
    },
    "getReviewApps": {
      "path": "/app/review",
      "method": "get",
      "parameters": {}
    },
    "getApp": {
      "path": "/app/{appId}",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "deleteApp": {
      "path": "/app/{appId}",
      "method": "delete",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "getAppSettings": {
      "path": "/app/{appId}/settings",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "updateAppSettings": {
      "path": "/app/{appId}/settings",
      "method": "put",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "sendEmailCrash": {
          "type": "boolean",
          "in": "body"
        },
        "sendEmailSuggestion": {
          "type": "boolean",
          "in": "body"
        },
        "sendEmailThanks": {
          "type": "boolean",
          "in": "body"
        }
      }
    },
    "getAppChangelog": {
      "path": "/app/{appId}/changelog",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "updateAppAuthor": {
      "path": "/app/{appId}/author",
      "method": "put",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "userId": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "transferAppToOrganization": {
      "path": "/app/{appId}/transfer-to-organization",
      "method": "post",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "orgId": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "getAppIcon": {
      "path": "/app/{appId}/icon",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "getAppInstall": {
      "path": "/app/{appId}/install",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "channel": {
          "in": "query",
          "type": "string"
        },
        "version": {
          "in": "query",
          "type": "string"
        },
        "secret": {
          "in": "query",
          "type": "string",
          "required": true
        }
      }
    },
    "getAppInstallStats": {
      "path": "/app/{appId}/install/stats",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "getAppPageviews": {
      "path": "/app/{appId}/pageviews",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "getAppDriversStats": {
      "path": "/app/{appId}/drivers/stats",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "getBuilds": {
      "path": "/app/{appId}/build",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "createBuild": {
      "path": "/app/{appId}/build",
      "method": "post",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "version": {
          "type": "string",
          "in": "body"
        },
        "env": {
          "type": "object",
          "in": "body"
        },
        "changelog": {
          "type": "object",
          "in": "body"
        },
        "readme": {
          "type": "object",
          "in": "body"
        }
      }
    },
    "getBuild": {
      "path": "/app/{appId}/build/{buildId}",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "buildId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "getAgentReview": {
      "path": "/app/{appId}/build/{buildId}/agent-review",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "buildId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "retryAgentReview": {
      "path": "/app/{appId}/build/{buildId}/agent-review/retry",
      "method": "post",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "buildId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "getCrashes": {
      "path": "/app/{appId}/build/{buildId}/crash",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "buildId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "getCrashesStats": {
      "path": "/app/{appId}/build/{buildId}/crash/stats",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "buildId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "updateBuildChannel": {
      "path": "/app/{appId}/build/{buildId}/channel",
      "method": "post",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "buildId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "channel": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "createSubmission": {
      "path": "/app/{appId}/build/{buildId}/submission",
      "method": "post",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "buildId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "autoRelease": {
          "type": "boolean",
          "in": "body"
        }
      }
    },
    "getSubmissionComments": {
      "path": "/app/{appId}/build/{buildId}/submission/comment",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "buildId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "createSubmissionComment": {
      "path": "/app/{appId}/build/{buildId}/submission/comment",
      "method": "post",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "buildId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "text": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "retractSubmission": {
      "path": "/app/{appId}/build/{buildId}/submission/retract",
      "method": "post",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "buildId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "approveSubmission": {
      "path": "/app/{appId}/build/{buildId}/submission/approve",
      "method": "post",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "buildId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "rejectSubmission": {
      "path": "/app/{appId}/build/{buildId}/submission/reject",
      "method": "post",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "buildId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "getReviews": {
      "path": "/app/{appId}/review",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "updateReview": {
      "path": "/app/{appId}/review",
      "method": "put",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "version": {
          "type": "string",
          "in": "body"
        },
        "rating": {
          "type": "number",
          "in": "body"
        },
        "comment": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "deleteReview": {
      "path": "/app/{appId}/review",
      "method": "delete",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "getThanks": {
      "path": "/app/{appId}/thanks",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "sayThanks": {
      "path": "/app/{appId}/thanks",
      "method": "put",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "getReviewsStats": {
      "path": "/app/{appId}/review/stats",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "deleteAllReviews": {
      "path": "/app/{appId}/review/all",
      "method": "delete",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "updateReviewResponse": {
      "path": "/app/{appId}/review/{userId}/response",
      "method": "put",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "userId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "response": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "deleteReviewResponse": {
      "path": "/app/{appId}/review/{userId}/response",
      "method": "delete",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "userId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "createCrash": {
      "path": "/app/{appId}/crash",
      "method": "post",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "appVersion": {
          "type": "string",
          "in": "body"
        },
        "homeyId": {
          "type": "string",
          "in": "body"
        },
        "homeyVersion": {
          "type": "string",
          "in": "body"
        },
        "homeyModelId": {
          "type": "string",
          "in": "body"
        },
        "homeyModelName": {
          "type": "string",
          "in": "body"
        },
        "stack": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "replyToCrash": {
      "path": "/app/crash/{crashId}/reply",
      "method": "post",
      "parameters": {
        "crashId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "subject": {
          "type": "string",
          "in": "body"
        },
        "body": {
          "type": "string",
          "in": "body"
        },
        "from": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "discoverApps": {
      "path": "/discover",
      "method": "post",
      "parameters": {
        "ssdp": {
          "type": "array",
          "in": "body"
        },
        "ble": {
          "type": "array",
          "in": "body"
        },
        "mac": {
          "type": "array",
          "in": "body"
        },
        "mdns-sd": {
          "type": "array",
          "in": "body"
        }
      }
    },
    "getAppSuggestions": {
      "path": "/app/{appId}/suggestion",
      "method": "get",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "offset": {
          "in": "query",
          "type": "number"
        },
        "length": {
          "in": "query",
          "type": "number"
        }
      }
    },
    "createAppSuggestion": {
      "path": "/app/{appId}/suggestion",
      "method": "post",
      "parameters": {
        "appId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "suggestionText": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "getMyOrganizations": {
      "path": "/org",
      "method": "get",
      "parameters": {}
    },
    "createOrganization": {
      "path": "/org",
      "method": "post",
      "parameters": {
        "name": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "getOrganization": {
      "path": "/org/{orgId}",
      "method": "get",
      "parameters": {
        "orgId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "deleteOrganization": {
      "path": "/org/{orgId}",
      "method": "delete",
      "parameters": {
        "orgId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    },
    "updateOrganizationName": {
      "path": "/org/{orgId}/name",
      "method": "put",
      "parameters": {
        "orgId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "name": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "inviteMemberToOrganization": {
      "path": "/org/{orgId}/member",
      "method": "post",
      "parameters": {
        "orgId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "email": {
          "type": "string",
          "in": "body"
        },
        "role": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "acceptMemberInviteToOrganization": {
      "path": "/org/{orgId}/member/accept",
      "method": "post",
      "parameters": {
        "orgId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "inviteToken": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "updateMemberRoleInOrganization": {
      "path": "/org/{orgId}/member/{memberId}/role",
      "method": "put",
      "parameters": {
        "orgId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "memberId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "role": {
          "type": "string",
          "in": "body"
        }
      }
    },
    "removeMemberFromOrganization": {
      "path": "/org/{orgId}/member/{memberId}",
      "method": "delete",
      "parameters": {
        "orgId": {
          "in": "path",
          "type": "string",
          "required": true
        },
        "memberId": {
          "in": "path",
          "type": "string",
          "required": true
        }
      }
    }
  }
}