Jupiter ERP
Account API

Create Media File

/api/account/media-files

POSTHTTP
post/api/account/media-files

Beispielanfrage

POST https://api.jupiter-erp.com/api/account/media-files

Code
curl -X POST 'https://api.jupiter-erp.com/api/account/media-files' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'X-Account-Uuid: YOUR_ACCOUNT_UUID' \
  -H 'Accept: application/json'

Antworten

201Created
ModellMediaFile
FeldTypBeschreibung
created_atstring (date-time)Creation timestamp in ISO 8601 format.
descriptionstring
entityobject
FeldTypBeschreibung
idinteger
namestring
entity_idinteger
entity_typestring

string

  • Account
  • Contact
  • PrintLayout
  • PrintBackground
  • ServiceProtocol
  • ServiceObject
  • ServiceOrder
file_bytesnumber
file_extstringFile extension (e.g., 'jpg', 'png', 'pdf'). Note: PDFs are converted to 'jpg' upon upload.
file_typestringMIME type (e.g., 'image/jpeg', 'image/png', 'application/pdf'). Note: PDFs are converted to 'image/jpeg' upon upload.
id*integer
is_publicboolean
keystring
updated_atstring (date-time)Last update timestamp in ISO 8601 format.
url*string
userobject
FeldTypBeschreibung
image_urlstring
namestring
user_idinteger
Beispiel Response
{
  "id": 0,
  "user_id": 0,
  "entity_type": "Account",
  "entity_id": 0,
  "key": "string",
  "is_public": true,
  "url": "string"
}
MediaFiles

Fragen zur Integration?

POST /api/account/media-files · Jupiter ERP