Create new items of one kind.
When to use:
- Adding anything new, uploading files (attached_files for files the person attached in the chat, media_files for bytes you hold, media_from_urls for public links), pairing a device by its code or inviting a person.
When NOT to use:
- Changing an existing item: use update_items.
- Showing it on screens: create it, then use set_screen_content or start_takeover.
What to know:
- playlists, schedules, locations and creatives are all-or-nothing: one bad row rejects the call and names it (a location whose externalId exists is skipped, so imports re-run safely). Other kinds are created one by one; each reports ok or its error and the rest continue.
- Returns each new item's id and name, to pass to the other tools, and each item that was not created with the reason.
- New content at a location under review starts as a draft. Needs the kind's create permission there.
- Tools never take sign-in values: a data_sources or apps item holding one, or a feed that cannot work without one, is refused and nothing is created. A person connects those in the console; the feed is then used by its id.
- Now Serving and Goal Tracker apps: leave out the control code (the server makes it). The result has staffLinks: controlUrl (the staff page that calls numbers), staffCardUrl (a card to print) and, when customers take numbers on their phones, takeNumberUrl. Give them to the staff only: anyone with controlUrl can change the number. The prompt set_up_now_serving walks the whole setup.
- Repeat for each row (one slide per row of a sheet): the rules are in the repeat field's description. A workspace without the feature refuses it with 403 feature_disabled.
Parameters:
- Pass exactly one array; its name is the kind and two arrays is an error.
- Ids inside items (refId, contentId, nodeId, screenId, appKey, connector) must already exist; get them from list_items.
- Example: {playlists:[{name:"Lobby loop", items:[{refKind:"media", refId:"med_logo", durationSec:10}]}]}.