TwinSources_patch
PATCH
/api/twin/sources/{id}
const url = 'https://met.cards/api/twin/sources/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","useFor":"example","enabled":true,"showLinks":true,"allowedTools":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://met.cards/api/twin/sources/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "useFor": "example", "enabled": true, "showLinks": true, "allowedTools": [ "example" ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
string
useFor
string
enabled
boolean
showLinks
boolean
allowedTools
Array<string>
Examplegenerated
{ "name": "example", "useFor": "example", "enabled": true, "showLinks": true, "allowedTools": [ "example" ]}Responses
Section titled “Responses”Media typeapplication/json
object
Examplegenerated
{}