Update Configuration
Updates an existing configuration for Development Branch. When the configuration is updated in a development branch, it does not affect currentVersion of the configuration.
The optional If-Match header turns the update into an optimistic-concurrency operation: the change is applied only if the configuration is still at the given version, otherwise nothing is written and the request fails with 412 Precondition Failed. Send the version field of a configuration detail response as a strong entity tag, e.g. If-Match: "5".
If-Match: * only requires that the configuration still exists. Weak validators (W/"5") and tag lists are rejected with 400, because If-Match mandates strong comparison and a configuration has a single version.
Reads deliberately do not emit an ETag. The version covers the whole configuration including its rows and row order, but not state or folder, so job state writes and folder moves never invalidate a caller's precondition, and If-Match does not protect folder. This also means the version is not a valid strong validator for the full representation and must not be used for caching.
Without the header the update is unconditional and overwrites concurrent changes.
The variant without branch/{branchId} in the URL is deprecated, use the branch endpoint and set branch/default.
Request
- Base URLhttps://connection.keboola.com
- Auth
- API key in header X-StorageApi-Token
- or API key in header X-KBC-ManageApiToken
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Id of the component.
Id of the configuration.
Query parameters
When provided, enqueues a workspace output-mapping sync job after the config update. The workspace must be linked to this component and configuration.
Headers
Optimistic concurrency precondition, RFC 9110 form. Send the version field of the configuration detail response as a strong entity tag, e.g. "5"; the update is applied only if the configuration is still at that version, otherwise it fails with 412. * only requires that the configuration still exists. Weak validators and tag lists are rejected with 400.
Request body
Example request
{
"name": "My new configuration",
"configuration": {
"key": "value",
"key3": "value3"
},
"changeDescription": "Added new key",
"rowsSortOrder": [
"row1",
"row2"
],
"folder": "Marketing"
}Response
Configuration updated.
Example response
{
"id": "236606822",
"name": "My new configuration",
"created": "2017-02-13T12:01:05+0100",
"creatorToken": {
"id": 27978,
"description": "dev@keboola.com"
},
"version": 1,
"changeDescription": "Initial configuration",
"folder": "Marketing",
"folderUpdated": "2017-02-13T12:01:05+0100",
"rows": [
{
"id": "row1",
"name": "First row",
"version": 1,
"created": "2017-02-13T12:01:05+0100",
"creatorToken": {
"id": 27978,
"description": "dev@keboola.com"
},
"changeDescription": "Row created",
"versionIdentifier": "01H2W8N0ZJJB6V126C8ZSND28N"
}
],
"currentVersion": {
"created": "2017-02-13T12:01:05+0100",
"creatorToken": {
"id": 27978,
"description": "dev@keboola.com"
},
"changeDescription": "Initial configuration",
"versionIdentifier": "01H2W7DAN0QT78NZQ2BD2BZT4S"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.