addTagTo.Rd
This function allows you to attach a tag to a Labstep entity (Protocol, Resource or Experiment).
addTagTo(user, entity, tag)
user | A labstep user object. Must contain an `api_key` field. Returned from `login` command |
---|---|
entity | The Labstep entity to tag. Can be a Resource, Experiment or Protocol. |
tag | A tag entity. Must have an 'id' field. |
Returns the tagged entity.
user <- login("demo@labstep.com","demopassword") tags <- getTags(user,count=1) tag = tags[[1]] experiments <- getExperiments(user,count=1) experiment = experiments[[1]] experiment = addTagTo(user,experiment,tag)#> Error in addTagTo(user, experiment, tag): Entities of this type cannot be tagged