sync: auto-sync from GURU-5070 at 2026-05-28 14:27:08
Author: Mike Swanson Machine: GURU-5070 Timestamp: 2026-05-28 14:27:08
This commit is contained in:
12
.claude/memory/feedback_syncro_content_type.md
Normal file
12
.claude/memory/feedback_syncro_content_type.md
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
name: feedback-syncro-content-type
|
||||
description: Syncro API POST calls require explicit Content-Type application/json header or they 400 with an HTML error page
|
||||
metadata:
|
||||
type: feedback
|
||||
---
|
||||
|
||||
Always include `-H "Content-Type: application/json"` on every Syncro API POST/PUT call (comments, tickets, line items, estimates).
|
||||
|
||||
**Why:** Without it, curl sends the JSON body as `application/x-www-form-urlencoded`, which Syncro rejects with an HTML 400 page instead of a JSON error. The HTML response looks like a hard failure but it's just a missing header. Discovered 2026-05-28 when posting a comment to ticket #32333 — two 400 HTML responses before the fix.
|
||||
|
||||
**How to apply:** Every `curl -X POST` or `curl -X PUT` to the Syncro API needs the header. The subject field is also required on ticket comments (`{"subject":"...","body":"...","hidden":true,"do_not_email":true}`).
|
||||
Reference in New Issue
Block a user