Hotfix

Upload the Hotfix File

Request

Method

POST

Path

/api/v2/hotfix/upload

Headers

Content-Type: application/octet-stream

Body

Raw hotfix file content sent as binary data

Authentication

Authenticated web session (__Host-sessionid cookie) with CSRF protection

POST /api/v2/hotfix/upload

Example Request

curl -sk -X POST 'https://10.31.118.184/api/v2/hotfix/upload' \
  -H 'Content-Type: application/octet-stream' \
  -H 'Origin: https://10.31.118.184' \
  -H 'Referer: https://10.31.118.184/settings/system/hotfix' \
  -H 'X-CSRFToken: <csrf_token>' \
  -H 'Cookie: __Host-sessionid=<session_id>; csrftoken=<csrf_token>' \
  --data-binary '@/path/to/hotfix_file.fshf'

Response

{
    "result": "success"
}

Note

This endpoint requires an authenticated web session and CSRF protection. Token-based authorization using the Authorization header is not sufficient.

Get Uploaded Hotfix Information

Request

Method

GET

Path

/api/v2/hotfix

GET /api/v2/hotfix

Example Request

curl -s -k -X GET \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.0.214.98/api/v2/hotfix'

Response

{
    "result": "success",
    "hotfix": [
        {
            "name": "hotfix_name_5.6.3",
            "description": "Hotfix for ...",
            "installed": null
        }
    ]
}

Install the Hotfix

Request

Method

POST

Path

/api/v2/hotfix/install/<name>

Headers

Authorization: <token>

Body

Not required

POST /api/v2/hotfix/install/<name>

Example Request

curl -s -k -X POST \
  -H 'Authorization: <token>' \
  'https://10.31.118.184/api/v2/hotfix/install/hotfix_name_5.6.3'

Response

{
    "result": "success",
    "output": "Running preinstall script.\nStopping pmonitord.\nWaiting for PIDS: 49368.\nStopping fudod.\nWaiting for PIDS: 44506.\nRunning postinstall script.\nStarting fudod.\nStarting pmonitord.\n"
}

Note

The output field contains the execution log of the hotfix installation process, including pre-installation and post-installation steps.

Delete Uploaded Hotfix File

Request

Method

DELETE

Path

/api/v2/hotfix/<name>

DELETE /api/v2/hotfix/<name>

Example Request

curl -s -k -X DELETE \
  -H 'Authorization: sgfeea6jsaz4mum9su8w6' \
  'https://10.31.135.179/api/v2/hotfix/hotfix_name_5.6.3'

Response

{
    "result": "success"
}

Note

The names of uploaded hotfixes can be retrieved using the GET /api/v2/hotfix endpoint.