salesforce-analytics-dashboard-api-requires-flat-json-not-nested

The Salesforce Analytics REST API POST /analytics/dashboards expects a flat JSON body with fields like ‘name’, ‘folderId’, ‘components’ at top level — NOT nested under a ‘dashboardMetadata’ wrapper key. Wrapping causes API rejection. For clone operations, use the ?cloneId={id} query parameter approach rather than POST with body, which is simpler and more reliable.