StationOrStationGroup/id/CreateTemplateCategory

From Oxygen.next Wiki

Jump to: navigation, search

Contents

[edit] Description

Creates an new Template Category on the given Station.

[edit] Summary

URL: https://api.oxygennext.com/Station/{Id}/CreateTemplateCategory
Formats: xml, json
HTTP Method(s): POST
API rate limited (about Rate Limiting): true

[edit] Parameters

Id = Id (Guid) from the Station.

[edit] Example request with XML (truncated)

<?xml version="1.0" encoding="utf-8" ?>
<TextTemplateCategory>
  <Name>Test</Name>
</TextTemplateCategory>

[edit] Example return with XML

<?xml version="1.0" encoding="utf-8" ?>
<TextTemplateCategory>
  <TemplateCategoryLink readonly="true">http://localhost:5500/TemplateCategory/351abeb6-0c54-40ad-93ec-f12e93e66370</TemplateCategoryLink>
  <Created>11/13/2009 12:19:37 PM</Created>
  <Name>Test</Name>
  <Templates>http://localhost:5500/TemplateCategory/351abeb6-0c54-40ad-93ec-f12e93e66370/Templates</Templates>
  <Move>http://localhost:5500/TemplateCategory/351abeb6-0c54-40ad-93ec-f12e93e66370/MoveTo/{targetGuid}</Move>
  <Copy>http://localhost:5500/TemplateCategory/351abeb6-0c54-40ad-93ec-f12e93e66370/CopyTo/{targetGuid}</Copy>
  <Delete>http://localhost:5500/TemplateCategory/351abeb6-0c54-40ad-93ec-f12e93e66370/Delete</Delete>
</TextTemplateCategory>

[edit] Usage examples

cURL (about cURL):
curl -u user:password http://localhost:5500/Station/15bb6d26-40d7-465f-bc2e-1c65bb5b5f93/CreateTemplateCategory

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

Personal tools