update_survey
ActiveTool of FavCRM
declared in 1.0.0
Update a survey draft or publishing configuration. Use questionBlocks to replace the ordered form block list.
Parameters schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"surveyId"
],
"properties": {
"slug": {
"type": "string",
"description": "URL slug"
},
"title": {
"type": "string",
"minLength": 1,
"description": "Survey title"
},
"openAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional ISO datetime when the survey opens"
},
"status": {
"enum": [
"draft",
"published",
"closed",
"archived"
],
"type": "string",
"description": "Survey status"
},
"closeAt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional ISO datetime when the survey closes"
},
"settings": {
"type": "object",
"description": "Survey settings such as allowMultipleResponses, collectEmail, collectIpAddress, requireAuthentication, showProgress, successMessage",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"surveyId": {
"type": "string",
"description": "Survey ID"
},
"visibility": {
"enum": [
"public",
"members_only",
"token_only",
"private"
],
"type": "string",
"description": "Survey access mode"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Survey description"
},
"questionBlocks": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "Ordered survey question blocks"
}
}
}Parent server
FavCRM
https://github.com/favcrm/mcp
1/7 registries