Dashboard import with datasource variable

Are you using this endpoint when you import?

Please refer to Which endpoint to use to import dashboard?