How create ou update datasource on existing organization with grafana API

I’m looking for create or update datasource on existant organization.
But in grafana api, we don’t send orgid in the datasource grafana api.
I’ll try with x-grafana-orgip headers but it seems don’t work.

Any example or idea ?