Reference · Communities
POST/communities/{communityId}/picture
Make a Library picture a draft community’s cover or logo
Make a picture from their Library the cover or the logo of one of their draft communities, as its Settings tab does: one they made (GET /api/v1/library, the made tab, kind image) or a picture of their own in Uploads (the uploads tab, kind image, or one just sent with POST /api/v1/files). Pass its origin and id. A community already live is changed on its page. Free: nothing runs and nothing is charged.
- Key needs
create· Make things and spend credits- Spends
- Nothing
- Answers
- Data
Request
curl -X POST https://vessero.com/api/v1/communities/communityId/picture \ -H "Authorization: Bearer $VESSERO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "which": "cover", "picture": { "origin": "media", "id": "text" } }'
Path
- communityIdstringrequired—
Body
- whichstringrequiredcover: the wide picture over its page. logo: the small square one.
coverlogo - pictureobjectrequiredA picture made here, or one of theirs in Uploads, from GET /api/v1/library.
- originstringrequiredIts origin, from GET /api/v1/library: upload for a file in Uploads.
mediaclipcardstoryupload - idstringrequiredIts id, from GET /api/v1/library.
- originstringrequiredIts origin, from GET /api/v1/library: upload for a file in Uploads.
Answers
- 200okWhat it did, as data.
- 400invalid_requestA field is missing or not accepted: see details.
- 404not_foundNot found on this account.
- 403feature_unavailableThe studio this needs is switched off for the account right now.