Update a source
client.promptly.sources.update(stringsourceID, SourceUpdateParams { authConfig, authType, config, 3 more } body, RequestOptionsoptions?): Source { id, config, name, 14 more }
PATCH/api/promptly/sources/{sourceId}
Update a source
Parameters
sourceID: string
formatuuid
Returns
Update a source
import _0ct from '0ct';
const client = new _0ct({
apiKey: process.env['0CT_API_KEY'], // This is the default and can be omitted
});
const source = await client.promptly.sources.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');
console.log(source.id);{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"config": {
"args": [
"string"
],
"baseUrl": "https://example.com",
"command": "command",
"env": {
"foo": "string"
},
"transport": "stdio",
"url": "https://example.com"
},
"name": "name",
"type": "mcp",
"authConfig": {
"headerName": "headerName",
"prefix": "prefix",
"provider": "provider"
},
"authType": "none",
"composioConnected": true,
"composioToolkit": "composioToolkit",
"createdAt": "2019-12-27T18:11:19.117Z",
"description": "description",
"iconUrl": "https://example.com",
"isActive": true,
"lastConnectedAt": "2019-12-27T18:11:19.117Z",
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"slug": "slug",
"tools": [
{
"description": "description",
"inputSchema": {},
"name": "name"
}
],
"updatedAt": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"config": {
"args": [
"string"
],
"baseUrl": "https://example.com",
"command": "command",
"env": {
"foo": "string"
},
"transport": "stdio",
"url": "https://example.com"
},
"name": "name",
"type": "mcp",
"authConfig": {
"headerName": "headerName",
"prefix": "prefix",
"provider": "provider"
},
"authType": "none",
"composioConnected": true,
"composioToolkit": "composioToolkit",
"createdAt": "2019-12-27T18:11:19.117Z",
"description": "description",
"iconUrl": "https://example.com",
"isActive": true,
"lastConnectedAt": "2019-12-27T18:11:19.117Z",
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"slug": "slug",
"tools": [
{
"description": "description",
"inputSchema": {},
"name": "name"
}
],
"updatedAt": "2019-12-27T18:11:19.117Z"
}