Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ingrid 11 posts 32 karma points
    Jan 15, 2013 @ 09:35
    Ingrid
    1

    Webservice API questions (hostname and documenttype)

    Hi,

    I've set up the Umbraco webservices environment on my website. Through the DocumentService I am able to add a new document to the content tree.

    To add a document to the tree, I need to specify the DocumentTypeId. I can get this manually, by checking the nodeid of the document type I want to add through the Umbraco CMS interface, but is there a way to get these programatically, by alias, through the webservice? Or is it only possible with the standard API (DocumentType docType = DocumentType.GetByAlias("Message"))? To get that information I would have to write my own webservice.

    And I would also like to create a microsite using the webservices. Adding a new document to the root of the content tree is working (specify -1 as the ParentId), but is there also an option to add a hostname to this new root through the webservice, or trough the standard API? I couldn't find this option in the documentation or by searching through the API anywhere.

    If you have any suggestions on how to achieve this, thank you in advance.

    Ingrid

Please Sign in or register to post replies

Write your reply to:

Draft