create_tags: Add tags to an account

Description Usage Arguments Value Examples

View source: R/account_add_tags.R

Description

This will add a new tag to an account. This tag will be added in the tag namespace. If a tag with the same name already exists, this will do nothing. If a tag with the same name exists, and is deleted, it will create a new tag with a new ID.

Usage

1
create_tags(x, name, description)

Arguments

x

An account to add the tag to.

name

A vector of tag names.

description

An optional description for each tag. If given, must be the same length as name.

Value

A tibble containing the new tag's details, including the tag's ID.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 

# Create one tag
account("TEST01AA") %>%
  create_tags("tag1")

# Create a tag with a description
account("TEST01AA") %>%
  create_tags("tag1", "A description")

# Create multiple tags
account("TEST01AA") %>%
  create_tags(c("tag1", "tag2"))

# Create multiple tags, with descriptions
account("TEST01AA") %>%
  create_tags(c("tag1", "tag2"),
              c("description 1", "description2"))


## End(Not run)

brandseye/brandseyer2 documentation built on Sept. 5, 2021, 2:15 p.m.