/// <summary> /// Adds one or more tags to one or more objects by the tag name. This endpoint will create the tag if it doesn't exist. /// </summary> /// <param name="tagNames">A list of the names of the tag(s) which should be added to objects.</param> /// <param name="searchOptions">The search options.</param> public async Task AddTagNamesAsync(IEnumerable <string> tagNames, ApiSearchOptions searchOptions = null) => await _ontraObjects.AddTagNamesAsync((ApiObjectType)_objectTypeId, tagNames, searchOptions);
/// <summary> /// Adds a tag to an object by the tag name. This endpoint will create the tag if it doesn't exist. /// </summary> /// <param name="id">The id of the object to affect.</param> /// <param name="tagName">The name of the tag which should be added to the object.</param> public async Task AddTagNamesAsync(int id, string tagName) => await _ontraObjects.AddTagNamesAsync((ApiObjectType)_objectTypeId, new ApiSearchOptions(id), new[] { tagName }).ConfigureAwait(false);