Create a customer
POST
/editor/api/v1/playlists/{pid}/users/Called with a playlist editor API token. How
Hands the playlist to someone with their own login and links. Every field may be left out: they get a random login, every category, and the provider's end date and connections (else a year and one connection). providers gives them their own provider lines: [{"provider": id, "username", "password", "dns"}]. Refused past the account's customer limit.
Path parameters
pidstring (uuid)required
Headers
X-Token-PasswordstringThe token's own password, when it was made with one.
Body
namestringusernamestringpasswordstringenabledbooleanexpirystring (date-time)can be nullsync_expirybooleanmax_connectionsintegermessagestringnotesstringlanguagestringall_livebooleanlive_categoriesinteger[]all_moviebooleanmovie_categoriesinteger[]all_seriesbooleanseries_categoriesinteger[]providersanycopy_loginboolean
Response
201 OK
idintegerrequirednamestringrequiredusernamestringrequiredpasswordstringrequiredenabledbooleanrequiredexpirystring (date-time)requiredcan be nullNull: never.
sync_expirybooleanrequiredThe end date is read from the provider when it nears.
max_connectionsintegerrequired-1: no limit.
messagestringrequirednotesstringrequiredlanguagestringrequiredall_livebooleanrequiredEvery channel category, new ones too.
live_categoriesinteger[]requiredall_moviebooleanrequiredmovie_categoriesinteger[]requiredall_seriesbooleanrequiredseries_categoriesinteger[]requiredprovidersobject[]requiredTheir own provider lines.
providerintegerrequiredOne of the playlist's providers.
usernamestringrequiredpasswordstringrequireddnsstringrequiredAnother address for this provider ('' for its own).
copy_loginbooleanrequiredTheir provider lines use their own username and password.
onlinebooleanrequiredlast_seen_atstring (date-time)requiredcan be nullconnectionsintegerrequiredConnections now.
synced_atstring (date-time)requiredcan be nullcreated_atstring (date-time)required
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.
- 404 Nothing with this id, or nothing the account can see.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.