Images

Images used in forms.

MethodPathSummary
POST/v1/app/forms/imagesUpload a theme background/banner image (multipart, field "image")
GET/v1/app/forms/images/:idPublic, no auth (theme images embedded via <img>/CSS background-image)

#Upload a theme background/banner image (multipart, field "image")

POST/v1/app/forms/images
Address
https://<your-org>.brambleit.cloud/api/v1/app/forms/images
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Licence: Forms.

Request body

multipart/form-data with the file.

Response 201

FieldTypeDescription
idinteger
urlstring
Example response
JSON
{
  "id": 42,
  "url": "https://example.com/…"
}

Errors

StatusMessage
400No image file provided

Example request

Bash
curl -X POST 'https://<your-org>.brambleit.cloud/api/v1/app/forms/images' \
  -H "X-API-Key: $BRAMBLE_KEY"

#Public, no auth (theme images embedded via <img>/CSS background-image)

GET/v1/app/forms/images/:id
Address
https://<your-org>.brambleit.cloud/api/v1/app/forms/images/:id
Requires
None: public, or protected by a token in the address or body.

Path parameters

NameTypeDescription
idrequiredinteger

Response

A body.

Example request

Bash
curl -X GET 'https://<your-org>.brambleit.cloud/api/v1/app/forms/images/42' \
  -H "X-API-Key: $BRAMBLE_KEY"