code: def post(self, object_type, object_id):
          
          if object_id == 0:
              return Response(status=404)
  
          tagged_objects = []
          for name in request.get_json(force=True):
              if ':' in name:
                  type_name = name.split(':', 1)[0]
                  type_ = TagTypes[type_name]
              else:
                  type_ = TagTypes.custom
  
              tag = db.session.query(Tag).filter_by(name=name, type=type_).first()
              if not tag:
                  tag = Tag(name=name, type=type_)
  
              tagged_objects.append(
                  TaggedObject(
                      object_id=object_id,
                      object_type=object_type,
                      tag=tag,
                  ),
              )
  
          db.session.add_all(tagged_objects)
          db.session.commit()
  
          return Response(status=201)
docs: Add new tags to an object.