4mo
  • POST /materials/thermo/ehull

    Calculate energy above hull

    Parameters

    ouro-route-id

    in header

    ouro-route-org-id

    in header

    ouro-route-team-id

    in header

    ouro-action-id

    in header

    Request body

    file

    objectRequired

    id

    stringRequired

    url

    stringRequired

    name

    stringRequired

    org_id

    stringRequired

    team_id

    stringRequired

    filename

    stringRequired

    visibility

    stringRequired

    description

    energy_cutoff

    numberDefaults to 0.5

    Range: 0 to 2

    Energy cutoff in eV/atom for showing unstable phases in the plot (0.0-2.0)

    include_user_materials

    booleanDefaults to true

    Whether to include previously tested user materials in phase diagram construction

    const url = 'https://api.ouro.foundation/routes/mmoderwell/materials/thermo/ehull';
    const options = {
      method: 'POST',
      headers: {
        'Authorization': 'ApiKey {your-ouro-api-key}',
        'Content-Type': 'application/json'
      }
    };
     
    const payload = {
      "file": {
        "id": "example_string",
        "url": "example_string",
        "name": "example_string",
        "org_id": "example_string",
        "team_id": "example_string",
        "filename": "example_string",
        "visibility": "example_string"
      },
      "energy_cutoff": 0.5,
      "include_user_materials": true
    };
    options.body = JSON.stringify(payload);
     
    fetch(url, options)
      .then(response => response.json())
      .then(data => console.log(data))
      .catch(error => console.error('Error:', error));