portainer/portainer · error
invalid tag name
Error message
invalid tag name
What it means
Error "invalid tag name" thrown in portainer/portainer.
Source
Thrown at api/http/handler/tags/tag_create.go:20
import (
"errors"
"net/http"
portainer "github.com/portainer/portainer/api"
"github.com/portainer/portainer/api/dataservices"
httperror "github.com/portainer/portainer/pkg/libhttp/error"
"github.com/portainer/portainer/pkg/libhttp/request"
"github.com/portainer/portainer/pkg/libhttp/response"
)
type tagCreatePayload struct {
Name string `validate:"required" example:"org/acme"`
}
func (payload *tagCreatePayload) Validate(r *http.Request) error {
if len(payload.Name) == 0 {
return errors.New("invalid tag name")
}
return nil
}
// @id TagCreate
// @summary Create a new tag
// @description Create a new tag.
// @description **Access policy**: administrator
// @tags tags
// @security ApiKeyAuth
// @security jwt
// @accept json
// @produce json
// @param body body tagCreatePayload true "Tag details"
// @success 200 {object} portainer.Tag "Success"
// @failure 409 "This name is already associated to a tag"
// @failure 500 "Server error"View on GitHub (pinned to 17e74456ff)
When it happens
Trigger: Thrown at api/http/handler/tags/tag_create.go:20 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of portainer/portainer@17e74456ff (2026-08-26).
Data as JSON: /api/errors/df4a5acae3b1d715.
Report an issue: GitHub.