vserver_image_edit ()
This function sets or changes image description.
HTTP Method: | GET | |
---|
Parameters: | sid | session id |
---|
| image_id | unique id of image |
| desc | new image description |
Returns: | HTTP code | 200 (OK) |
---|
Return errors
Error code | HTTP response code | Description |
---|
1 | 400 (Bad request) |
Function was not performed, because all required parameters were not entered. Reply portion reply is empty.
|
3 | 403 (Forbidden) |
Function call failed, invalid sid parameter. Create new sid using /api/login function. Reply portion reply is empty.
|
5 | 403 (Forbidden) |
Function has not been performed, because it is probably an attempt to manipulate VPS that is not in your administration. Reply portion reply is empty.
|
CURL
curl "https://admin.hosting90.eu/api/vserver_image_edit?sid=%sid%&image_id=%image_id%&desc=%desc%"
PHP Library
$api->vserver_image_edit(array(
'image_id' => %image_id%,
'desc' => %desc%,
));
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<status>
<code>0</code>
<text>Image edit successful</text>
</status>
</reply>