(self)
return status
Commit changes to the timeline.
Commit changes to the timeline.
Commit changes to the timeline .
def _commit(self):
        """Commit changes to the timeline."""
        resource_url = '{0:s}/{1:s}'.format(
            self.api.api_root, self.resource_uri)

        data = {
            'name': self.name,
            'description': self.description,
            'color': self.color,
        }
        response = self.api.session.post(resource_url, json=data)

        status = error.check_return_status(response, logger)
        if not status:
            logger.error('Unable to commit changes to the timeline.')

        return status
def _commit ( self ) : resource_url = '{0:s}/{1:s}' . format ( self . api . api_root , self . resource_uri ) data = { 'name' : self . name , 'description' : self . description , 'color' : self . color , } response = self . api . session . post ( resource_url , json = data ) status = error . check_return_status ( response , logger ) if not status : logger . error ( 'Unable to commit changes to the timeline.' ) return status