Subscriptions

Tag subscriptions allow to subscribe users to a tag. If a new question with this tag is published, the users which are subscribed will receive a notification.

It is also possible to subscribe a user to a list of tags.


Get subscribers

GET /tags/:ID/subscribers

Response

A list of all subscribed users:

[
        {
            "location": "London",
            "image": "http://cdn.starmind.com:8080/static/user/default.jpg",
            "unique_id": "00.52",
            "firstname": "Siger",
            "email": "siger.holmes@example.com",
            "is_deleted": false,
            "country": "uk",
            "lastname": "Holmes",
            "id": 17309,
            "language": "en",
            "about": "Father of Sherlock. Inactive",
            "gender": "m",
            "first_seen": "2015-02-02T11:31:05.000Z",
            "last_seen": "2015-08-09T11:31:05.000Z",
            "customfields": { "occupation": "Detective" },
            "score_level": null,
            "score_points": null
        }
]


Subscribe users

PUT /tags/:ID/subscribers

INFO:Replaces all existing subscribers!

Json Payload

A list of user IDs:

[
  17309,
  17310 
]

Non-existing user IDs and those of deleted users will be silently ignored.

Response

An updated list of subscribed users:

[
    {
        "location": "London",
        "image": "http://cdn.starmind.com:8080/static/user/default.jpg",
        "unique_id": "00.52",
        "firstname": "Siger",
        "email": "siger.holmes@example.com",
        "is_deleted": false,
        "is_hidden": false,
        "is_system": false,
        "country": "uk",
        "lastname": "Holmes",
        "id": 17309,
        "language": "en",
        "about": "Father of Sherlock. Inactive",
        "gender": "m",
        "first_seen": "2015-02-02T11:31:05.000Z",
        "last_seen": "2015-08-09T11:31:05.000Z",
        "customfields": { "occupation": "Detective" },
        "score_level": null,
        "score_points": null
    },
    {
        "location": "London",
        "image": "http://cdn.starmind.com:8080/static/user/default.jpg",
        "unique_id": "00.53",
        "firstname": "Sherlock",
        "email": "sherlock.holmes@example.com",
        "is_deleted": false,
        "is_hidden": false,
        "is_system": false,
        "country": "uk",
        "lastname": "Holmes",
        "id": 17310,
        "language": "en",
        "about": "Detective",
        "gender": "m",
        "first_seen": "2015-02-02T11:31:05.000Z",
        "last_seen": "2015-08-09T11:31:05.000Z",
        "customfields": { "occupation": "Detective" },
        "score_level": null,
        "score_points": null
    }
]