PATCH
/api/v1/projects/<PROJECT_ID>/data-sources/<DATA_SOURCE_ID>

Updates an existing data source. Only provided fields are changed; omitted fields remain the same. The data source ID cannot be modified.


Authentication

Request

  • Method: PATCH
  • URL: https://api.markerkit.com/v1/projects/<PROJECT_ID>/data-sources/<DATA_SOURCE_ID>

Parameters

name string
Data source name.
url string
Target URL.
method
"GET""POST""PUT""PATCH""DELETE"
HTTP method.
headers DataSourceHeader []
Request headers. Default: [].
body string
Raw request body sent to the URL.

Response

  • 200 OK: The updated DataSource object.
  • 400 Bad Request: Validation failed. Returns a formatted error message.
  • 401 Unauthorized: API key is missing or invalid.
  • 404 Not Found: Project or data source not found, or not accessible by the user.
  • 500 Internal Server Error: Failed to update Data Source.

Example Request

Example Response