Template/Id/Update

From Oxygen.next Wiki

Jump to: navigation, search

Contents

[edit] Description

Updates the Template with the given Id

[edit] Summary

URL: https://api.oxygennext.com/Template/Id/Update.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) of the Template

Request

XML Example (truncated)

<?xml version="1.0" encoding="utf-8" ?>
<TextTemplate>
    <Name>A cool new Template</Name>
</TextTemplate>

Response

XML Example (truncated)

<?xml version="1.0" encoding="utf-8" ?>
<TextTemplate>
    <TemplateLink readonly="true">http://api.oxygennext.com/Template/281c8e8e-af87-44a9-8bee-9efe4274976e</TemplateLink>
    <TemplateFileLink>http://api.oxygennext.com/Content/TextTemplates/d04e8f8f-d3c0-4db6-83db-200dcdfa4bee.swf</TemplateFileLink>
    <TemplateFileThumbLink>http://api.oxygennext.com/Content/TextTemplates/d04e8f8f-d3c0-4db6-83db-200dcdfa4bee.swf.thumb</TemplateFileThumbLink>
    <Name>A cool new Template</Name>
    <ParentCategory readonly="true">http://api.oxygennext.com/TemplateCategory/4a3e1576-4075-4e8e-9cec-de200cd133a0</ParentCategory>
    <AdditionalNotes />
    <Created readonly="true">12/10/2009 5:30:17 PM</Created>
    <FileSize readonly="true">294087</FileSize>
    <Delete>http://api.oxygennext.com/Template/281c8e8e-af87-44a9-8bee-9efe4274976e/Delete</Delete>
    <Copy>http://api.oxygennext.com/Template/281c8e8e-af87-44a9-8bee-9efe4274976e/CopyTo/{targetGuid}</Copy>
    <Move>http://api.oxygennext.com/Template/281c8e8e-af87-44a9-8bee-9efe4274976e/MoveTo/{targetGuid}</Move>
  </TextTemplate>

[edit] Usage examples

cURL (about cURL):
curl -u user:password https://api.oxygennext.com/Template/15bb6d26-40d7-465f-bc2e-1c65bb5b5f93/Update

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


Personal tools