POST
/api/v1/projects/<PROJECT_ID>/data-sources

Creates a new data source in the specified project. The data source ID is server-generated; omitted fields use schema defaults.


Authentication

Request

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

Parameters

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

Response

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

Example Request

Example Response