Create a media item
Changed onCreate a media item. Provide either album_id or category_id, and either embed_url or file.
Request
- Base URLhttps://example.com/api
- Auth
- OAuth 2Authorization codehttps://example.com/oauth2/authorizeToken URLhttps://example.com/api/oauth2/tokenScopesmedia:write
- or API key in header XF-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body multipart/form-data
Response
OK
Changes
- breaking
removed the media type
application/jsonfrom the request body - breaking
removed the media type
application/x-www-form-urlencodedfrom the request body - breaking
the
response's property type changed fromstringtobooleanfor status - info
api operation id
post_media_removed and replaced withpostMedia - info
the endpoint scheme security
XF-Api-Keywas added to the API - info
the endpoint scheme security
XF-OAuth2was added to the API - info
added the new optional
headerrequest parameterXF-Api-Userto all path's operations - info
added the new optional
queryrequest parameterapi_bypass_permissionsto all path's operations - info
added the media type
multipart/form-datato the request body
- breaking
- info
api tag
Mediaadded - info
api tag
mediaremoved - info
added optional request body
- info
added the media type
application/jsonfor the response with the status
- info