def METHOD_NAME(client, restore_provider_details, field, value):
    provider = ProviderDetails.query.first()
    resp = client.post(
        "/provider-details/{}".format(provider.id),
        headers=[("Content-Type", "application/json"), create_authorization_header()],
        data=json.dumps({field: value}),
    )
    resp_json = json.loads(resp.get_data(as_text=True))
    assert resp_json["message"][field][0] == "Not permitted to be updated"
    assert resp_json["result"] == "error"
    assert resp.status_code == 400