in remote_settings/client.py [0:0]
def create_new_record(self, index):
"""Creates a new record in the Remote Settings server along with its file attachment.
Args:
index (int): The index of the record.
"""
id = self._new_records[index]["id"]
data = self._new_records[index]["data"]
self._client.create_record(id=id, data=data)
self.attach_file_to_record(index)