curl -X DELETE 'https://api.weir.ai/org/talent/license/lic_123456789/image/img_987654321' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"message": "Image removed from license successfully",
"status": "success"
}
Remove an image from a license
curl -X DELETE 'https://api.weir.ai/org/talent/license/lic_123456789/image/img_987654321' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"message": "Image removed from license successfully",
"status": "success"
}
curl -X DELETE 'https://api.weir.ai/org/talent/license/lic_123456789/image/img_987654321' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-source: console'
{
"message": "Image removed from license successfully",
"status": "success"
}
const removeLicenseImage = async (licenseId, imageId, accessToken) => {
const response = await fetch(`https://api.weir.ai/org/talent/license/${licenseId}/image/${imageId}`, {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${accessToken}`,
'x-source': 'console'
}
});
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
return await response.json();
};
Was this page helpful?