Was this page helpful?

POST:site/services/{id}

    Overview

    internal. Restart a service (backwards compatibility)

    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

    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 exists for backwards compatibility only. Posting an empty body will attempt to restart the given service.

    Refer to the feature POST:site/services for details about the output content.

    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