def post(self, build_id):

        args = self.post_parser.parse_args()

        if args.tags and (not all(len(tag) <= 16 for tag in args.tags)):
            return error('Tags must be 16 characters or less.')

        build = Build.query.get(build_id)

        # if the build is not in findable in db after we just fetched
        # it to put on the page, there's something wrong.
        if build is None:
            return self.respond({}, status_code=404)

        build.tags = args.tags

        db.session.add(build)
        db.session.commit()

        return self.respond({})
Set tags associated with a build.
dataset/ETHPy150Open dropbox/changes/changes/api/build_tag.py/BuildTagAPIView.post