Dummy-API-PUT-resource1

From Hostway API Documentation
Revision as of 16:36, 20 December 2013 by Donghyun.kim (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

description here

Contents

PUT /dummy/resource1

This operation will create a resource 1

Request

URI Parameters

param1 - string
parameter 1

Request Headers

Content-Type
application/json; Charset=UTF-8
Authorization
base64 encoded credential (http basic)

Request Body

{
    "attr1": "val1",
    ...
}

Parameters

attr1 - string
attr1 description

Response

Response Codes

HTTP/1.1 201 Created
HTTP/1.1 401 Unauthorized
error description

Response Headers

Header1
Header1 description

Response Body

{
    "attr1": "val1",
    ...
}

Parameters

attr1
attr1 description

Examples

example1 description

Request

PUT /dummy/resource1
Content-Type: application/json; Charset=UTF-8
Authorization: Base64-encoded username & password string

{
    "attr1": "val1",
}

Response

201 Created
Content-Type: application/json; charset=UTF-8
Location : </nowiki>{{APIBaseURL}}<nowiki>/account/{accountId}/loadbalancer/{lbId}

{
    "attr1": "val1",
}
Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox