def METHOD_NAME(
    staff_api_client, site_settings, permission_manage_gift_card
):
    # given
    assert (
        site_settings.gift_card_expiry_type == GiftCardSettingsExpiryType.NEVER_EXPIRE
    )
    expiry_type = GiftCardSettingsExpiryTypeEnum.EXPIRY_PERIOD.name
    variables = {
        "input": {
            "expiryType": expiry_type,
        }
    }
    # when
    response = staff_api_client.post_graphql(
        GIFT_CARD_SETTINGS_UPDATE_MUTATION,
        variables,
        permissions=(permission_manage_gift_card,),
    )
    # then
    content = get_graphql_content(response)
    data = content["data"]["giftCardSettingsUpdate"]
    assert not data["giftCardSettings"]
    assert len(data["errors"]) == 1
    assert data["errors"][0]["field"] == "expiryPeriod"
    assert data["errors"][0]["code"] == GiftCardSettingsErrorCode.REQUIRED.name