Create an app widget
POST/api/v1/pms/app-widgets
Required by type: HERO and BANNER need mediaUrl; INFO needs body; EXPLORE needs title and mediaUrl. mediaType (IMAGE, GIF, VIDEO) is worked out from the URL when left out, and only a HERO may be a video. AI_SEARCH_POPUP and SEARCH_SECTION need title; AI_SEARCH_PROMPT needs body and mediaUrl (and parentId of an AI_SEARCH_POPUP to be one of its examples); SEARCH_SUGGESTION needs parentId (a SEARCH_SECTION), title, mediaUrl, targetType (PROPERTY or DESTINATION) and targetId. endsAt must be after startsAt. rank defaults to 0, active to true.
Request
Responses
- 200
- 400
Widget created.
Unknown type or media type, or a required field missing.