---
title: "Create a new photo gallery in the batch"
method: POST
path: "/batch/{batch_id}/photo-gallery"
tags: ["photo"]
---

# Create a new photo gallery in the batch

`POST /batch/{batch_id}/photo-gallery`

## Request

- Base URL: `https://submitapi.dvidshub.net`
- URL: `https://submitapi.dvidshub.net/batch/{batch_id}/photo-gallery`
- Auth: OAuth 2
  - Authorization code: `https://api.dvidshub.net/auth/authorize`
  - Token URL: `https://api.dvidshub.net/auth/access_token` scopes: `basic`, `email`, `upload`
- TypeScript: <https://skmtc.dev/dvidshub/apis/dvids-content-submission-api/docs/batch/:batch_id/photo-gallery/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `data` object, required: A photo gallery is a collection of related photographs to be viewed together.
    - `id` string, required
    - `type` 'photo-gallery', required

## Response `201`

The created PhotoGallery object

- object
  - `data` object, required: A photo gallery is a collection of related photographs to be viewed together.
    - `id` string, required
    - `type` 'photo-gallery', required

## Other responses

- `400`: The request payload is not correctly formed.

---

[API](https://skmtc.dev/dvidshub/apis/dvids-content-submission-api.md) - [All operations](https://skmtc.dev/dvidshub/apis/dvids-content-submission-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dvidshub/apis/dvids-content-submission-api/revisions/921b385ab6b9?raw)
