I’m completely stumped as to why the POST /api/v2/agent-scripts endpoint returns a 400 Bad Request when attempting to migrate scripted responses from Zendesk macros. The payload structure mirrors the Zendesk JSON, but Genesys Cloud rejects the content type mapping.
- Constructed a JSON body with
name,description, andcontentfields, mirroring our Zendesk macro definitions. - Set the
Content-Typeheader toapplication/json. - Executed the request against the EU1 org endpoint.
The error response indicates: "message": "Validation failed: Content format is invalid". In Zendesk, these macros were simple rich-text strings. Genesys Cloud seems to expect a specific HTML or Markdown structure that isn’t clearly documented for bulk imports.
Is there a strict schema for the content field in the Agent Scripting API? We are trying to automate the transfer of 500+ scripts. Manual entry is not feasible. Any pointers on the expected content format or a workaround to preserve the formatting from Zendesk would be appreciated.