Was this page helpful?

PUT:site/services/{id}

    Overview

    internal. Update a service

    Uri Parameters
    NameTypeDescription
    idintidentifies a service by ID
    Query Parameters
    NameTypeDescription
    authenticatebool?Force authentication for request (default: false)
    Return Codes
    NameValueDescription
    BadRequest400Invalid input parameter or request body
    Forbidden403MindTouch API key or Administrator access is required.
    NotFound404Requested service could not be found
    Ok200The request completed successfully

    Message Format

    Input: 

    <service>
        <sid>{text}</sid>
        <uri>{uri}</uri>
        <type>{auth/ext}</type>
        <description>{text}</description>
        <status>{enabled/disabled}</status>
        <init>{native/remote}</init>
        <config>
            <value @key={text}>{text}</value>
            <value @key={test}>{text}</value>
        </config>
        <preferences>
            <value @key={text}>{text}</value>
            <value @key={test}>{text}</value>
        </preferences>
    </service>

     

    Output:

    <service id="{int}" href="{uri}">
        <sid>{sid}</sid> 
        <uri>{uri}</uri> 
        <type>{auth|ext}</type> 
        <description>{text}</description> 
        <date.modified>{date}</date.modified> 
        <status>{enabled|disabled}</status> 
        <init>{local/remote}</init>
        <lasterror>{text}</lasterror> 
        <config>
            <value key="{text}">{text}</value>
            ...
        </config> 
        <preferences>
            <value key="{text}">{text}</value>
            ...
        </preferences> 
    </service>

    Implementation Notes

    This feature allows modification of an existing service. Refer to POST: site/services for details about the input format.

    Code Samples

    C# Samples

     

    Curl Samples

     

    PHP Samples

     

    Other Code Samples

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by