public IHttpActionResult PutUpdateEndpointTags(Guid id, [FromBody]string[] tags)
{
try
{
RequestContext.Authorize(id, SecurityRole.Admin);
tags.CheckForUnallowedSymbols();
if (_endpointRegistry.TryUpdateEndpointTags(id, tags))
return Ok();
return NotFound();
}
catch (ArgumentException e)
{
return BadRequest(e.Message);
}
}
}