How to format HTML in a create_update API call

I keep getting a parser error on this but I can’t figure out why. It has something to do with the HTML because a plain text update is working. (Specific text has been redacted for privacy)

mutation { create_update(item_id: 87610960, body: "<div><b>Question?</b></div><div>Answer</div><br><div><b>$639 Question</b></div><div>-list 1. <br>-list 2. <br>-list 3. <br>-list 4 <br>-list 5. <br>-list 6. <br>-list 7 (upgrades are available). <br>-list 8</div><br><div><b>Question</b></div><div>Answer</div><br><div><b>Question</b></div><div>0</div><br><div><b>Question</b></div><div>Answer $0</div><br><div><b>Total</b></div><div>0</div><br><div><b>Total items</b></div><div>0</div><br><div><b>What is your name?</b></div><div>My Name</div><br><div><b>Question?</b></div><div>Answer</div><br><div><b>Question</b></div><div><strong>Under 200 pounds </strong></div><br><div><b>Question</b></div><div><strong>Answer</strong><br>* 16 business days<br><br> Service occurs according to schedule. Holidays and weekends are excluded from the timeline.</div><br><div><b>Disclaimer</b></div><div>I understand that ...</div><br><div><b>Question?</b></div><div>No</div><br><div><b>Distance Calculation</b></div><div>346.20</div><br><div><b>Select the location </b></div><div>Home</div><br><div><b>Address</b></div><div>From: 123 Main St</div><br><div><b>USAAddress where located</b></div><div> Answer</div><br><div><b>USADistance</b></div><div>50.4 miDuration: 50 mins</div><br><div><b>Question?</b></div><div><strong>No </strong> <br> - Option 1</div><br><div><b>Would you like premium phone support?</b></div><div><strong>Text/Email Communication Only</strong></div><br><div><b>Question?</b></div><div>9</div><br><div><b>Question?</b></div><div>Pickup </div><br><div><b>Subtotal</b></div><div>1461.20</div><br><div><b>Sales Tax</b></div><div>0</div><br><div><b>Processing Fee</b></div><div>58.45</div><br><div><b>Taxes & Fees</b></div><div>58.45</div><br><div><b>Total Source</b></div><div>1519.65</div><br><div><b>Subtotal</b></div><div>1461.20</div><br><div><b>Taxes & Fees</b></div><div>58.45</div><br><div><b>Total (Tax + Processing Fees)</b></div><div>1519.65</div><br><div><b>Package Total</b></div><div><table><tr><td><ul><li> (Amount: 1,519.65 USD) </li></ul>Total: $1,519.65<br>Transaction ID: rxaoZ2ejYrXoy0a8kkQJz7h3ox8YY<br/>Payment Method: Card<br/></td></tr><tr><td><br /><table><tr><td>Payment Information</td></tr><tr><td>First Name:</td><td>first</td></tr><tr><td>Last Name:</td><td>last</td></tr><tr><td>E-Mail:</td><td>example@example.com</td></tr></table></td></tr></table></div><br><div><b>Email</b></div><div>example@example.com</div><br><div><b>Phone Number</b></div><div>(111) 222-0123</div><br><div><b>UniqueForm</b></div><div>2348</div><br>") { id } }

Hey @brondavies

Bill here from monday.com :wave:

Would you be able to please fill this form adding as much information as possible to it (such as account ID, board IDs, item IDs, timestamps, etc.) so that our team can take a look into it?

Cheers,
Bill

1 Like

Thanks for your help. I figured out the real problem. Most of my API calls have been shorter queries (even when creating records) using the ?query= parameter in the URL of the POST. This was a larger body and didn’t work this way, probably because the URI would be too long. I had to put the query in the post JSON body, then it worked.