PATCH
/
api
/
v1
/
datasources
/
:datasource_id

This endpoint updates specific details of an existing datasource.

HTTP Request

PATCH https://api.gptlab.cloud/api/v1/datasources/:datasource_id

Path Parameters

  • datasource_id: The ID of the datasource to be updated.

Request Body

The request body should contain an object with fields that you want to update. Fields are:

  • name: String - The name of the datasource.
  • description: String - A brief description of the datasource.
  • type: String - The type of the datasource.
  • content: Optional string - The content of the datasource, if applicable.
  • url: Optional string - The URL of the datasource, if applicable.
  • metadata: Optional map from strings to any - Additional metadata for the datasource.

Response

The response will return a JSON object indicating the success of the operation and the updated details of the datasource.