I’m self hosting on DO version 5.69.3
If you are logged on a browser as admin and visit, /ghost/api/admin/tiers/
one sees the list of membership tiers. Here’s a typical entry:
{
"id": "64c4111a58880218ae05ba38",
"name": "SUBSCRIBER",
"description": "Full access to premium content & forums",
"slug": "default-product",
"active": false,
"type": "paid",
"welcome_page_url": null,
"created_at": "2023-07-28T19:03:54.000Z",
"updated_at": "2023-07-28T19:05:11.000Z",
"visibility": "none",
"benefits": [
"Everything in Free, plus...",
"Access to subscriber-only content",
"Join our community to create post & comment in the forum",
"Support the world's oldest surfboard design forum"
],
"currency": "USD",
"monthly_price": 500,
"yearly_price": 5000,
"trial_days": 0
},
For reasons too long to explain, I’m interested in changing the slug name of a membership tier. There’s no way to do this via the UI, so I tried doing it editing it directly in the database. I’m assuming the correct table is products
for example:
mysql> select id, name, slug from products where slug = "default-product";
+--------------------------+------------+-----------------+
| id | name | slug |
+--------------------------+------------+-----------------+
| 64c4111a58880218ae05ba38 | SUBSCRIBER | default-product |
+--------------------------+------------+-----------------+
1 row in set (0.00 sec)
mysql> update products set slug = "subscriber" where name = "SUBSCRIBER";
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> select id, name, slug from products where name = "SUBSCRIBER";
+--------------------------+------------+------------+
| id | name | slug |
+--------------------------+------------+------------+
| 64c4111a58880218ae05ba38 | SUBSCRIBER | subscriber |
+--------------------------+------------+------------+
1 row in set (0.00 sec)
This is all good and fine, however, when I pull up the api endpoint again, the slug name change is not reflected.
What am I doing wrong?