def METHOD_NAME(client, db, user, jwt):
    order_id = get_complex_custom_form_order(db, user)
    order = Order.query.get(order_id)
    data = json.dumps(
        {
            "data": {
                "attributes": {"status": "pending", "order-notes": "do it pending"},
                "type": "order",
                "id": order_id,
            }
        }
    )
    response = client.patch(
        f'/v1/orders/{order_id}',
        content_type='application/vnd.api+json',
        headers=jwt,
        data=data,
    )
    db.session.refresh(order)
    assert response.status_code == 422
    assert order.status != "pending"
    assert order.order_notes != "do it pending"
    assert json.loads(response.data) == {
        'errors': [
            {
                'status': 422,
                'source': {'pointer': '/data/attributes'},
                'title': 'Unprocessable Entity',
                'detail': "Missing required fields ['what college', 'what university']",
            }
        ],
        'jsonapi': {'version': '1.0'},
    }