'Update the certificates config data to certificate endpoint.'

def update_certificate(self, certificate_id):

    response = self.session.put('{}/certificates/{}/{}'.format(STUDIO_BASE_URL, self.course_id, certificate_id), data=json.dumps(self.certificates), headers=self.headers)
    if (not response.ok):
        raise CertificateConfigUpdateFixtureError('Could    not    update    certificate    {0}.        Status    was    {1}'.format(json.dumps(self.certificates), response.status_code))
    return self
