Beispielanfrage
PATCH https://api.jupiter-erp.com/api/account/media-files/example-id
Code
curl -X PATCH 'https://api.jupiter-erp.com/api/account/media-files/example-id' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'X-Account-Uuid: YOUR_ACCOUNT_UUID' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"description": "string"
}'Parameter
| Name | In | Pflicht | Beschreibung |
|---|---|---|---|
| id | path | ja | — |
Request Body
Optional
ModellUpdateMediaFileRequest
| Feld | Typ | Beschreibung |
|---|---|---|
| description | string | — |
Beispiel Request
{
"description": "string"
}Antworten
200Ok
ModellMediaFile
| Feld | Typ | Beschreibung | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| created_at | string (date-time) | Creation timestamp in ISO 8601 format. | |||||||||
| description | string | — | |||||||||
| entity | object |
| |||||||||
| entity_id | integer | — | |||||||||
| entity_type | string | string
| |||||||||
| file_bytes | number | — | |||||||||
| file_ext | string | File extension (e.g., 'jpg', 'png', 'pdf'). Note: PDFs are converted to 'jpg' upon upload. | |||||||||
| file_type | string | MIME type (e.g., 'image/jpeg', 'image/png', 'application/pdf'). Note: PDFs are converted to 'image/jpeg' upon upload. | |||||||||
| id* | integer | — | |||||||||
| is_public | boolean | — | |||||||||
| key | string | — | |||||||||
| updated_at | string (date-time) | Last update timestamp in ISO 8601 format. | |||||||||
| url* | string | — | |||||||||
| user | object |
| |||||||||
| user_id | integer | — |
Beispiel Response
{
"id": 0,
"user_id": 0,
"entity_type": "Account",
"entity_id": 0,
"key": "string",
"is_public": true,
"url": "string"
}MediaFiles