set_survey_properties
Configure survey settings by updating properties such as title, expiration date, or access control using the specified survey ID. Simplify survey management within LimeSurvey.
Instructions
Set LimeSurvey survey properties.
Args:
sid: The survey ID.
properties: The properties to set.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| properties | Yes | ||
| sid | Yes |
Implementation Reference
- main.py:425-435 (handler)The @mcp.tool()-decorated handler function for the 'set_survey_properties' MCP tool. It accepts a survey ID (sid: int) and properties (dict[str, Any]), uses a context-managed client from get_client() to call client.set_survey_properties(sid, properties), and returns a boolean indicating success.@mcp.tool() def set_survey_properties(sid: int, properties: dict[str, Any]) -> bool: """Set LimeSurvey survey properties. Args: sid: The survey ID. properties: The properties to set. """ with get_client() as client: return client.set_survey_properties(sid, properties)