Fortinet black logo

REST API Solution Guide

Supported data formats

Supported data formats

Currently, JSON and XML are supported. To specify a format on the request:

For a GET request, there are two options:

  • Use the GET format parameter (e.g. ?format=json or ?format=xml)
  • Specify an Accept HTTP header with a correct mimetype (e.g. Accepts: application/json for JSON)

The GET format parameter takes precedence over the Accept header.

Browsers will usually default to requesting for an XML data type when format is not specified for a GET request.

Supported data formats

Currently, JSON and XML are supported. To specify a format on the request:

For a GET request, there are two options:

  • Use the GET format parameter (e.g. ?format=json or ?format=xml)
  • Specify an Accept HTTP header with a correct mimetype (e.g. Accepts: application/json for JSON)

The GET format parameter takes precedence over the Accept header.

Browsers will usually default to requesting for an XML data type when format is not specified for a GET request.