Req: a way to append text to existing card's body

I was not able to find a way to append new text to existing card’s body. Right now you can do this by retrieving the text first, append, and then put it back. I’m sure appending (and possible prepending?) text is quite common task, so I think it is a good idea to implement this is API.

1 Like

I’m close to getting appending text to work using iOS shortcuts. Using the Get Selected Cards - Supernotes API call I can search for a card and return its card id. I’m not sure what happens when multiple cards have the same name, but in my case I’m searching for daily cards in the iOS format YYMMdd E (Unicode #35) that come out as 250808 Fri, so right now I’ll only ever have one card with that name. Where I’m getting stuck is on the Simple Append - Supernotes API call. Using my API key and an existing card ID I can get Simple Append to work from the website, but not from iOS shortcuts. The issue seems to be the Request Body variable markup (see red outline). I can’t tell from the API documentation what this should be. Any ideas? Thanks, Bob

It works for me when adding a textfield where I put the input variable in quotation marks. Then change the request body to file and add the variable of the textfield.

2 Likes

Thanks so much, @isaiur! Changing the Request Body to File and adding the quotes around the “Ask for Input” resulting text did the trick.

1 Like