{"_id":"5b59f5cc4e878f0003fd477a","project":"54aa7f773b56130b0056c86e","version":{"_id":"55781fe25129590d003ff4f7","project":"54aa7f773b56130b0056c86e","forked_from":"54aa7f773b56130b0056c871","__v":6,"createdAt":"2015-06-10T11:30:42.700Z","releaseDate":"2015-06-10T11:30:42.700Z","categories":["55781fe35129590d003ff4f8","55781fe35129590d003ff4f9","55781fe35129590d003ff4fa","55781fe35129590d003ff4fb","55781fe35129590d003ff4fc","55781fe35129590d003ff4fd","55781fe35129590d003ff4fe","564bbc7e8841060d00abb2ee","565b66c446118c0d00dcb0bb","56898269f8dc340d00308c13","582318b23b961a0f009516a1","594a848c9f4771001a43c959"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Developers","version_clean":"2.0.0","version":"2.0"},"category":{"_id":"564bbc7e8841060d00abb2ee","__v":10,"pages":["564bbf454bf5c80d0020901e","564bc1b08b1c5521002bb914","564c387b9baa330d00faa622","564c3a7b61008d17006ffa3a","564c3e4083b72c2b00b36fb6","564c431b61008d17006ffa46","564c4bc9b9cdb41700a0eae7","564c4e955f9d102b00fc3b4a","564c5f32c241881700d85981","564c68a93eb8f81700838a25"],"project":"54aa7f773b56130b0056c86e","version":"55781fe25129590d003ff4f7","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-11-17T23:47:10.058Z","from_sync":false,"order":1,"slug":"pulsate-cms-api","title":"Pulsate CMS API"},"user":"5874dcd9edcf9f2f00f9e0af","githubsync":"","__v":8,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-07-26T16:24:44.151Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl -X POST \"https://control.pulsatehq.com/api/v1/apps\"\n  -H \"authorization: Token token=$MY_ADMIN_API_TOKEN\"\n  -d '{\n    \"name\": \"Sample App Name #1\",\n    \"mode\": \"production\",\n    \"company_id\": \"$COMPANY_ID\"\n    }'","language":"shell"}]},"method":"post","results":{"codes":[{"name":"","code":"{\n    \"access_token\": \"12ed85388633b7fd9963d88511b1d8b2ff1d2570d4cd1173ef6f6015b07aa129\",\n    \"app_secret\": \"f9eaed99ea75e7b6dbc5d5d922ef44d059d364f1478cb83aa556d8f67c292e8a\",\n    \"app_token\": \"94fb2b39d744605fffaa1aa26008c0b458c1aadb860bd04b357d65fe54ec7f31\",\n    \"custom_values\": {},\n    \"installed\": false,\n    \"name\": \"Sample App Name #1\",\n    \"id\": \"5b59f7337768610b4f0b0000\",\n    \"company_id\": \"535920b050bba9cc9d000001\",\n    \"setting\": {\n        \"apns_content_available\": false,\n        \"beacon_event_method\": \"POST\",\n        \"beacon_event_url\": null,\n        \"beacon_event_webhook_enabled\": false,\n        \"mode\": \"production\",\n        \"push_notification_sound\": \"default\",\n        \"time_frame\": \"minutes\",\n        \"time_value\": null,\n        \"wait_frame\": \"minutes\",\n        \"wait_value\": null,\n        \"gcm_app_id\": null\n    }\n}","language":"json","status":200},{"code":"{\n    \"error\": \"Missing parameter name\"\n}","language":"text","status":422}]},"settings":"564bbbf80cbcc91700b8171c","auth":"required","params":[{"_id":"5b59f7c27f39c90003a9746e","ref":"","in":"body","required":true,"desc":"Name of the App","default":"","type":"string","name":"name"},{"_id":"5b59f7c27f39c90003a9746d","ref":"","in":"body","required":true,"desc":"Mode of the App. Can be one of: [\"development\", \"production\"]. \"Development\" mode is sandbox versions of the app which does not sends push notifications to users. \"Production\" mode sends push notifications to users","default":"","type":"string","name":"mode"},{"_id":"5b59f800a7e5320003413604","ref":"","in":"body","required":true,"desc":"Company ID under which App should be created. It can be fetched by query \"Apps: Get All (Index)\" or \"Apps: Get One (Show)\" endpoints.","default":"","type":"string","name":"company_id"}],"url":"/apps"},"isReference":true,"order":5,"body":"","excerpt":"","slug":"apps-create-one","type":"endpoint","title":"Apps: Create One"}

postApps: Create One


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

name:
required
string
Name of the App
mode:
required
string
Mode of the App. Can be one of: ["development", "production"]. "Development" mode is sandbox versions of the app which does not sends push notifications to users. "Production" mode sends push notifications to users
company_id:
required
string
Company ID under which App should be created. It can be fetched by query "Apps: Get All (Index)" or "Apps: Get One (Show)" endpoints.

Examples


Result Format


User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}