Skip to content

Add a photo​

POST
/events/{id}/photos

Uploaded with POST /storage/upload. Hosts add it shown (optionally as the cover); a confirmed volunteer in a role that may upload photos may add one too, and it waits as to_review. At most 200.

Authorizations​

BearerAuth

In the browser, authentication rides on the httpOnly session cookies set by /cognito/signin or the Google / Apple sign-in at /cognito/oauth/{provider}. For scripts and for Swagger UI testing, paste an API key (fh_live_…, created with POST /api-keys); a Cognito JWT is accepted too. Sign-in does not return a token in its body.

Type
HTTP (bearer)

Parameters​

Path Parameters

id*

The event's id.

Type
string
Required
Format
"uuid"

Request Body​

application/json
JSON
{
"url": "string",
"is_cover": true,
"focal_x": 0,
"focal_y": 0
}

Responses​

The photo.

application/json
JSON
"string"

Playground​

Server
Authorization
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI

Built with VitePress