Delete Variant

DELETE /items/{itemId}/variants/{variantId}

Delete a variant. This operation cannot be undone and will permanently remove the variant from the system. The parent item will remain unchanged.

Path parameters

  • itemId string(guid) Required

    ID of the parent item

  • variantId string(guid) Required

    ID of the variant

Responses

  • 204

    Variant deleted

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • error string

      401: Invalid Credentials

      404: Resource not found

      422: Unprocessable Entity

    • details string

      404: empty

      401: The credentials presented are not valid to access this resource

  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • error string

      401: Invalid Credentials

      404: Resource not found

      422: Unprocessable Entity

    • details string

      404: empty

      401: The credentials presented are not valid to access this resource

  • 422 application/json

    Unprocessable Entity

    Hide response attributes Show response attributes object
    • error string

      401: Invalid Credentials

      404: Resource not found

      422: Unprocessable Entity

    • details string

      404: empty

      401: The credentials presented are not valid to access this resource

DELETE /items/{itemId}/variants/{variantId}
curl \
 --request DELETE 'https://app.getfoundation.com/api/external/v1/items/{itemId}/variants/{variantId}' \
 --header "X-API-Key: $API_KEY"
Response examples (401)
{
  "error": "string",
  "details": "string"
}
Response examples (404)
{
  "error": "string",
  "details": "string"
}
Response examples (422)
{
  "error": "string",
  "details": "string"
}