Problem
We’re trying to automate user onboarding using the Python SDK and a CSV file. The script loops through the rows. It calls post_users for each line. First five records go through without issue. Then the client throws a 400 Bad Request. Error body points to a validation failure on external_id. We verified the CSV format matches the docs. The endpoint is /api/v2/users. Logs show nothing useful. No stack trace either.
for row in csv_reader:
body = { "first_name": row[0], "external_id": row[2] }
api_response = post_users(body=body)