# Internal APIs intended for internal use by Tidepool. ## Create New Data Source for User - [POST /v1/users/{userId}/data_sources](https://tidepool.redocly.app/reference/data.v1/internal/createdatasource.md): Creates a new data source for the user specified by the . Before creating a new data source, you must first create the data provider session. See the Authentication APIs for the details on how to create data provider sessions. ## Delete All Data Sources for User - [DELETE /v1/users/{userId}/data_sources](https://tidepool.redocly.app/reference/data.v1/internal/deletealldatasources.md): Deletes all data sources for the user specified by the . This does delete the corresponding data provider sessions. See the Authentication APIs for the details on how to delete data provider sessions. ## Update Data Source - [PUT /v1/data_sources/{dataSourceId}](https://tidepool.redocly.app/reference/data.v1/internal/updatedatasource.md): Updates the data source specified by the . If you want to change the data provider session, you must first create the data provider session. See the Authentication APIs for the details on how to create data provider sessions. ## Delete Data Source - [DELETE /v1/data_sources/{dataSourceId}](https://tidepool.redocly.app/reference/data.v1/internal/deletedatasource.md): Deletes data source specified by the . This does delete the corresponding data provider session. See the Authentication APIs for the details on how to delete data provider sessions. ## Upload Data (LEGACY) (deprecated) - [POST /data/{userId}](https://tidepool.redocly.app/reference/data.v1/internal/uploaddata.md): Upload data for the specified . The session token must be for , or identify a user who has the permission to the account specified by the . ## Create New Data Source for User - [POST /v1/users/{userId}/data_sources](https://tidepool.redocly.app/reference/data.v1/data/createdatasource.md): Creates a new data source for the user specified by the . Before creating a new data source, you must first create the data provider session. See the Authentication APIs for the details on how to create data provider sessions. ## Delete All Data Sources for User - [DELETE /v1/users/{userId}/data_sources](https://tidepool.redocly.app/reference/data.v1/data/deletealldatasources.md): Deletes all data sources for the user specified by the . This does delete the corresponding data provider sessions. See the Authentication APIs for the details on how to delete data provider sessions. ## Update Data Source - [PUT /v1/data_sources/{dataSourceId}](https://tidepool.redocly.app/reference/data.v1/data/updatedatasource.md): Updates the data source specified by the . If you want to change the data provider session, you must first create the data provider session. See the Authentication APIs for the details on how to create data provider sessions. ## Delete Data Source - [DELETE /v1/data_sources/{dataSourceId}](https://tidepool.redocly.app/reference/data.v1/data/deletedatasource.md): Deletes data source specified by the . This does delete the corresponding data provider session. See the Authentication APIs for the details on how to delete data provider sessions. ## Upload Data (LEGACY) (deprecated) - [POST /data/{userId}](https://tidepool.redocly.app/reference/data.v1/data/uploaddata.md): Upload data for the specified . The session token must be for , or identify a user who has the permission to the account specified by the .