{"_id":"58aad9de8f862f250076fa45","category":{"_id":"58aad9dd8f862f250076f9f6","version":"58aad9dd8f862f250076f9f4","project":"54aa7f773b56130b0056c86e","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-11-17T23:47:10.058Z","from_sync":false,"order":2,"slug":"pulsate-cms-api","title":"Pulsate CMS API"},"parentDoc":null,"project":"54aa7f773b56130b0056c86e","version":{"_id":"58aad9dd8f862f250076f9f4","project":"54aa7f773b56130b0056c86e","__v":2,"createdAt":"2017-02-20T11:58:21.765Z","releaseDate":"2017-02-20T11:58:21.765Z","categories":["58aad9dd8f862f250076f9f5","58aad9dd8f862f250076f9f6","58aad9dd8f862f250076f9f7","58aad9dd8f862f250076f9f8","58aad9dd8f862f250076f9f9","58aad9dd8f862f250076f9fa","58aad9dd8f862f250076f9fb","58ac26b3d460ce2500185d26"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"Locate","version_clean":"6.0.0","version":"6.0"},"__v":0,"user":"5874dcd9edcf9f2f00f9e0af","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-01-10T13:14:58.874Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"shell","code":"curl -X POST \"https://control.pulsatehq.com/api/v1/apps/$APP_ID/groups\" \\\n-H \"Authorization: Token token=$MY_ADMIN_API_TOKEN\" \\\n-d '{\n    \"group\": {\n        \"name\": \"sample_group\",\n        \"resource_type\": \"geofences\",\n        \"resource_ids\": [\"586283bf61636518df330000\", \"586a2d8061636526f7010000\"]\n    }\n}'","name":""}]},"method":"post","results":{"codes":[{"name":"","status":200,"language":"json","code":"{\n  \"hidden\": false,\n  \"hidden_at\": null,\n  \"name\": \"sample_group\",\n  \"resource_type\": \"Mobile::App::Geofence\",\n  \"resource_ids\": [\n    \"586283bf61636518df330000\",\n    \"586a2d8061636526f7010000\"\n  ],\n  \"id\": \"58779837636f6eb7d4130000\"\n}"}]},"settings":"564bbbf80cbcc91700b8171c","auth":"required","params":[{"_id":"564c387b9baa330d00faa623","ref":"","in":"body","required":true,"desc":"Group to be created","default":"","type":"object","name":"group"},{"_id":"57ff8232e7218a1900673d08","ref":"","in":"path","required":true,"desc":"App Id","default":"","type":"string","name":"app_id"},{"_id":"5874f495967ae00f0016484e","ref":"","in":"body","required":true,"desc":"Group name","default":"","type":"string","name":"group.name"},{"_id":"5874f526aff63f0f006faf40","ref":"","in":"body","required":true,"desc":"Group resource type, can be one of: [campaigns, segments, beacons, geofences]","default":"","type":"string","name":"group.resource_type"},{"_id":"5874f526aff63f0f006faf3f","ref":"","in":"body","required":true,"desc":"Array of resource Id-s for the group, can be array of Ids of campaigns, segments, beacons or geofences","default":"","type":"array_string","name":"group.resource_ids"}],"url":"/apps/:app_id/groups"},"isReference":true,"order":47,"body":"","excerpt":"","slug":"groups-create-one","type":"endpoint","title":"Groups: Create One"}

postGroups: Create One


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

app_id:
required
string
App Id

Body Params

group:
required
object
Group to be created
group.name:
required
string
Group name
group.resource_type:
required
string
Group resource type, can be one of: [campaigns, segments, beacons, geofences]
group.resource_ids:
required
array of strings
Array of resource Id-s for the group, can be array of Ids of campaigns, segments, beacons or geofences

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 }}