Skip to content

Add users to a list in one request #6

Description

@fernandopg

Hi @gellu !

I was thinking about to create an api request to add o bunch of users to a list in one request. For example in some cases I need to add like 15k users to a new list and execute 15k request is crazy...

The api request to add one user now is:

POST /subscribers/user/add

I was thinking to add that request:

POST /subscribers/users/add (Content-Type: application/json)
PARAMS:
   list: list id
   users: a json object ej: [{email: xxx, name: yyy}]

Or maybe this other:

POST /lists/subscribers/add (Content-Type: application/json)
PARAMS:
   list: list id
   users: a json object ej: [{email: xxx, name: yyy}]

Examples:

POST /subscribers/users/add (Content-Type: application/json)
{list:2, users: [...]}

POST /lists/subscribers/add (Content-Type: application/json)
{list:2, users: [...]}

Or maybe is better to keep the Content-Type as it is in the other api requests:

POST /subscribers/users/add (Content-Type: application/x-www-form-encoded)
list=2&users=[...]

What do you think? Tell me if you would like to have that in your API and how do you think is better!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions