Adapters
Detach an adapter
Remove an adapter attachment. When no serving replica still holds the adapter it is deleted immediately (deleted=true); otherwise the attachment enters status ‘detaching’ (deleted=false) and is garbage-collected once every replica has unloaded it.
DELETE
/
v1
/
deployments
/
{deployment_id}
/
adapters
/
{serve_name}
Detach an adapter
curl --request DELETE \
--url https://api.veri.studio/v1/deployments/{deployment_id}/adapters/{serve_name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/deployments/{deployment_id}/adapters/{serve_name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/deployments/{deployment_id}/adapters/{serve_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
API key with the vk_ prefix. Create one from the dashboard.
Path Parameters
Deployment ID
The adapter's public alias
Response
Detach result: {serve_name, deleted}. deleted=true when removed immediately, else deleted=false with status 'detaching'
Detach an adapter
curl --request DELETE \
--url https://api.veri.studio/v1/deployments/{deployment_id}/adapters/{serve_name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/deployments/{deployment_id}/adapters/{serve_name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/deployments/{deployment_id}/adapters/{serve_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
