Générique

Calcul des impacts environnementaux d'un produit

Changed on

Calcule l'ensemble des impacts à partir d'une requête GenericQuery. Le corps JSON est le même que celui exposé par l'onglet Partage du simulateur web (composants catalogue et/ou composants personnalisés).

post/{scope}/simulator

Request

  • Base URL
    https://ecobalyse.beta.gouv.fr/api
  • Auth
    API key in header token

Path parameters

scopestring required
Example:food2

Identifiant d’un périmètre du calculateur générique activé sur cette instance (liste disponible sur GET /generic/scopes). Par exemple food2.

Request body

productstring uuid

Identifiant de la catégorie de produit (liste disponible sur /{scope}/categories). Lorsque ce champ est fourni, ses valeurs par défaut s'appliquent aux champs suivants s'ils sont vides ou absents :

  • assembly.operations
  • consumptions
  • distribution
  • transportOptions.cooling
distributionstring uuid

Identifiant du procédé de distribution (liste disponible sur /{scope}/processes/distribution). Si omis, le procédé de la catégorie de produit sélectionnée ou de la configuration du périmètre générique s'applique.

durabilitynumber

Coefficient de durabilité du produit. Ignoré (et rejeté) lorsque la durabilité n'est pas activée pour le périmètre générique actif.

recyclableboolean

Produit recyclable (défaut true).

Response

Opération réussie

webUrlstring required

URL vers la simulation dans l'interface web.

productMassnumber required

Masse du produit fini, en kilogrammes.

descriptionstring

Une description de la simulation.

Changes

    • info

      added the new optional request property //

    • info

      added the optional property /////// to the response with the status

    • breaking

      the response's property type changed from object to no type for status

    • breaking

      the response's property type changed from object to no type for status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      added the new optional request property //

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added to the response property allOf list for the response status

    • info

      added to the response property allOf list for the response status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status