Skip to content

Commit ab1cbd3

Browse files
committed
Add removeStar method to Backlog class for star deletion
1 parent 401445f commit ab1cbd3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/backlog.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,14 @@ export default class Backlog extends Request {
874874
return this.post('stars', params);
875875
}
876876

877+
/**
878+
* https://developer.nulab.com/docs/backlog/api/2/remove-star/
879+
*/
880+
public removeStar(starId: number): Promise<void> {
881+
const endpoint = `stars/${starId}`;
882+
return this.delete(endpoint);
883+
}
884+
877885
/**
878886
* https://developer.nulab.com/docs/backlog/api/2/get-notification/
879887
*/

0 commit comments

Comments
 (0)