#manuel_api

1 messages · Page 1 of 1 (latest)

sterile rivetBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1428785142264234116

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

young surge
#

it's just a dictionary, im deleting a key from the metadata and then modify the old metadata with the new one

old metadata -> {
"custom_coupon": "True",
"internal_upgrade": "True",
"is_internal": "Si"
}

new metadata -> {'custom_coupon': 'True', 'is_internal': 'Si'}

autumn zenith
#

Looking at the request I can see the new metadata being returned in the response

young surge
#

Shouldn't there be two keys instead of one?

autumn zenith
#

is what i'm seeing,

young surge
#

but im deleting in the new metadata one key, the "internal_upgrade" one

#

so there should be 2 keys in the new one after the update, the "is_internal" and "custom_coupon"

#

not 3 in total

autumn zenith
#

omitting a key pair won't remove it. You will want to send and empty value for the internal_upgrade key to remove it

young surge
#

do i have to delete all the metadata from the subscription and then assign the new one in another request?

#

because I just sent it this way:

{‘custom_coupon’: ‘True’, ‘is_internal’: ‘Yes’, ‘internal_upgrade’: None}

and it still only passes 2 keys in the request and is not modified.

#

lol req_OVl7uW5BthXQSo

autumn zenith
#

I believe you'll want to pass empty qoutes ''

young surge
#

I can't pass empty strings because i get error by the API

#

Even the Library told me how to send it

autumn zenith
#

Sorry, I think it's supposed to be set to null, our documentation is suggesting otherwise, but I feel like i've come across this before.

sterile rivetBOT
autumn zenith
#

actually I just did a test and was able to unset the value by passing empty quotes. Can you share a snippet of the code you are using to update the Subscription?

young surge
#

yeah no problem, give me a sec

#

this is how im doing it

#

i figure it out how to delete, thank you guys

#

that's all 🙂

cerulean coral
#

👋 Taking over this thread, catching up now