{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/apps","auth":"required","examples":{"codes":[{"language":"shell","code":"curl -X POST \"https://control.pulsatehq.com/api/v1/apps\"\n  -H \"authorization: Token token=$MY_ADMIN_API_TOKEN\"\n  -d '{\n    \"app\": {\n      \"name\": \"sample-app-name\",\n      \"mode\": \"production\",\n      \"company_id\": \"535920b050bba9cc9d000001\"\n\t\t}\n  }'"}]},"method":"post","results":{"codes":[{"name":"","code":"{\n    \"access_token\": \"12ed85388633b7fd9...\",\n    \"app_secret\": \"f9eaed99ea75e7b6dbc...\",\n    \"app_token\": \"94fb2b39d744605fffaa...\",\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","params":[{"name":"app","type":"object","default":"","desc":"App to be inserted","required":true,"in":"body","ref":"","_id":"5c7511bef8e15d004a15cc83"},{"name":"app.name","type":"string","default":"","desc":"Name of the App","required":true,"in":"body","ref":"","_id":"5b59f7c27f39c90003a9746e"},{"name":"app.mode","type":"string","default":"","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","required":true,"in":"body","ref":"","_id":"5b59f7c27f39c90003a9746d"},{"name":"app.company_id","type":"string","default":"","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.","required":true,"in":"body","ref":"","_id":"5b59f800a7e5320003413604"}]},"next":{"description":"","pages":[]},"title":"Apps: Create One","type":"endpoint","slug":"apps-create-one","excerpt":"","body":"","updates":[],"order":5,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5e4fced159815700262d291d","project":"54aa7f773b56130b0056c86e","version":{"version":"2.2","version_clean":"2.2.0","codename":"CMS API","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5e4fced159815700262d2899","55781fe35129590d003ff4f9","55781fe35129590d003ff4fa","5e4fced159815700262d289a","5e4fced159815700262d289b","5e4fced159815700262d289c","5e4fced159815700262d289d","5e4fced159815700262d289e","565b66c446118c0d00dcb0bb","56898269f8dc340d00308c13","5e4fced159815700262d289f","5e4fced159815700262d28a0","5c73dd27e8fdc000572a206a","5e4fced159815700262d28a1","5e53c04c1d11110018b56e12"],"_id":"5e4fced159815700262d2930","project":"54aa7f773b56130b0056c86e","forked_from":"55781fe25129590d003ff4f7","__v":1,"createdAt":"2015-06-10T11:30:42.700Z","releaseDate":"2015-06-10T11:30:42.700Z"},"category":{"sync":{"isSync":false,"url":""},"pages":["5e4fced159815700262d28c6","5e4fced159815700262d28c7","5e4fced159815700262d28c8","5e4fced159815700262d28c9","5e4fced159815700262d28ca","5e4fced159815700262d28cb","5e4fced159815700262d28cc","5e4fced159815700262d28cd","5e4fced159815700262d28ce","564c68a93eb8f81700838a25"],"title":"Pulsate CMS API","slug":"pulsate-cms-api","order":1,"from_sync":false,"reference":true,"_id":"5e4fced159815700262d289e","__v":10,"createdAt":"2015-11-17T23:47:10.058Z","project":"54aa7f773b56130b0056c86e","version":"5e4fced159815700262d2930"},"user":"5874dcd9edcf9f2f00f9e0af","createdAt":"2018-07-26T16:24:44.151Z","githubsync":"","__v":10,"parentDoc":null}

postApps: Create One


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

app:
required
object
App to be inserted
app.name:
required
string
Name of the App
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
app.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 }}