{"__v":13,"_id":"55a58fdeaaf9cf1900114df7","category":{"__v":0,"_id":"55afb22e902fd51700f5f8bf","pages":[],"project":"559a61d2dbcfd20d00710b39","version":"559a61d2dbcfd20d00710b3c","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-07-22T15:09:34.790Z","from_sync":false,"order":7,"slug":"apps","title":"Apps"},"parentDoc":null,"project":"559a61d2dbcfd20d00710b39","user":"55a575ebaaf9cf1900114d73","version":{"__v":23,"_id":"559a61d2dbcfd20d00710b3c","project":"559a61d2dbcfd20d00710b39","createdAt":"2015-07-06T11:09:06.510Z","releaseDate":"2015-07-06T11:09:06.510Z","categories":["559a61d3dbcfd20d00710b3d","55a589ddaaf9cf1900114dd0","55a589e30f354f0d00fd0312","55a589ea80c8a30d00b323cc","55a589f6aaf9cf1900114dd1","55a58d4e80c8a30d00b323e6","55a8e7a227a17d21005251a2","55a93098cf45e1390093f351","55afb085f202b12100cd9e83","55afb22e902fd51700f5f8bf","55afb260902fd51700f5f8c2","55afb28ec8a85321007a5462","55afb294f202b12100cd9e95","55afb29b902fd51700f5f8c5","55afb2a1c8a85321007a5463","55afb2a7902fd51700f5f8c7","55afb2ad902fd51700f5f8c8","55afb2b5902fd51700f5f8ca","55b74b2131bccb190081bedc","55bb441b54f9640d006e6cf2","565711085cb2420d00d70071","5681681330018c0d006bf7ff","588f38b5923d610f00c72dad"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-07-14T22:40:30.574Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":true,"order":0,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"The app object\"\n}\n[/block]\nAttributes:\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Obligatory?\",\n    \"h-3\": \"Description\",\n    \"0-0\": \"createdAt\",\n    \"0-3\": \"Creation date (timestamp UTC)\",\n    \"0-1\": \"long\",\n    \"0-2\": \"Autogenerated\",\n    \"1-0\": \"accountId\",\n    \"1-1\": \"string\",\n    \"1-2\": \"Yes\",\n    \"1-3\": \"Account ID this app belongs to.\",\n    \"2-0\": \"appKey\",\n    \"2-1\": \"string\",\n    \"2-2\": \"Autogenerated\",\n    \"2-3\": \"App key\",\n    \"3-0\": \"config.appUrl\",\n    \"3-1\": \"string\",\n    \"3-2\": \"No\",\n    \"3-3\": \"App website URL\",\n    \"4-0\": \"config.category\",\n    \"4-1\": \"string\",\n    \"4-2\": \"No\",\n    \"4-3\": \"App category name\",\n    \"5-0\": \"config.version\",\n    \"5-1\": \"string\",\n    \"5-2\": \"Yes\",\n    \"5-3\": \"App version string\",\n    \"6-0\": \"config.description\",\n    \"6-1\": \"string\",\n    \"6-2\": \"No\",\n    \"6-3\": \"App description\",\n    \"7-0\": \"config.iconUrl\",\n    \"7-1\": \"string\",\n    \"7-2\": \"No\",\n    \"7-3\": \"App icon URL\",\n    \"8-0\": \"config.name\",\n    \"8-1\": \"string\",\n    \"8-2\": \"Yes\",\n    \"8-3\": \"App short name\",\n    \"9-0\": \"config.approxAppSize\",\n    \"9-1\": \"string\",\n    \"9-2\": \"No\",\n    \"9-3\": \"Estimated volume of users of this app\",\n    \"10-0\": \"config.updatedAt\",\n    \"10-1\": \"long\",\n    \"10-2\": \"Autogenerated\",\n    \"10-3\": \"Last modified date (timestamp UTC)\",\n    \"11-0\": \"targets\",\n    \"11-1\": \"array of objects\",\n    \"11-2\": \"No\",\n    \"11-3\": \"A list of AppTarget objects this app is associated to.\"\n  },\n  \"cols\": 4,\n  \"rows\": 12\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Sample app object\"\n}\n[/block]\nExample app object in JSON:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"createdAt\\\": 1411491803257,\\n    \\\"appKey\\\": \\\"Z2xxt0e4Tv29kGG-Ui0Jgg\\\",\\n    \\\"accountId\\\": \\\"WXPvOaYERlGkZ4AP6q_onw\\\",\\n    \\\"config\\\": {\\n      \\\"appUrl\\\": \\\"\\\",\\n      \\\"category\\\": \\\"Utilities\\\",\\n      \\\"version\\\": \\\"1.0\\\",\\n      \\\"description\\\": \\\"\\\",\\n      \\\"iconUrl\\\": \\\"\\\",\\n      \\\"name\\\": \\\"TestApp\\\",\\n      \\\"approxAppSize\\\": \\\"<2500\\\",\\n      \\\"updatedAt\\\": 1411491803258,\\n      \\\"production\\\": false\\n    },\\n    \\\"targets\\\": []\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"App objects represent mobile apps in MOCA platform. The API allows you to create, delete and update your apps. You can retrieve individual apps as well as a list of all your apps.","slug":"apps","type":"basic","title":"Apps"}

Apps

App objects represent mobile apps in MOCA platform. The API allows you to create, delete and update your apps. You can retrieve individual apps as well as a list of all your apps.

[block:api-header] { "type": "basic", "title": "The app object" } [/block] Attributes: [block:parameters] { "data": { "h-0": "Name", "h-1": "Type", "h-2": "Obligatory?", "h-3": "Description", "0-0": "createdAt", "0-3": "Creation date (timestamp UTC)", "0-1": "long", "0-2": "Autogenerated", "1-0": "accountId", "1-1": "string", "1-2": "Yes", "1-3": "Account ID this app belongs to.", "2-0": "appKey", "2-1": "string", "2-2": "Autogenerated", "2-3": "App key", "3-0": "config.appUrl", "3-1": "string", "3-2": "No", "3-3": "App website URL", "4-0": "config.category", "4-1": "string", "4-2": "No", "4-3": "App category name", "5-0": "config.version", "5-1": "string", "5-2": "Yes", "5-3": "App version string", "6-0": "config.description", "6-1": "string", "6-2": "No", "6-3": "App description", "7-0": "config.iconUrl", "7-1": "string", "7-2": "No", "7-3": "App icon URL", "8-0": "config.name", "8-1": "string", "8-2": "Yes", "8-3": "App short name", "9-0": "config.approxAppSize", "9-1": "string", "9-2": "No", "9-3": "Estimated volume of users of this app", "10-0": "config.updatedAt", "10-1": "long", "10-2": "Autogenerated", "10-3": "Last modified date (timestamp UTC)", "11-0": "targets", "11-1": "array of objects", "11-2": "No", "11-3": "A list of AppTarget objects this app is associated to." }, "cols": 4, "rows": 12 } [/block] [block:api-header] { "type": "basic", "title": "Sample app object" } [/block] Example app object in JSON: [block:code] { "codes": [ { "code": "{\n \"createdAt\": 1411491803257,\n \"appKey\": \"Z2xxt0e4Tv29kGG-Ui0Jgg\",\n \"accountId\": \"WXPvOaYERlGkZ4AP6q_onw\",\n \"config\": {\n \"appUrl\": \"\",\n \"category\": \"Utilities\",\n \"version\": \"1.0\",\n \"description\": \"\",\n \"iconUrl\": \"\",\n \"name\": \"TestApp\",\n \"approxAppSize\": \"<2500\",\n \"updatedAt\": 1411491803258,\n \"production\": false\n },\n \"targets\": []\n}", "language": "json" } ] } [/block]