/subscribers
These methods aloow you to create, delete and get info on subscribers.
List of all subscribers with child subscribers, (like comment)
GET
http://pm415.com/api/subscribers/all/:ownertable/:ownerid
Path Parameters
Name | Type | Description |
---|---|---|
ownerid | string | owner id (id - item or initative or bug) |
ownertable | string | Owner subscribers (item, initiative, bug) |
Headers
Name | Type | Description |
---|---|---|
Authentication | string | Authorization: Bearer 50ca9ba0f7b1444fa55d5 |
Create new subscriber
POST
https://pm415.com/api/subscribers/new/:ownertable/:ownerid
Creates the new suscriber.
Path Parameters
Name | Type | Description |
---|---|---|
:ownerid | number | The ID of the bug or initiative or item |
:ownertable | string | "Bugs" or "Initiatives" or "Items" |
Headers
Name | Type | Description |
---|---|---|
Authentication | string | Authorization: Bearer 50ca9ba0f7b1444fa55d5 |
Request Body
Name | Type | Description |
---|---|---|
object | {"subowner": "comments", "subownerId": "72", "usersId": ["1","2"]} to clear all subscribers function leave the "userid" empty | |
object | {"usersId": ["1","2"]} |
Get list of subscribers
GET
https://pm415.com/api/subscribers/:ownertable/:ownerid
Gets the list of subscribers.
Path Parameters
Name | Type | Description |
---|---|---|
:ownerid | number | The ID of the bug or initiative or item |
:ownertable | string | "Bugs" or "Initiatives" or "Items" |
Headers
Name | Type | Description |
---|---|---|
Authentication | string | Authorization: Bearer 50ca9ba0f7b1444fa55d5 |
Get list of subscribers
GET
https://pm415.com/api/subscribers/:ownertable/:ownerid/:subowner/:subownerid
Gets the list of subscribers on the selected comments.
Path Parameters
Name | Type | Description |
---|---|---|
:subownerid | number | The ID of the comment |
:subowner | string | "Comments" or another tablename |
:ownerid | number | The ID of the bug or initiative or item |
:ownertable | string | "Bugs" or "Initiatives" or "Items" |
Headers
Name | Type | Description |
---|---|---|
Authentication | string | Authorization: Bearer 50ca9ba0f7b1444fa55d5 |
Delete subscriber
POST
https://pm415.com/api/subscribers/delete/:ownertable/:ownerid
Deletes the current subscriber. example full body: {"usersId": ["1"], "subowner": "comments", "subownerId": "72"} example body without subowner: {"usersId": ["1"]}
Path Parameters
Name | Type | Description |
---|---|---|
:ownerid | number | The ID of the bug or initiative or item |
:ownertable | string | "Bugs" or "Initiatives" or "Items" |
Headers
Name | Type | Description |
---|---|---|
Authentication | string | Authorization: Bearer 50ca9ba0f7b1444fa55d5 |
Request Body
Name | Type | Description |
---|---|---|
usersid | array | ["1"] (array of users id, that will deleted) |
subownerId | string | "72" (id of comment - subowner, example) |
subowner | string | "comments" (example of table subowner) |
Last updated