File tree 3 files changed +14
-3
lines changed
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 3
3
- BREAKING: The functions ` Connect$download_bundle() ` and
4
4
` Connect$bundle_delete() ` have been removed. Use ` Content$bundle_download() `
5
5
and ` Content$bundle_delete() ` instead.
6
+ - ` Content$tag_delete() ` removes the tag from the target content item rather
7
+ than removing the tag entirely. (#194 )
6
8
7
9
# connectapi 0.1.3.1
8
10
Original file line number Diff line number Diff line change @@ -538,11 +538,20 @@ Connect <- R6::R6Class(
538
538
self $ POST(
539
539
path = glue :: glue(" v1/content/{content_id}/tags" ),
540
540
body = list (
541
- tag_id = tag_id
541
+ tag_id = as.character( tag_id )
542
542
)
543
543
)
544
544
},
545
545
546
+ # ' @description Remove a tag from a content item.
547
+ # ' @param content_id The content identifier.
548
+ # ' @param tag_id The tag identifier.
549
+ remove_content_tag = function (content_id , tag_id ) {
550
+ invisible (self $ DELETE(
551
+ path = glue :: glue(" v1/content/{content_id}/tags/{tag_id}" )
552
+ ))
553
+ },
554
+
546
555
# users -----------------------------------------------
547
556
548
557
# ' @description Get user details.
Original file line number Diff line number Diff line change @@ -141,9 +141,9 @@ Content <- R6::R6Class(
141
141
},
142
142
# ' @description Remove a tag for this content.
143
143
# ' @param id The tag identifier.
144
- tag_delete = function (id ) {
144
+ tag_delete = function (tag_id ) {
145
145
# note that deleting the parent tag deletes all children
146
- self $ get_connect()$ tag_delete( id )
146
+ self $ get_connect()$ remove_content_tag( self $ get_content() $ guid , tag_id = tag_id )
147
147
},
148
148
# ' @description The tags for this content.
149
149
tags = function () {
You can’t perform that action at this time.
0 commit comments