Import a Proxy Template for a Website

Imports a proxy template for a website.

URL

/api/v1/website/[website_id]

HTTP Method

PUT

URL Parameters

Parameter

Required

Type

Description

website_id

true

integer

Specifies the website ID to import a proxy template for.

PUT Parameters

Parameter

Required

Type

Description

Acceptable Values

website_template

true

string containing filename

The filename of the template 

 

Response Parameters

Returns a string indicating success/error.

Example: Import a backup proxy template into website 1

Request

PUT

/api/v1/website/1

cURL

curl -kv
-u api_ninja:ninja_password
-X PUT
-H 'Content-Type: text/json'
--data-binary @importProxyTemplate.json
https://172.31.1.172:4849/api/v1/website/1

PUT Parameters

{
"website_template": "wsm-backup_wsm1.exampleuser_26102016-1446.pfb"
}

Response

{"result":"success"}