code: def post(self, *args, **kwargs):
          
          json_data = request.get_json() or {}
  
          qs = QSManager(request.args, self.schema)
  
          schema = compute_schema(self.schema,
                                  getattr(self, 'post_schema_kwargs', dict()),
                                  qs,
                                  qs.include)
  
          try:
              data, errors = schema.load(json_data)
          except IncorrectTypeError as e:
              errors = e.messages
              for error in errors['errors']:
                  error['status'] = '409'
                  error['title'] = "Incorrect type"
              return errors, 409
          except ValidationError as e:
              errors = e.messages
              for message in errors['errors']:
                  message['status'] = '422'
                  message['title'] = "Validation error"
              return errors, 422
  
          if errors:
              for error in errors['errors']:
                  error['status'] = "422"
                  error['title'] = "Validation error"
              return errors, 422
  
          self.before_post(args, kwargs, data=data)
  
          obj = self.create_object(data, kwargs)
  
          result = schema.dump(obj).data
  
          if result['data'].get('links', {}).get('self'):
              final_result = (result, 201, {'Location': result['data']['links']['self']})
          else:
              final_result = (result, 201)
  
          result = self.after_post(final_result)
  
          return result
docs: Create an object