Create Card API Failure #2282
Unanswered
SahilSingla
asked this question in
Ideas and Issue Triage
Replies: 1 comment
-
|
Hey @SahilSingla - The issue is with your request body JSON syntax. In your Tampermonkey script, you're sending:
This isn't valid JSON - JSON requires double quotes for both keys and string values (single quotes aren't valid), and you're also missing a closing brace. Make sure you're using JSON.stringify() on your request body: Your curl works because you wrote valid JSON manually with double quotes in the -d parameter. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a tamper monkey script from Gmail Integration. I am able to load boards I am part of, not create card request fails with 422 error. But the same request works via curl.
REQ POST https://app.fizzy.do/app-id/boards/board-id/cards
REQ BODY {card: {title: 'Presenting VIP as our new lifestyle partner', description: 'From: members@x.y.com'}
RES_HEADERS
cf-cache-status:DYNAMIC
cf-ray:9b79c6a4c8bb4bda-DEL
content-length:46
content-type:application/json; charset=UTF-8
date:Fri, 02 Jan 2026 11:04:30 GMT
server:cloudflare
strict-transport-security:max-age=63072000; includeSubDomains
vary:Accept-Encoding
x-cache:bypass
x-request-id:f8f74bcf-b9df-4896-a775-f728193ad1ec
x-runtime:0.009551
RES_BODY {"status":422,"error":"Unprocessable Content"}
CURL
curl -i -X POST
https://app.fizzy.do/app-id/boards/board-id/cards
-H "Authorization: Bearer TOKEN"
-H "Accept: application/json"
-H "Content-Type: application/json"
-d '{
"card": {
"title": "Test card from curl",
"description": "Created via Fizzy API curl test"
}
}'
Beta Was this translation helpful? Give feedback.
All reactions