curl --request PATCH \
--url https://your-synthbrew-server.com/api/public/v1/projects/{projectId}/sources/{sourceId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"schemaVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"config": {},
"kind": "postgres",
"seed": "<string>",
"generatorConfig": {},
"basePath": "<string>",
"rateLimitRpm": 2,
"corsOrigins": [
"<string>"
],
"requireAuth": true
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"schemaVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"config": {},
"kind": "postgres",
"seed": "<string>",
"generatorConfig": {},
"rateLimitRpm": 123,
"requireAuth": true,
"lastGenerationAt": "2023-11-07T05:31:56Z",
"generationAudit": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}curl --request PATCH \
--url https://your-synthbrew-server.com/api/public/v1/projects/{projectId}/sources/{sourceId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"schemaVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"config": {},
"kind": "postgres",
"seed": "<string>",
"generatorConfig": {},
"basePath": "<string>",
"rateLimitRpm": 2,
"corsOrigins": [
"<string>"
],
"requireAuth": true
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"schemaVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"config": {},
"kind": "postgres",
"seed": "<string>",
"generatorConfig": {},
"rateLimitRpm": 123,
"requireAuth": true,
"lastGenerationAt": "2023-11-07T05:31:56Z",
"generationAudit": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Team API key created under /api/api-keys. Prefix: sb_api_.
Project UUID in the team associated with the API key.
Source UUID. For runtime endpoints this identifies the source backing the table; for public v1 it identifies the source resource inside the project.
Patch mutable source settings. Omitted fields are unchanged.
Switches the source to a different schema version.
Source config patch. Runtime target values should already be normalized for storage.
postgres, mysql Set deterministic seed or null to clear.
Generator override patch.
Runtime API per-source rate limit (requests per minute).
x >= 1Allowed CORS origins for runtime API requests.
Whether runtime endpoints require x-api-key authentication.
Updated source
Source configuration. For Supabase runtime targets, responses include runtimeTarget.connectionSecretId and never return plaintext runtimeTarget.connectionString.
postgres, mysql