def METHOD_NAME(client, record, headers):
    """Publish a record."""
    draft = client.post("/records", headers=headers, json=record)
    assert draft.status_code == 201
    record = client.post(link(draft.json["links"]["publish"]), headers=headers)
    assert record.status_code == 202
    record = client.get(link(record.json["links"]["self"]), headers=headers)
    assert record.status_code == 200
    return record.json