Skip to main content

Upload Elemental File

Upload files, images, cover images, or avatar image associated with a specific elemental

POST/v1/user/elemental/{id}/files

Properties

NameTypeRequiredDescription
idstringID of the elemental

Example

/v1/user/elemental/your-elemental-id/files

CURL Example

curl -X POST "https://api-integrations.snackprompt.com/v1/user/elemental/{id}/files" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"cover_images":[{"file_name":"cover_image.jpg","file_buffer":{"data":[1,2,3,4,5,6],"type":"image/jpeg"}}]}'