# Upload organization logo to a signed URL

> Source: https://elaichi.ai/docs/api-reference/organizations/organization/putorganizationlogoviauploadurl/

`PUT /organization/{id}/logo/upload/{token}`

Resource: **Organization** · API: **Organizations**

## Path parameters

- **`id`** _(string, required)_
  Organization id (`org_…`) the URL was minted for.
- **`token`** _(string, required)_
  Single-use upload token (64 hex characters), exactly as the URL carries it.

## Response body

- **`organization_id`** _(string)_
- **`logo`** _(string)_
  Public URL of the new logo image.
- **`content_type`** _(string)_
  Allowed: `image/png`, `image/jpeg`, `image/webp`
- **`bytes`** _(integer)_

## Code examples

### curl

```bash
curl -X PUT 'https://api.elaichi.ai/organization/<id>/logo/upload/<token>' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.elaichi.ai/organization/<id>/logo/upload/<token>', {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import os
import requests

url = "https://api.elaichi.ai/organization/<id>/logo/upload/<token>"
headers = {
    "Content-Type": "application/json",
}

response = requests.put(url, headers=headers)
print(response.json())
```
