DEVS-Fire API

loadFuel

Upload a custom fuel map from a space- or tab-separated .txt file. The file is sent as the raw request body with Content-Type `text/plain` and a `fileName` header. Uploading a fuel map updates `cellDimension` to match the file's grid size and also updates `cellResolution` from the file's `cellsize` field if present. **File format:** space- or tab-separated grid of integer fuel model values, one row per line. The number of rows and columns defines the cell space dimensions.

POST
/loadFuel

Request Body

text/plain

body*string

Space- or tab-separated .txt file of fuel values.

Query Parameters

Prop

Type

Header Parameters

Prop

Type

import requestsbase_url: str = "https://firesim.cs.gsu.edu/api/loadFuel/"response = requests.post(    base_url,    params={"userToken": "abc123xyz"},    files={"file": open("fuel.txt", "rb")},    headers={"fileName": "fuel.txt"},)print(response.text)
"Fuel Map Updated"
""
{
  "timestamp": "2026-05-20T16:42:13.284+00:00",
  "status": 500,
  "error": "Internal Server Error",
  "path": "/api/loadFuel"
}

Response Body

text/plain

text/plain

application/json