Skip to main content
Skip table of contents

Logo update

Logo update

Logo update

POST /api/admin/v1/logos/{logo}

Method parameters

int logo, unique identifier of the logo


binary image, logo image

200 OK

Returns the logo object

JSON
{
    "id": 1,
    "type": "login",
    "title": "Authorization page",
    "description": "Product logo on the web client and administrator login page",
    "url": "http://127.0.0.1:8080/storage/logos/ru/login.png",
    "validation": "The image must be no larger than 2MB and be one of the following types: JPEG, BMP, PNG, SVG",
    "version": 1
}

401 Unauthorized

Authorization token is not provided or is invalid

422 Unprocessable Entity

Returns a JSON object with an error. Validation

JSON
{
    "message": "There will be no informative message here",
    "errors": {
        "any_key": [
            "The reason for the error will be described here"
        ]
    }
}
cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/logos/{logo}' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "logo": 0,
    "image": "binary"
}'
PHP
PHP
$data = array (
  'logo' => 0,
  'image' => 'binary',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'POST',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/logos/{logo}', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.