Upload Media
Upload a media file. The file is stored and shared with the current user.
Authentication: Required — Bearer token.
Request body (multipart form-data):
file(required) — The file to uploadis_avatar_image(optional, default “false”) — Set to “true” when uploading a profile avatar image
Response (201): The created media object with URL, filename, type, and size.
Side effects: Automatically shares the uploaded file with the current user.
Errors:
422— Validation errors (e.g. file too large, unsupported type)
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Response
Created