Import Configuration
const url = 'https://example.com/config-ops/import/?mode=merge';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"oauth_providers":[{}],"settings":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://example.com/config-ops/import/?mode=merge' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "oauth_providers": [ {} ], "settings": {} }'Import configuration in merge or overwrite mode.
Merge mode: updates existing settings and OAuth providers, adds new ones. Overwrite mode: replaces all settings and OAuth providers.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Payload for importing configuration.
object
object
Example generated
{ "oauth_providers": [ {} ], "settings": {}}Responses
Section titled “ Responses ”Successful Response
Summary of what was applied during an import.
object
Number of dependent OAuth account links cascade-deleted in overwrite mode.
Number of new OAuth providers created.
Number of OAuth providers deleted (overwrite mode only).
Number of existing OAuth providers updated.
Number of settings successfully updated.
Number of settings skipped (no change, unknown key, or restricted key not writable by the current runtime).
Names of restricted setting keys that were skipped by the current runtime.
Example
{ "oauth_accounts_deleted": 0}Bad request — invalid query parameters or payload
Unauthorized — missing or invalid credentials
Forbidden — caller lacks access to this resource
Not found
Conflict — resource state prevents the operation
Validation error
Too many requests — retry after the advertised interval
Headers
Section titled “Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request