> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cloudraker.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cloudraker.com/_mcp/server.

# Upload organization logo

PUT https://api.cloudraker.com/organization/logo
Content-Type: image/png

Uploads (and replaces) the organization logo. The request body is the raw image bytes (not JSON or multipart); the `content-type` header must be a supported image type and the size must be within the documented limit. Authorization: organization administrators only. Returns 400 on an invalid image, 413 if too large, or 415 on an unsupported content type.

Reference: https://docs.cloudraker.com/workspace/api/organization-settings/update-organization-logo

## Authentication

- `Authorization` header (bearer token, required)

## Request

### Body (image/png)

- Binary request body.

## Response

### 200

The updated logo URL.

- `logoUrl` (string, required, nullable) — URL of the logo's binary content (`/organization-logos/{orgId}/content`), or null when unset.

## Examples

**Response**

```json
{
  "logoUrl": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.cloudraker.com/organization/logo"

headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "image/png"
}

response = requests.put(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.cloudraker.com/organization/logo';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'image/png'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.cloudraker.com/organization/logo"

	req, _ := http.NewRequest("PUT", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "image/png")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.cloudraker.com/organization/logo")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'image/png'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.cloudraker.com/organization/logo")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "image/png")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.cloudraker.com/organization/logo', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'image/png',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.cloudraker.com/organization/logo");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "image/png");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "image/png"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cloudraker.com/organization/logo")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```