Before you can attach media to a post, you must upload it throughDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/groniz/groniz-cli/llms.txt
Use this file to discover all available pages before exploring further.
groniz upload. The Groniz server validates every media reference at post-creation time — raw local file paths and external URLs are rejected outright. The upload step returns a JSON object with an id and a path; only that path value is accepted in the post’s image array.
Upload a local file
Pass the path to any local file togroniz upload. The command returns a JSON object with the id and path you’ll use in your post.
Upload response fields
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the uploaded asset |
path | string | The CDN URL to reference in your post’s image array |
Using the upload path in a post
After uploading, include theid and path from the response in your post’s image array using the --json flag for a full JSON payload:
Complete upload-to-post workflow
Copy the .path from the response
Note the
path value — this is the URL you’ll reference in your post. Do not use the original local file path.Supported file types
| Category | Formats |
|---|---|
| Images | jpg, png, gif, webp |
| Video | mp4 |
Platform-specific restrictions may apply on top of Groniz’s accepted types. For example, Instagram and TikTok have aspect ratio and duration requirements for video. Check
groniz integrations settings <id> for the channel you’re posting to before uploading.