# social.colibri.beta.polyfill.uploadBlob

> Stores a blob for the requesting user while the AppView hosts their space repos. A blob nothing references within a day is deleted.

- Kind: procedure
- Authority: polyfill.beta.colibri.social
- Lexicon: 1
- Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.polyfill.uploadBlob)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.polyfill.uploadBlob/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.polyfill.uploadBlob/analytics)

## Procedure (`social.colibri.beta.polyfill.uploadBlob`)

Type: procedure · POST

### Input (*/*)


### Output (application/json)

- `blob` (blob, required): A reference to the stored blob, for use in a record.

### Errors

- `AuthRequired`: The request has no valid service auth.
- `InvalidRequest`: The arguments are inconsistent or malformed beyond schema validation.
- `RepoNotHosted`: The AppView does not host the caller's repos. Upload to the PDS instead.
- `BlobTooLarge`: The blob exceeds the size limit.
- `BlobStorageUnavailable`: The AppView has no blob storage configured, so it cannot hold attachments right now.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Stores a blob for the requesting user while the AppView hosts their space repos. A blob nothing references within a day is deleted.",
      "errors": [
        {
          "description": "The request has no valid service auth.",
          "name": "AuthRequired"
        },
        {
          "description": "The arguments are inconsistent or malformed beyond schema validation.",
          "name": "InvalidRequest"
        },
        {
          "description": "The AppView does not host the caller's repos. Upload to the PDS instead.",
          "name": "RepoNotHosted"
        },
        {
          "description": "The blob exceeds the size limit.",
          "name": "BlobTooLarge"
        },
        {
          "description": "The AppView has no blob storage configured, so it cannot hold attachments right now.",
          "name": "BlobStorageUnavailable"
        }
      ],
      "input": {
        "description": "The raw bytes. The content type is sniffed rather than trusted.",
        "encoding": "*/*"
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "blob": {
              "description": "A reference to the stored blob, for use in a record.",
              "type": "blob"
            }
          },
          "required": [
            "blob"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.colibri.beta.polyfill.uploadBlob",
  "lexicon": 1
}
```
