Team/id/CreateStation

From Oxygen.next Wiki

Jump to: navigation, search

Contents

[edit] Description

Creates a Station beneath the given Team

[edit] Summary

URL: https://api.oxygennext.com/Team/Id/CreateStation.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" ?>
<Station>
  <Name>MC Dowells</Name>
</Station>

Response

XML Example (truncated)

<?xml version="1.0" encoding="utf-8" ?>
<Station>
  <LocationBranch />
  <LocationStreet />
  <LocationCity />
  <LocationPostalCode />
  <LocationCountry />
  <LocationFederalState />
  <LocationPlace />
  <ContactName />
  <ContactPhone />
  <ContactFax />
  <ContactMobile />
  <ContactEMail />
  <Comments />
  <SerialNumber />
  <LastLogin readonly="true">1/1/1753 12:00:00 AM</LastLogin>
  <LastUpdate readonly="true">1/1/1753 12:00:00 AM</LastUpdate>
  <LastReboot readonly="true">1/1/1753 12:00:00 AM</LastReboot>
  <Created readonly="true">5/5/2008 5:34:49 PM</Created>
  <OxygenVersion readonly="true" />
  <UpdaterVersion readonly="true" />
  <RemainingDiskspace readonly="true">0</RemainingDiskspace>
  <LocalIp readonly="true" />
  <LocalSubnet readonly="true" />
  <MacAddress readonly="true" />
  <RebootStation>False</RebootStation>
  <ActivateKey readonly="true">45fbed28-4fec-453a-9db0-6648c5815257</ActivateKey> 
  <DHCP readonly="true">False</DHCP> 
  <GateWay readonly="true" /> 
  <DNS1 readonly="true" /> 
  <DNS2 readonly="true" /> 
  <UpdateIntervalInMin>15</UpdateIntervalInMin> 
  <ShutdownStation>False</ShutdownStation> 
  <RestartPlayOut>False</RestartPlayOut> 
  <TotalDiskSpaceInMB readonly="true">0</TotalDiskSpaceInMB> 
  <InternetBandwidthinKbs readonly="true">0</InternetBandwidthinKbs> 
  <InternetTrafficInMB readonly="true">0</InternetTrafficInMB> 
  <CustomerNumber /> 
  <ParentTeam readonly="true">https://api.oxygennext.com/Team/b0acea0f-e63d-40d3-a220-409ae6b98462</ParentTeam>
  <TimeZoneKey />
  <StationLink readonly="true">https://api.oxygennext.com/Station/15bb6d26-40d7-465f-bc2e-1c65bb5b5f93</StationLink>
  <Name>MC Dowells</Name>
  <Logs>https://api.oxygennext.com/15bb6d26-40d7-465f-bc2e-1c65bb5b5f93/Logs</Logs>
  <Delete>https://api.oxygennext.com/15bb6d26-40d7-465f-bc2e-1c65bb5b5f93/Delete</Delete>
  <TimerEvents>https://api.oxygennext.com/15bb6d26-40d7-465f-bc2e-1c65bb5b5f93/TimerEvents/11-20-2009/To/11-27-2009</TimerEvents>
  <Playlist>https://api.oxygennext.com/15bb6d26-40d7-465f-bc2e-1c65bb5b5f93/Playlist</Playlist>
  <MessageFeeds>https://api.oxygennext.com/Station/15bb6d26-40d7-465f-bc2e-1c65bb5b5f93/MessageFeeds</MessageFeeds>
  <FootageCategories>https://api.oxygennext.com/Station/15bb6d26-40d7-465f-bc2e-1c65bb5b5f93/FootageCategories</FootageCategories>
  <TemplateCategories>https://api.oxygennext.com/Station/15bb6d26-40d7-465f-bc2e-1c65bb5b5f93/TemplateCategories</TemplateCategories>
  <Move>https://api.oxygennext.com/Station/15bb6d26-40d7-465f-bc2e-1c65bb5b5f93/MoveTo/{targetGuid}</Move>
  <PlayoutChannels>https://api.oxygennext.com/Station/15bb6d26-40d7-465f-bc2e-1c65bb5b5f93/PlayoutChannels</PlayoutChannels>
  <Screenshots>https://api.oxygennext.com/15bb6d26-40d7-465f-bc2e-1c65bb5b5f93/Screenshots</Screenshots>
  <Alerts>https://api.oxygennext.com/15bb6d26-40d7-465f-bc2e-1c65bb5b5f93/Alerts</Alerts>
</Station>

[edit] Usage examples

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

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


The CSV_Station_Importer makes use of the CreateStation method

Personal tools