---
title: "Changes display-name of a datasource"
method: PATCH
path: "/data-studio/data-source/2026-09/{datasourceId}"
tags: ["Basic"]
---

# Changes display-name of a datasource

`PATCH /data-studio/data-source/2026-09/{datasourceId}`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/data-studio/data-source/2026-09/{datasourceId}`
- Auth: OAuth 2
  - Authorization code: `https://app.hubspot.com/oauth/authorize`
  - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `data_integration.data_source.file.write`

Updates the display-name of a datasource.

## Path parameters

- `datasourceId` integer, required

## Request body

- DataSourceRenameRequest
  - `datasourceName` string, required: New name of datasource. Name cannot be used by another datasource.

## Response `200`

successful operation

- DataSourceUpdateResponse
  - `createdAt` string: Timestamp when the datasource was created.
  - `datasourceId` string, 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.
  - `previewLink` string, required: A URL string that provides a preview link for the data source.
  - `updatedAt` string: Timestamp when the datasource was updated.

## Other responses

- `default`: An error occurred.

## Changes

- **2026-10-10** (2026-09) `48170f54a9e5`: 2 info
  - the security scope `data_integration.data_source.file.write` was added to the endpoint's security scheme `oauth2`
  - the security scope `data-integration-json-datasource-write` was removed from the endpoint's security scheme `oauth2`

[Operation history](https://skmtc.dev/hubspot/apis/data-studio-datasource-ingestion/changes/data-studio/data-source/2026-09/:datasourceId/patch.md)

---

[API](https://skmtc.dev/hubspot/apis/data-studio-datasource-ingestion.md) - [All operations](https://skmtc.dev/hubspot/apis/data-studio-datasource-ingestion/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/data-studio-datasource-ingestion/revisions/48170f54a9e5?raw)
