Media categories
Create a media category
Changed onCreate a media category.
post/media-categories/
Request
- Base URLhttps://example.com/api
- Auth
- OAuth 2Authorization codehttps://example.com/oauth2/authorizeToken URLhttps://example.com/api/oauth2/tokenScopesmedia_category:write
- or API key in header XF-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body application/x-www-form-urlencoded
Response
OK
Changes
- breaking
removed the media type
application/jsonfrom the request body - breaking
the
response's property type changed fromstringtobooleanfor status - info
api operation id
post_media_categories_removed and replaced withpostMediaCategories - 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
- breaking
- info
api tag
Media categoriesadded - info
api tag
media-categoriesremoved - info
added optional request body
- info
added the media type
application/jsonfor the response with the status
- info