Orders-orderId-account-products-productId-services-serviceId:DELETE

From Hostway API Documentation
Revision as of 05:42, 11 September 2014 by Emanuela.mitreva (Talk)
Jump to: navigation, search

DELETE /orders/{orderId}/account/products/{productId}/services/{serviceId}

Removes service from a product.

Contents


Request

DELETE /orders/{orderId}/account/products/{productId}/services/{serviceId}

Request Parameters

orderId - string
The unique order Id. The URI of the order is returned by the POST /orders call.
productId - string
Product's unique Id.
serviceId - string
UUID specifying the service to be deleted

URI Parameters

None.

Request Headers

Cookie
A cookie named OwnerId to identify the client (for most browser clients, the browser will do this automatically, depending on the browser configuration). The value of the cookie would come from the response to the create order request in the Set-Cookie response header.

Response

Status Code

Status Code Error Message Description
204 - The operation was successfully completed.
401 Unauthorized This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required. The OwnerId cookie or the Authorization header are not specified or do not permit access to the specified order.
404 Not Found Resource not found The order, product or service is not found.

Error responses

401 Unauthorized

This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.
404 Not Found
{
    "itemNotFound": {
        "guid": "579951da-5f2c-4db7-9169-25658bfaafdb",
        "message": "Resource not found",
        "code": 404,
        "details": ""
    }
}

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox