Skip to main content
DELETE
https://api-dev.weir.ai/
/
org
/
talent
/
license
/
{licenseId}
/
image
/
{imageId}
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 License Image

Remove a specific image from a talent 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"
}

Path Parameters

licenseId
string
required
Unique identifier of the license.
imageId
string
required
Unique identifier of the image to remove.

Usage Examples

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();
};