Skip to main content
PUT
/
api
/
v1
/
publishing
/
subscribers
/
all
Set subscribers
curl --request PUT \
  --url https://platform.plurex.io/api/v1/publishing/subscribers/all \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-SECRET: <api-key>' \
  --data '
[
  {
    "userHandle": "BobBuilder",
    "planIds": [
      "Starter"
    ]
  },
  {
    "userHandle": "AliceTrader",
    "planIds": [
      "Pro"
    ]
  }
]
'
{
  "userHandlesNotFound": [
    "Bob",
    "Alice"
  ]
}

Authorizations

X-API-KEY
string
header
required
X-API-SECRET
string
header
required

Body

application/json
userHandle
string
required

The unique user handle that a user sets when they first create an account. Top of screen at https://plurex.io/#/settings/general

Example:

"BobBuilder"

planIds
string[]
required

The subscription plans that the user has access to.

Example:
["Starter"]
Example:
[
{
"userHandle": "BobBuilder",
"planIds": ["Starter"]
},
{
"userHandle": "AliceTrader",
"planIds": ["Pro"]
}
]

Response

Successfully updated the state of external user subs