# place.birds.speciesPhoto

> Published by [birds.place](https://lexicon.garden/identity/did:plc:w4p4bumx22vgnjmctoqjj7sy)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:w4p4bumx22vgnjmctoqjj7sy/place.birds.speciesPhoto)
- [Documentation](https://lexicon.garden/lexicon/did:plc:w4p4bumx22vgnjmctoqjj7sy/place.birds.speciesPhoto/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:w4p4bumx22vgnjmctoqjj7sy/place.birds.speciesPhoto/examples)

## Definitions

### `place.birds.speciesPhoto`

**Type**: `record`

The picture the observer wants to represent a species in their own collection. One per species; the record key is the taxon code (e.g. `easpho`), so the choice is addressable without a lookup. Purely a display preference — it asserts nothing about the bird.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `image` | `blob` | Yes | The chosen picture. Usually a still the observer clipped from their own video, or one of their photos. |
| `source` | `ref` → `com.atproto.repo.strongRef` | No | The `place.birds.sighting` this picture was taken from, pinned to the exact revision it was taken from. Absent when the picture did not come from a sighting. |
| `createdAt` | `string` (datetime) | Yes | Client-declared timestamp for when this choice was made. |
| `speciesCode` | `string` | No | The taxon code this picture represents. Duplicates the record key so a consumer reading the value alone still knows what it is. |
| `sourceMediaIndex` | `integer` | No | Which attachment of `source` the picture came from, as a zero-based index into that record's `media` array. |

## Raw Schema

```json
{
  "id": "place.birds.speciesPhoto",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "image",
          "createdAt"
        ],
        "properties": {
          "image": {
            "type": "blob",
            "accept": [
              "image/jpeg",
              "image/png",
              "image/webp"
            ],
            "maxSize": 2000000,
            "description": "The chosen picture. Usually a still the observer clipped from their own video, or one of their photos."
          },
          "source": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "The `place.birds.sighting` this picture was taken from, pinned to the exact revision it was taken from. Absent when the picture did not come from a sighting."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Client-declared timestamp for when this choice was made."
          },
          "speciesCode": {
            "type": "string",
            "maxLength": 32,
            "description": "The taxon code this picture represents. Duplicates the record key so a consumer reading the value alone still knows what it is."
          },
          "sourceMediaIndex": {
            "type": "integer",
            "maximum": 3,
            "minimum": 0,
            "description": "Which attachment of `source` the picture came from, as a zero-based index into that record's `media` array."
          }
        }
      },
      "description": "The picture the observer wants to represent a species in their own collection. One per species; the record key is the taxon code (e.g. `easpho`), so the choice is addressable without a lookup. Purely a display preference — it asserts nothing about the bird."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
