def init_file(client, recid, headers):
    """Init a file for draft with given recid."""
    return client.post(
        f'/records/{recid}/draft/files',
        headers=headers,
        json=[{'key': 'test.pdf'}]
    )