Delete article image
DELETE https://api.weav.com/v1/kb-articles/{id}/images
Requires a token with the external-api:write ability.
Request
cURL
curl --request DELETE \
--url 'https://api.weav.com/v1/kb-articles/{id}/images' \
--header "Authorization: Bearer ${WEAV_API_TOKEN}"
JavaScript
const response = await fetch("https://api.weav.com/v1/kb-articles/{id}/images", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.WEAV_API_TOKEN}`
}
});
console.log(response.status);
Python
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['WEAV_API_TOKEN']}"}
response = requests.delete("https://api.weav.com/v1/kb-articles/{id}/images", headers=headers)
print(response.status_code)
PHP
use GuzzleHttp\Client;
$client = new Client();
$response = $client->request('DELETE', 'https://api.weav.com/v1/kb-articles/{id}/images', [
'headers' => ['Authorization' => 'Bearer '.getenv('WEAV_API_TOKEN')],
]);
echo $response->getStatusCode();
Response
204No Content
