Team/id/CreateStationGroup

From Oxygen.next Wiki

Jump to: navigation, search

Contents

[edit] Description

Creates a StationGroup beneath the given Team

[edit] Summary

URL: https://api.oxygennext.com/Team/Id/CreateStationGroup.format
Formats: Xml, Json
Requires Authentication (about Authentication): true
HTTP Method(s): POST
API rate limited (about Rate Limiting): true

[edit] Parameters

Id = Id(Guid) from the Team

Request

XML Example (truncated)

<?xml version="1.0" encoding="utf-8" ?>
<StationGroup>
  <Name>Hallo ich bin ein Test</Name>
</StationGroup>

Response

XML Example (truncated)

<?xml version="1.0" encoding="utf-8" ?>
<StationGroup>
  <StationGroupLink readonly="true">http://api.oxygennext.com/StationGroup/ef3f9c0f-4933-43a8-81c7-f80175afcfe5</StationGroupLink>
  <Name>Hallo ich bin ein Test</Name>
  <ParentTeam readonly="true">http://api.oxygennext.com/Team/b0acea0f-e63d-40d3-a220-409ae6b98462</ParentTeam>
  <ChildStationGroups>http://api.oxygennext.com/StationGroup/ef3f9c0f-4933-43a8-81c7-f80175afcfe5/StationGroups</ChildStationGroups>
  <TemplateCategories>http://api.oxygennext.com/StationGroup/ef3f9c0f-4933-43a8-81c7-f80175afcfe5/TemplateCategories</TemplateCategories>
  <Delete>http://api.oxygennext.com/StationGroup/ef3f9c0f-4933-43a8-81c7-f80175afcfe5/Delete</Delete>
  <ChildStations>http://api.oxygennext.com/StationGroup/ef3f9c0f-4933-43a8-81c7-f80175afcfe5/Stations</ChildStations>
  <TimerEvents>http://api.oxygennext.com/StationGroup/ef3f9c0f-4933-43a8-81c7-f80175afcfe5/TimerEvents/11-30-2009/To/12-7-2009</TimerEvents>
  <Move>http://api.oxygennext.com/StationGroup/ef3f9c0f-4933-43a8-81c7-f80175afcfe5/MoveTo/{targetGuid}</Move>
  <MessageFeeds>http://api.oxygennext.com/StationGroup/ef3f9c0f-4933-43a8-81c7-f80175afcfe5/MessageFeeds</MessageFeeds>
  <Categories>http://api.oxygennext.com/StationGroup/ef3f9c0f-4933-43a8-81c7-f80175afcfe5/Categories</Categories>
  <Copy>http://api.oxygennext.com/StationGroup/ef3f9c0f-4933-43a8-81c7-f80175afcfe5/CopyTo/{targetGuid}</Copy>
</StationGroup>

[edit] Usage examples

cURL (about cURL):
curl -u user:password http://api.oxygennext.com/Team/b0acea0f-e63d-40d3-a220-409ae6b98462/CreateStationGroup

Do you have an example to share in the language of your choice? Please share!