# /portal/{portalId}/form/{formId}

Edit the portal form

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Formstack API v2025.0",
    "version": "0.0.4"
  },
  "servers": [
    {
      "url": "https://www.formstack.com/api/v2025",
      "description": "Production server"
    },
    {
      "url": "https://staging-formstack.com/api/v2025",
      "description": "Staging server"
    },
    {
      "url": "https://dev-formstack.com/api/v2025",
      "description": "Development server"
    }
  ],
  "paths": {
    "/portal/{portalId}/form/{formId}": {
      "put": {
        "tags": [
          "Portals",
          "Classic"
        ],
        "description": "Edit the portal form",
        "operationId": "editPortalForm",
        "parameters": [
          {
            "name": "portalId",
            "in": "path",
            "description": "Portal ID",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "formId",
            "in": "path",
            "description": "Form ID",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EditPortalFormInputApiDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalFormApiDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PortalDetailsDeadlineApiDto": {
        "title": "Portal details deadline",
        "description": "Portal details deadline response",
        "properties": {
          "frequency": {
            "description": "How often the deadline recurs (daily, weekly, monthly)",
            "type": "string",
            "nullable": true
          },
          "dueTime": {
            "description": "Time when the deadline is due",
            "type": "string",
            "nullable": true
          },
          "earlyReminderHours": {
            "description": "Number of hours before deadline to send early reminder",
            "type": "integer",
            "nullable": true
          },
          "dueDay": {
            "description": "Day when the deadline is due (for weekly/monthly frequencies)",
            "type": "string",
            "nullable": true
          },
          "earlyReminderDays": {
            "description": "Number of days before deadline to send early reminder",
            "type": "integer",
            "nullable": true
          },
          "dueDate": {
            "description": "Due date of the portal deadline",
            "type": "string",
            "nullable": true
          }
        },
        "type": "object"
      },
      "PortalFormApiDto": {
        "title": "Portal Form",
        "description": "Portal form response",
        "properties": {
          "id": {
            "description": "Unique identifier of the portal form",
            "type": "integer",
            "nullable": false
          },
          "name": {
            "description": "Name of the portal form",
            "type": "string",
            "nullable": true
          },
          "completedUserCount": {
            "description": "Number of users who have completed the portal form",
            "type": "integer",
            "nullable": true
          },
          "description": {
            "description": "Description of the portal form",
            "type": "string",
            "nullable": true
          },
          "formUrl": {
            "description": "URL of the portal form",
            "type": "string",
            "nullable": true
          },
          "formId": {
            "description": "Form ID of the portal form",
            "type": "integer",
            "nullable": true
          },
          "deadline": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PortalDetailsDeadlineApiDto"
              }
            ],
            "nullable": true,
            "description": "Deadline configuration for the portal form"
          },
          "usersPerformance": {
            "description": "Performance data for users in the portal form",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PortalUserPerformanceApiDto"
            },
            "nullable": true
          }
        },
        "type": "object"
      },
      "PortalUserPerformanceApiDto": {
        "title": "Portal User Performance",
        "description": "Portal user performance response",
        "properties": {
          "id": {
            "description": "Unique identifier of the portal user",
            "type": "integer",
            "nullable": false
          },
          "lastSubmissionId": {
            "description": "ID of the user's most recent submission",
            "type": "integer",
            "nullable": true
          },
          "formCompletionDate": {
            "description": "Date when the user completed the form",
            "type": "string",
            "nullable": true
          }
        },
        "type": "object"
      },
      "EditPortalFormInputApiDto": {
        "title": "Edit Portal Form",
        "description": "Edit Portal Form request",
        "required": [
          "name",
          "formId"
        ],
        "properties": {
          "name": {
            "description": "Name of the portal form",
            "type": "string",
            "nullable": false
          },
          "formId": {
            "description": "FormId of the portal form",
            "type": "string",
            "nullable": false
          },
          "description": {
            "description": "Description of the portal form",
            "type": "string",
            "nullable": true
          },
          "notifyUsers": {
            "description": "Flag to notify users",
            "type": "string",
            "nullable": true
          },
          "deadline": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PortalRequestDeadlineApiDto"
              }
            ],
            "nullable": true,
            "description": "Deadline of the form"
          }
        },
        "type": "object"
      },
      "PortalRequestDeadlineApiDto": {
        "title": "Portal Request Deadline",
        "description": "Portal Deadline request",
        "properties": {
          "frequency": {
            "description": "Frequency of the portal deadline",
            "type": "string",
            "nullable": true
          },
          "dueTime": {
            "description": "Due time of the portal deadline",
            "type": "string",
            "nullable": true
          },
          "earlyReminderHours": {
            "description": "Early reminder hours of the portal deadline",
            "type": "integer",
            "nullable": true
          },
          "dueDay": {
            "description": "Due day of the portal deadline",
            "type": "string",
            "nullable": true
          },
          "earlyReminderDays": {
            "description": "Early reminder days of the portal deadline",
            "type": "integer",
            "nullable": true
          },
          "dueDate": {
            "description": "Due date of the portal deadline",
            "type": "string",
            "nullable": true
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    {
      "name": "Portals",
      "description": "Portals provide a branded hub where users access a curated collection of forms. Use these endpoints to manage a portal and its forms and users—copying (to create new portals), editing, and deleting portals, adding, editing, and removing portal forms, managing portal users, and setting or removing the portal avatar."
    },
    {
      "name": "Classic",
      "description": "Classic"
    }
  ]
}
```