Playlist editor

Import presets

POST/editor/presets/import/

write Change: creates or edits. Scopes

Adds the presets of an export (presets), after your own; each is checked as a new preset is. Answers the presets made.

Body

  • presetsobject[]required
    • namestringrequired
    • descriptionstring
    • colorstring
    • iconstring
    • stepsobject[]required
      • toolstringrequired
        • optimize - optimize
        • replace - replace
        • dedupe - dedupe
        • affix - affix
        • case - case
        • url - url
        • format - format

        One of: "optimize" "replace" "dedupe" "affix" "case" "url" "format"

      • optionsobjectrequired

        The tool's options, as the tool takes them.

    • kindsstring[]

      Where it is offered: some of live, movie, series; empty: everywhere.

Response

201 OK

  • idintegerrequiredread-only
  • namestringrequired
  • descriptionstring
  • colorstring
  • iconstring
  • stepsany
  • kindsany
  • positioninteger
  • created_atstring (date-time)requiredread-only

Errors

  • 400 Something sent is not valid. Each field that is wrong is named with what is wrong.
  • 401 No credential, or one that is wrong, expired or revoked.
  • 403 The account, or the key's or app's scopes, may not do this.
  • 429 Slow down: wait the seconds in the Retry-After header, then try again.

What each error means