---
updatedAt: 2026-06-26T23:36:44.000Z
agentTools:
  projectIndex: https://docs.smartsurvey.io/llms.txt
---

# Insert

Inserts a new survey folder to the account of the api key

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "SS Public API",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://{host}/v2",
      "description": "Select the host for the region your account's data is stored in.",
      "variables": {
        "host": {
          "default": "api.smartsurvey.io",
          "description": "The regional hostname for your account.",
          "enum": [
            "api.smartsurvey.io",
            "api-eu.smartsurvey.io",
            "api-us.smartsurvey.io"
          ]
        }
      }
    }
  ],
  "paths": {
    "/survey-folders": {
      "post": {
        "tags": [
          "SurveyFolders"
        ],
        "summary": "Insert",
        "description": "Inserts a new survey folder to the account of the api key",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyFolders.SurveyFolderUpdateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyFolders.SurveyFolderUpdateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyFolders.SurveyFolderUpdateRequest"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyFolders.SurveyFolderUpdateRequest"
              }
            },
            "text/xml": {
              "schema": {
                "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyFolders.SurveyFolderUpdateRequest"
              }
            },
            "application/*+xml": {
              "schema": {
                "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyFolders.SurveyFolderUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyFolders.SurveyFolderResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyFolders.SurveyFolderResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyFolders.SurveyFolderResponse"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyFolders.SurveyFolderResponse"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/SmartSurvey.Public.API.Models.SurveyFolders.SurveyFolderResponse"
                }
              }
            }
          },
          "400": {
            "description": "Request validation errors",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.AspNetCore.Mvc.ValidationProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Microsoft.AspNetCore.Mvc.ValidationProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when\r\ndereferenced, it provide human-readable documentation for the problem type\r\n(e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be\r\n\"about:blank\".",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence\r\nof the problem, except for purposes of localization(e.g., using proactive content negotiation;\r\nsee[RFC7231], Section 3.4).",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "description": "A human-readable explanation specific to this occurrence of the problem.",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "description": "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",
            "nullable": true
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nullable": true
          }
        },
        "additionalProperties": {}
      },
      "SmartSurvey.Public.API.Models.SurveyFolders.SurveyFolderResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The survey folder id",
            "format": "int32"
          },
          "type": {
            "type": "string",
            "description": "The type of folder",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "The title of the folder",
            "nullable": true
          },
          "assignable": {
            "type": "boolean",
            "description": "Whether surveys can be filed into this folder. False for the template and archived folders that\r\nare managed in the SmartSurvey app, and for folders that are no longer active; those cannot hold\r\nsurveys moved through the API."
          },
          "href": {
            "type": "string",
            "description": "A hyperlink to the folder",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A dto for survey folder responses"
      },
      "SmartSurvey.Public.API.Models.SurveyFolders.SurveyFolderUpdateRequest": {
        "type": "object",
        "properties": {
          "title": {
            "maxLength": 100,
            "type": "string",
            "description": "The title for the folder",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A request object for adding or updating a survey folder"
      }
    },
    "securitySchemes": {
      "Basic": {
        "type": "http",
        "description": "Basic Authorization",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "Basic": []
    }
  ]
}
```