---
title: "Create Photo"
method: POST
path: "/{resource_name}/{resource_id}/photos"
tags: ["Photos"]
---

# Create Photo

`POST /{resource_name}/{resource_id}/photos`

Add a photo to a resource.

### Parameters

**photo_file** `REQUIRED`

A Base64 encoded string representing a photo file. The following file types are supported:

*   gif
*   jpeg
*   png
*   mov
*   mp4
*   m4v
*   avi
    

And the max file size and number of photos attached to a related resource is limited by your plan type.

* * *

**longitude** `OPTIONAL`

Longitude of the photo location

* * *

**latitude** `OPTIONAL`

Latitude of the photo location

## Path parameters

- `resource_name` string, required
- `resource_id` string, required

## Headers

- `Content-Type` string

## Request body

- object

## Response `200`

Successful response

---

[API](https://skmtc.net/farmbrite/apis/farmbrite-api-developers-documentation.md) · [All operations](https://skmtc.net/farmbrite/apis/farmbrite-api-developers-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/farmbrite/farmbrite-api-developers-documentation/versions/b33a389fa2c0/schema)
