{"openapi":"3.1.0","info":{"title":"PUT /api/v1/ramp/sync-config","version":"1.0.0","description":"Update Ramp sync configuration"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/ramp/sync-config":{"put":{"tags":["ramp"],"summary":"Update Ramp sync configuration","description":"Partially update sync settings — date range, card/user/department filters, and type toggles.","operationId":"update_sync_config_api_v1_ramp_sync_config_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-business-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Business-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RampSyncConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request - Invalid input","content":{"application/json":{"example":{"detail":"Invalid request parameters"}}}},"401":{"description":"Unauthorized - Authentication required","content":{"application/json":{"example":{"detail":"Not authenticated"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"example":{"detail":"Not enough permissions"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"RampSyncConfigUpdate":{"properties":{"sync_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sync Enabled"},"auto_sync_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Sync Enabled"},"auto_sync_interval_hours":{"anyOf":[{"type":"integer","maximum":24.0,"minimum":1.0},{"type":"null"}],"title":"Auto Sync Interval Hours"},"sync_from_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sync From Date"},"sync_to_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sync To Date"},"sync_transactions":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sync Transactions"},"sync_reimbursements":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sync Reimbursements"},"sync_bills":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sync Bills"},"sync_transfers":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sync Transfers"},"sync_cashbacks":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sync Cashbacks"},"sync_bill_payments":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sync Bill Payments"},"sync_statements":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sync Statements"},"sync_card_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sync Card Ids"},"sync_user_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sync User Ids"},"sync_department_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sync Department Ids"}},"type":"object","title":"RampSyncConfigUpdate","description":"Partial update for Ramp sync configuration."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Token","description":"API token authentication. Format: `Bearer dz_...`"}}},"security":[{"BearerAuth":[]}]}