Template/Id/MoveTo/TemplateCategoryId
From Oxygen.next Wiki
Contents |
[edit] Description
Moves a Template to the another TemplateCategory
[edit] Summary
URL: https://api.oxygennext.com/Template/Id/MoveTo/targetId.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 TemplateCategory
targetId = Id(Guid) from the target Station or StationGroup
Response
XML Example (truncated)
<?xml version="1.0" encoding="utf-8" ?> <TextTemplate> <TemplateLink readonly="true">https://api.oxygennext.com/Template/d2290d65-cea4-4b98-8c96-c1b5d66b19d1</TemplateLink> <TemplateFileLink>https://api.oxygennext.com/Content//TextTemplates/816fef72-0b69-4241-8475-7440ec0b2135.swf</TemplateFileLink> <TemplateFileThumbLink>https://api.oxygennext.com/Content//TextTemplates/816fef72-0b69-4241-8475-7440ec0b2135.swf.thumb</TemplateFileThumbLink> <Name>a01v2 - bild 16x9 - 1Titel 1Text 1Preis</Name> <ParentCategory readonly="true">https://api.oxygennext.com/TemplateCategory/351abeb6-0c54-40ad-93ec-f12e93e66370</ParentCategory> <AdditionalNotes /> <Created readonly="true">11/13/2009 12:36:19 PM</Created> <FileSize readonly="true">435477</FileSize> <Delete>https://api.oxygennext.com/Template/d2290d65-cea4-4b98-8c96-c1b5d66b19d1/Delete</Delete> <Copy>https://api.oxygennext.com/Template/d2290d65-cea4-4b98-8c96-c1b5d66b19d1/CopyTo/{targetGuid}</Copy> <Move>https://api.oxygennext.com/Template/d2290d65-cea4-4b98-8c96-c1b5d66b19d1/MoveTo/{targetGuid}</Move> </TextTemplate>
[edit] Usage examples
cURL (about cURL):
curl -u user:password http://api.oxygennext.com/Template/9b5f92fa-3435-4394-a9c8-ee3683f14334/MoveTo/4a7452ac-6g5a-424a-bf1a-73eb628480ca
Do you have an example to share in the language of your choice? Please share!
