---
updatedAt: 2026-08-04T14:50:55.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/application-security/llms.txt
---

# Modify an FAI application

__All products__ Update details for a specific FAI application.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's Application Security API",
    "url": "https://techdocs.akamai.com/application-security/reference"
  },
  "info": {
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Configuration settings",
    "version": "v1"
  },
  "openapi": "3.0.0",
  "paths": {
    "/configs/{configId}/versions/{versionNumber}/fai-applications/{faiApplicationId}": {
      "put": {
        "description": "__All products__ Update details for a specific FAI application.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Application Security API",
          "url": "https://techdocs.akamai.com/application-security/reference/put-fai-application"
        },
        "operationId": "put-fai-application",
        "parameters": [
          {
            "description": "For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).",
            "in": "query",
            "name": "accountSwitchKey",
            "required": false,
            "schema": {
              "example": "1-5C0YLB:1-8BYUX",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "accessEndpointPath": "/api/v1/chat",
                "accessHostnames": [
                  "api.example.com",
                  "app.example.com"
                ],
                "connectionType": "HTTP",
                "description": "Updated AI traffic monitoring",
                "inputSettings": {
                  "enabled": true,
                  "encoding": "NONE",
                  "jsonPath": "$.messages[-1].content",
                  "maxLength": 8192
                },
                "name": "My FAI Application Updated",
                "outputSettings": {
                  "enabled": true,
                  "encoding": "NONE",
                  "jsonPath": "$.choices[0].message.content",
                  "maxLength": 8192
                },
                "sampleRate": 75,
                "tags": [
                  "production",
                  "updated"
                ]
              },
              "schema": {
                "additionalProperties": false,
                "description": "Contains details about an FAI application.",
                "properties": {
                  "accessEndpointPath": {
                    "description": "The access endpoint path.",
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  },
                  "accessHostnames": {
                    "description": "A list of hostnames for data collection.",
                    "items": {
                      "maxLength": 255,
                      "minLength": 1,
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "connectionType": {
                    "description": "The connection protocol type. Either `HTTP` or `WEBSOCKET`.",
                    "enum": [
                      "HTTP",
                      "WEBSOCKET"
                    ],
                    "type": "string"
                  },
                  "createDate": {
                    "description": "__Read-only__ The ISO 8601 timestamp when the FAI application was created.",
                    "readOnly": true,
                    "type": "string"
                  },
                  "createdBy": {
                    "description": "__Read-only__ The user who created the FAI application.",
                    "readOnly": true,
                    "type": "string"
                  },
                  "description": {
                    "description": "A description of the FAI application.",
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  },
                  "envelopeProtocol": {
                    "description": "The WebSocket envelope protocol. Applicable when `connectionType` is `WEBSOCKET`. Supported values are `stomp`, `socketio`, `sockjs`, or `raw`.",
                    "enum": [
                      "stomp",
                      "socketio",
                      "sockjs",
                      "raw"
                    ],
                    "type": "string"
                  },
                  "faiApplicationId": {
                    "description": "__Read-only__ A unique identifier for the FAI application.",
                    "readOnly": true,
                    "type": "integer"
                  },
                  "faiConfigId": {
                    "description": "The FAI configuration identifier.",
                    "type": "integer"
                  },
                  "inputSettings": {
                    "allOf": [
                      {
                        "additionalProperties": false,
                        "description": "Contains input or output settings for an FAI application.",
                        "properties": {
                          "enabled": {
                            "description": "Whether the settings are enabled.",
                            "type": "boolean"
                          },
                          "encoding": {
                            "description": "The encoding type for extracted data. Either `URL` or `NONE`.",
                            "enum": [
                              "URL",
                              "NONE"
                            ],
                            "type": "string"
                          },
                          "finalJsonPath": {
                            "description": "A final JSONPath expression for additional data processing.",
                            "maxLength": 1023,
                            "type": "string"
                          },
                          "finalJsonPathValue": {
                            "description": "The expected value at the final JSONPath location.",
                            "maxLength": 256,
                            "type": "string"
                          },
                          "jsonPath": {
                            "description": "A JSONPath expression to extract data from request or response bodies.",
                            "maxLength": 1023,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxLength": {
                            "description": "The maximum length of extracted data.",
                            "minimum": 1,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "enabled"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/fai-application-settings.yaml"
                        }
                      }
                    ],
                    "description": "Input data settings for the FAI application."
                  },
                  "name": {
                    "description": "The name you assigned to the FAI application.",
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  },
                  "outputSettings": {
                    "allOf": [
                      {
                        "additionalProperties": false,
                        "description": "Contains input or output settings for an FAI application.",
                        "properties": {
                          "enabled": {
                            "description": "Whether the settings are enabled.",
                            "type": "boolean"
                          },
                          "encoding": {
                            "description": "The encoding type for extracted data. Either `URL` or `NONE`.",
                            "enum": [
                              "URL",
                              "NONE"
                            ],
                            "type": "string"
                          },
                          "finalJsonPath": {
                            "description": "A final JSONPath expression for additional data processing.",
                            "maxLength": 1023,
                            "type": "string"
                          },
                          "finalJsonPathValue": {
                            "description": "The expected value at the final JSONPath location.",
                            "maxLength": 256,
                            "type": "string"
                          },
                          "jsonPath": {
                            "description": "A JSONPath expression to extract data from request or response bodies.",
                            "maxLength": 1023,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxLength": {
                            "description": "The maximum length of extracted data.",
                            "minimum": 1,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "enabled"
                        ],
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/fai-application-settings.yaml"
                        }
                      }
                    ],
                    "description": "Output data settings for the FAI application."
                  },
                  "sampleRate": {
                    "description": "The percentage of traffic to sample, from 1 to 100.",
                    "maximum": 100,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "tags": {
                    "description": "A list of tags associated with the FAI application.",
                    "items": {
                      "maxLength": 255,
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "updateDate": {
                    "description": "__Read-only__ The ISO 8601 timestamp when the FAI application was last updated.",
                    "readOnly": true,
                    "type": "string"
                  },
                  "updatedBy": {
                    "description": "__Read-only__ The user who last updated the FAI application.",
                    "readOnly": true,
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "sampleRate",
                  "accessHostnames",
                  "connectionType"
                ],
                "type": "object",
                "x-akamai": {
                  "file-path": "schemas/fai-application.yaml"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "accessEndpointPath": "/api/v1/chat",
                  "accessHostnames": [
                    "api.example.com",
                    "app.example.com"
                  ],
                  "connectionType": "HTTP",
                  "createDate": "2025-01-15T10:30:00Z",
                  "createdBy": "asingh",
                  "description": "Monitors AI traffic for this application",
                  "faiApplicationId": 12345,
                  "faiConfigId": 67890,
                  "inputSettings": {
                    "enabled": true,
                    "encoding": "NONE",
                    "jsonPath": "$.messages[-1].content",
                    "maxLength": 4096
                  },
                  "name": "My FAI Application",
                  "outputSettings": {
                    "enabled": true,
                    "encoding": "NONE",
                    "jsonPath": "$.choices[0].message.content",
                    "maxLength": 4096
                  },
                  "sampleRate": 50,
                  "tags": [
                    "production",
                    "ai-monitoring"
                  ],
                  "updateDate": "2025-01-20T14:45:00Z",
                  "updatedBy": "jsmith"
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "Contains details about an FAI application.",
                  "properties": {
                    "accessEndpointPath": {
                      "description": "The access endpoint path.",
                      "maxLength": 255,
                      "minLength": 1,
                      "type": "string"
                    },
                    "accessHostnames": {
                      "description": "A list of hostnames for data collection.",
                      "items": {
                        "maxLength": 255,
                        "minLength": 1,
                        "type": "string"
                      },
                      "minItems": 1,
                      "type": "array"
                    },
                    "connectionType": {
                      "description": "The connection protocol type. Either `HTTP` or `WEBSOCKET`.",
                      "enum": [
                        "HTTP",
                        "WEBSOCKET"
                      ],
                      "type": "string"
                    },
                    "createDate": {
                      "description": "__Read-only__ The ISO 8601 timestamp when the FAI application was created.",
                      "readOnly": true,
                      "type": "string"
                    },
                    "createdBy": {
                      "description": "__Read-only__ The user who created the FAI application.",
                      "readOnly": true,
                      "type": "string"
                    },
                    "description": {
                      "description": "A description of the FAI application.",
                      "maxLength": 255,
                      "minLength": 1,
                      "type": "string"
                    },
                    "envelopeProtocol": {
                      "description": "The WebSocket envelope protocol. Applicable when `connectionType` is `WEBSOCKET`. Supported values are `stomp`, `socketio`, `sockjs`, or `raw`.",
                      "enum": [
                        "stomp",
                        "socketio",
                        "sockjs",
                        "raw"
                      ],
                      "type": "string"
                    },
                    "faiApplicationId": {
                      "description": "__Read-only__ A unique identifier for the FAI application.",
                      "readOnly": true,
                      "type": "integer"
                    },
                    "faiConfigId": {
                      "description": "The FAI configuration identifier.",
                      "type": "integer"
                    },
                    "inputSettings": {
                      "allOf": [
                        {
                          "additionalProperties": false,
                          "description": "Contains input or output settings for an FAI application.",
                          "properties": {
                            "enabled": {
                              "description": "Whether the settings are enabled.",
                              "type": "boolean"
                            },
                            "encoding": {
                              "description": "The encoding type for extracted data. Either `URL` or `NONE`.",
                              "enum": [
                                "URL",
                                "NONE"
                              ],
                              "type": "string"
                            },
                            "finalJsonPath": {
                              "description": "A final JSONPath expression for additional data processing.",
                              "maxLength": 1023,
                              "type": "string"
                            },
                            "finalJsonPathValue": {
                              "description": "The expected value at the final JSONPath location.",
                              "maxLength": 256,
                              "type": "string"
                            },
                            "jsonPath": {
                              "description": "A JSONPath expression to extract data from request or response bodies.",
                              "maxLength": 1023,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxLength": {
                              "description": "The maximum length of extracted data.",
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "enabled"
                          ],
                          "type": "object",
                          "x-akamai": {
                            "file-path": "schemas/fai-application-settings.yaml"
                          }
                        }
                      ],
                      "description": "Input data settings for the FAI application."
                    },
                    "name": {
                      "description": "The name you assigned to the FAI application.",
                      "maxLength": 255,
                      "minLength": 1,
                      "type": "string"
                    },
                    "outputSettings": {
                      "allOf": [
                        {
                          "additionalProperties": false,
                          "description": "Contains input or output settings for an FAI application.",
                          "properties": {
                            "enabled": {
                              "description": "Whether the settings are enabled.",
                              "type": "boolean"
                            },
                            "encoding": {
                              "description": "The encoding type for extracted data. Either `URL` or `NONE`.",
                              "enum": [
                                "URL",
                                "NONE"
                              ],
                              "type": "string"
                            },
                            "finalJsonPath": {
                              "description": "A final JSONPath expression for additional data processing.",
                              "maxLength": 1023,
                              "type": "string"
                            },
                            "finalJsonPathValue": {
                              "description": "The expected value at the final JSONPath location.",
                              "maxLength": 256,
                              "type": "string"
                            },
                            "jsonPath": {
                              "description": "A JSONPath expression to extract data from request or response bodies.",
                              "maxLength": 1023,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxLength": {
                              "description": "The maximum length of extracted data.",
                              "minimum": 1,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "enabled"
                          ],
                          "type": "object",
                          "x-akamai": {
                            "file-path": "schemas/fai-application-settings.yaml"
                          }
                        }
                      ],
                      "description": "Output data settings for the FAI application."
                    },
                    "sampleRate": {
                      "description": "The percentage of traffic to sample, from 1 to 100.",
                      "maximum": 100,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "tags": {
                      "description": "A list of tags associated with the FAI application.",
                      "items": {
                        "maxLength": 255,
                        "minLength": 1,
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "updateDate": {
                      "description": "__Read-only__ The ISO 8601 timestamp when the FAI application was last updated.",
                      "readOnly": true,
                      "type": "string"
                    },
                    "updatedBy": {
                      "description": "__Read-only__ The user who last updated the FAI application.",
                      "readOnly": true,
                      "type": "string"
                    }
                  },
                  "required": [
                    "name",
                    "sampleRate",
                    "accessHostnames",
                    "connectionType"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/fai-application.yaml"
                  }
                }
              }
            },
            "description": "Successfully updated FAI application."
          },
          "400": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The request could not be understood by the server due to malformed syntax.",
                  "instance": "https://problems.luna.akamaiapis.net/appsec/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                  "status": 400,
                  "title": "Bad Request",
                  "type": "https://problems.luna.akamaiapis.net/appsec/error-types/BAD-REQUEST"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Details the errors you can receive.",
                  "properties": {
                    "detail": {
                      "description": "The detailed error message.",
                      "type": "string"
                    },
                    "fieldErrors": {
                      "description": "Pointers to fields for which invalid input was provided, whose values are messages detailing the reason this input was invalid for this field.",
                      "type": "object"
                    },
                    "instance": {
                      "description": "The non-referenceable URI that indicates the error instance.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code.",
                      "example": 404,
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "example": "Not Found",
                      "type": "string"
                    },
                    "type": {
                      "description": "The URL for the error type.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-types/NOT-FOUND",
                      "type": "string"
                    }
                  },
                  "required": [
                    "title",
                    "type",
                    "detail",
                    "instance",
                    "status"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem-details.yaml"
                  }
                }
              }
            },
            "description": "[Bad request](ref:400). Invalid request body or URL parameter input.",
            "x-akamai": {
              "file-path": "errors/400.yaml"
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "You do not have the necessary access to perform this operation or the requested resource cannot be modified",
                  "instance": "https://problems.luna.akamaiapis.net/appsec/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                  "status": 403,
                  "title": "Forbidden",
                  "type": "https://problems.luna.akamaiapis.net/appsec-resource/error-types/ACCESS-DENIED"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Details the errors you can receive.",
                  "properties": {
                    "detail": {
                      "description": "The detailed error message.",
                      "type": "string"
                    },
                    "fieldErrors": {
                      "description": "Pointers to fields for which invalid input was provided, whose values are messages detailing the reason this input was invalid for this field.",
                      "type": "object"
                    },
                    "instance": {
                      "description": "The non-referenceable URI that indicates the error instance.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code.",
                      "example": 404,
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "example": "Not Found",
                      "type": "string"
                    },
                    "type": {
                      "description": "The URL for the error type.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-types/NOT-FOUND",
                      "type": "string"
                    }
                  },
                  "required": [
                    "title",
                    "type",
                    "detail",
                    "instance",
                    "status"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem-details.yaml"
                  }
                }
              }
            },
            "description": "[Forbidden](ref:403). You don't have access to FAI applications in this security configuration.",
            "x-akamai": {
              "file-path": "errors/403.yaml"
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The requested resource is not found",
                  "instance": "https://problems.luna.akamaiapis.net/appsec/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                  "status": 404,
                  "title": "Not Found",
                  "type": "https://problems.luna.akamaiapis.net/appsec/error-types/NOT-FOUND"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Details the errors you can receive.",
                  "properties": {
                    "detail": {
                      "description": "The detailed error message.",
                      "type": "string"
                    },
                    "fieldErrors": {
                      "description": "Pointers to fields for which invalid input was provided, whose values are messages detailing the reason this input was invalid for this field.",
                      "type": "object"
                    },
                    "instance": {
                      "description": "The non-referenceable URI that indicates the error instance.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code.",
                      "example": 404,
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "example": "Not Found",
                      "type": "string"
                    },
                    "type": {
                      "description": "The URL for the error type.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-types/NOT-FOUND",
                      "type": "string"
                    }
                  },
                  "required": [
                    "title",
                    "type",
                    "detail",
                    "instance",
                    "status"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem-details.yaml"
                  }
                }
              }
            },
            "description": "[Not found](ref:404). The security configuration version or FAI application wasn't found.",
            "x-akamai": {
              "file-path": "errors/404.yaml"
            }
          }
        },
        "summary": "Modify an FAI application",
        "tags": [
          "FAI applications"
        ],
        "x-akamai": {
          "labels": [
            "All products"
          ]
        }
      },
      "parameters": [
        {
          "description": "A unique identifier for each configuration.",
          "in": "path",
          "name": "configId",
          "required": true,
          "schema": {
            "example": 77653,
            "format": "int64",
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/config-id-path.yaml"
          }
        },
        {
          "description": "A unique identifier for each version of a configuration.",
          "in": "path",
          "name": "versionNumber",
          "required": true,
          "schema": {
            "example": 25,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/version-number-path.yaml"
          }
        },
        {
          "description": "A unique identifier for each FAI application.",
          "in": "path",
          "name": "faiApplicationId",
          "required": true,
          "schema": {
            "example": 12345,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/fai-application-id-path.yaml"
          }
        }
      ],
      "x-akamai": {
        "file-path": "paths/config-fai-application.yaml",
        "path-info": "/configs/{configId}/versions/{versionNumber}/fai-applications/{faiApplicationId}"
      }
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/appsec/v1"
    }
  ],
  "tags": [
    {
      "description": "Manage your Firewall for AI (FAI) applications. FAI applications define how AI traffic is monitored and inspected for a security configuration version.",
      "name": "FAI applications"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "01-configuration.yaml"
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
```

# Sibling pages

* [Create an FAI application](https://techdocs.akamai.com/application-security/reference/post-fai-applications.md)
* [List FAI applications](https://techdocs.akamai.com/application-security/reference/get-fai-applications.md)
* [Get an FAI application](https://techdocs.akamai.com/application-security/reference/get-fai-application.md)
* [Remove an FAI application](https://techdocs.akamai.com/application-security/reference/delete-fai-application.md)