MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / update

Method update

client/src/api/datasource/api-client.ts:78–88  ·  view source on GitHub ↗
(dataSource: DataSource)

Source from the content-addressed store, hash-verified

76
77 }
78 async update(dataSource: DataSource): Promise<DataSource> {
79 const response = await this.authUtil.requestWithAuthIfRequired({
80 method: 'put',
81 url: `/api/datasources/${dataSource.account}/${dataSource.container}/datasource`,
82 data: dataSource,
83 });
84 if (response.status !== 204) {
85 throw new Error(`Failed to update datasource: ${response.status}`);
86 }
87 return response.data;
88 }
89 async create(dataSource: DataSource): Promise<DataSource> {
90 const response = await this.authUtil.requestWithAuthIfRequired({
91 method: 'post',

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected