Team/id/Create

From Oxygen.next Wiki

Jump to: navigation, search

Contents

[edit] Description

Creates a Team beneath the given Team

[edit] Summary

URL: https://api.oxygennext.com/Team/Id/CreateTeam.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" ?>
<Team>
  <Name>the A-team</Name>
</Team>

Response

XML Example (truncated)

<?xml version="1.0" encoding="utf-8" ?>
<Team>
  <Name>the A-team</Name>
  <TeamLink readonly="true">https://api.oxygennext.com/Team/d765ab2e-421b-47dd-816d-6fed2b0cd4df</TeamLink>
  <ParentTeam readonly="true">https://api.oxygennext.com/Team/df424f75-52f2-4232-b9a0-4178ddd05aa9</ParentTeam>
  <Comment />
  <Move>https://api.oxygennext.com/Team/d765ab2e-421b-47dd-816d-6fed2b0cd4df/MoveTo/{targetGuid}</Move>
  <Delete>https://api.oxygennext.com/Team/d765ab2e-421b-47dd-816d-6fed2b0cd4df/Delete</Delete>
  <StationGroups>https://api.oxygennext.com/Team/d765ab2e-421b-47dd-816d-6fed2b0cd4df/StationGroups</StationGroups>
  <ChildTeams>https://api.oxygennext.com/Team/d765ab2e-421b-47dd-816d-6fed2b0cd4df/Teams</ChildTeams>
  <Users>https://api.oxygennext.com/Team/d765ab2e-421b-47dd-816d-6fed2b0cd4df/Users</Users>
  <Stations>https://api.oxygennext.com/Team/d765ab2e-421b-47dd-816d-6fed2b0cd4df/Stations</Stations>
</Team>

[edit] Usage examples

cURL (about cURL):
curl -u user:password http://api.oxygennext.com/Team/df424f75-52f2-4232-b9a0-4178ddd05aa9/CreateTeam

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


Personal tools