Skip to main content
PUT
/
data-studio
/
data-source
/
2026-09-beta
/
{datasourceId}
Update data source
curl --request PUT \
  --url https://api.hubapi.com/data-studio/data-source/2026-09-beta/{datasourceId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'request=<string>'
{
  "datasourceId": 123,
  "datasourceName": "<string>",
  "previewLink": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Supported products

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

datasourceId
integer<int64>
required

The ID of the datasource.

Body

multipart/form-data
file
file
request
string

Response

successful operation

datasourceId
integer<int64>
required

The unique identifier for the data source. It is an integer formatted as int64.

datasourceName
string
required

The name of the data source. It is a string.

A URL string that provides a preview link for the data source.

Last modified on March 30, 2026