{"openapi":"3.0.0","paths":{"/spaces":{"post":{"operationId":"SpacesController_create","summary":"Create a new space from a template","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSpaceDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceCreationResult"}}}}},"tags":["Spaces"],"security":[{"bearer":[]}]},"get":{"operationId":"SpacesController_list","summary":"List all spaces with filtering and pagination","parameters":[{"name":"thirdPartyId","required":false,"in":"query","description":"External system-specific corresponding entity ID (e.g. Lead ID, Opportunity ID, etc.)","example":"1954687215","schema":{"type":"string"}},{"name":"thirdPartyEntityType","required":false,"in":"query","description":"External system-specific entity type (e.g. Lead, Opportunity, etc.)","example":"Opportunity","schema":{"type":"string"}},{"name":"groupBy","required":false,"in":"query","description":"Internal property key to group spaces by (for Kanban view)","example":"status","schema":{"type":"string"}},{"name":"groupValue","required":false,"in":"query","description":"Specific internal property value to filter by (used with groupBy for per-column pagination)","example":"In Progress","schema":{"type":"string"}},{"name":"spaceType","required":false,"in":"query","schema":{"enum":["all","active","archived"],"type":"string"}},{"name":"spaceName","required":false,"in":"query","schema":{"type":"string"}},{"name":"ownerIds","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"spaceIds","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"mapStatus","required":false,"in":"query","schema":{"enum":["notCreated","notStarted","stalled","inProgress","overdue","completed"],"type":"string"}},{"name":"templateIds","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"templateRootNodeIds","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"spaceRootNodeIds","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"slugs","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"page","required":false,"in":"query","schema":{"default":1,"type":"number"}},{"name":"pageSize","required":false,"in":"query","schema":{"default":25,"type":"number"}},{"name":"includeActionPlanSummaryFields","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"includeScores","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"includeActivitiesCount","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"filterToInternalPropertiesOnly","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"includeCustomProperties","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"teamIds","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"collaboratorAccess","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"createdAfter","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"updatedAfter","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"myTeamAccess","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"companyTeamAccess","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"includeActionPlanKeyDetails","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"includeForms","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"formCompletions","required":false,"in":"query","schema":{"enum":["none","atLeastOne"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["Spaces"],"security":[{"bearer":[]}]}},"/spaces/{spaceSlug}":{"patch":{"operationId":"SpacesController_update","summary":"Update a space","description":"Only allows reassigning the space to another owner, or setting it as archived.","parameters":[{"name":"spaceSlug","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSpaceDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}}},"tags":["Spaces"],"security":[{"bearer":[]}]},"delete":{"operationId":"SpacesController_delete","summary":"Delete a space","description":"Deletes a space by its Slug.","parameters":[{"name":"spaceSlug","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Spaces"],"security":[{"bearer":[]}]}},"/spaces/{id}/integration-id-mappings":{"post":{"operationId":"SpacesController_addIntegrationIdMapping","summary":"Add integration ID mappings to a space","description":"Adds integration id mappings to a space, e.g. connecting a space to a HubSpot deal. Note: For HubSpot integrations, the thirdPartyId field is prefixed with the portal ID in the format {portalId}_{objectId}. If a mapping with the same spaceId, thirdParty, thirdPartyId, and thirdPartyEntityType already exists, it will be skipped without error.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceIntegrationIdMappingsDto"}}}},"responses":{"204":{"description":""}},"tags":["Spaces"],"security":[{"bearer":[]}]},"get":{"operationId":"SpacesController_getIntegrationIdMappings","summary":"Get integration ID mappings for a space","description":"Get integration id mappings of a space. Note: For HubSpot integrations, the thirdPartyId field is prefixed with the portal ID in the format {portalId}_{objectId}.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Spaces"],"security":[{"bearer":[]}]},"delete":{"operationId":"SpacesController_deleteIntegrationIdMappings","summary":"Delete integration ID mappings from a space","description":"Deletes integration id mappings from a space based on the given criteria. Note: For HubSpot integrations, the thirdPartyId field is prefixed with the portal ID in the format {portalId}_{objectId}.","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSpaceIntegrationIdMappingDto"}}}},"responses":{"200":{"description":""}},"tags":["Spaces"],"security":[{"bearer":[]}]}},"/spaces/async":{"post":{"operationId":"SpacesController_createAsync","summary":"Enqueue async space creation from a template","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSpaceDto"}}}},"responses":{"201":{"description":""}},"tags":["Spaces"],"security":[{"bearer":[]}]}},"/spaces/async/active-requests":{"get":{"operationId":"SpacesController_getActiveAsyncRequests","summary":"Get all non-terminal async space creation requests for the current user","parameters":[],"responses":{"200":{"description":""}},"tags":["Spaces"],"security":[{"bearer":[]}]}},"/spaces/async/{id}/status":{"get":{"operationId":"SpacesController_getAsyncStatus","summary":"Get status of an async space creation request","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Spaces"],"security":[{"bearer":[]}]}},"/spaces/{spaceSlug}/custom-properties":{"get":{"operationId":"SpaceCustomPropertiesController_spaceCustomProperties","summary":"List custom properties for a space","description":"Lists all custom properties for a space.","parameters":[{"name":"spaceSlug","required":true,"in":"path","schema":{"type":"string"}},{"name":"includeHidden","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"An array of space custom properties.","content":{"application/json":{"schema":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/SingleValueSpaceCustomPropertyResponseDto"},{"$ref":"#/components/schemas/MultiValueSpaceCustomPropertyResponseDto"}],"discriminator":{"propertyName":"type"}}}}}}},"tags":["Spaces"],"security":[{"bearer":[]}]}},"/spaces/{spaceSlug}/custom-properties/{key}":{"patch":{"operationId":"SpaceCustomPropertiesController_updateCustomPropertyByKey","summary":"Update a custom property by key","description":"Allows a space custom property to be updated by key.","parameters":[{"name":"spaceSlug","required":true,"in":"path","schema":{"type":"string"}},{"name":"key","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"The custom property data to update. Must include `name` and `value`. The value type is determined based on tenant-level custom property definitions.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The name of the custom property","example":"country_code"},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"array","items":{"type":"string"}}],"description":"The value(s) for the custom property","examples":{"singleString":{"value":"US","description":"Single string value for single-string properties"},"singleNumber":{"value":1000,"description":"Single numeric value for numeric properties"},"multipleStrings":{"value":["US","CA"],"description":"Array of strings for multiple-string properties"}}}},"required":["name","value"]}}}},"responses":{"200":{"description":"The updated custom property.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/SingleValueSpaceCustomPropertyResponseDto"},{"$ref":"#/components/schemas/MultiValueSpaceCustomPropertyResponseDto"}],"discriminator":{"propertyName":"type"}}}}}},"tags":["Spaces"],"security":[{"bearer":[]}]}},"/forms":{"get":{"operationId":"FormController_getForms","summary":"Get forms list","description":"Retrieves a paginated list of forms with optional filtering parameters","parameters":[{"required":false,"description":"Filter forms by space IDs","name":"spaceIds","in":"query","schema":{"type":"array","items":{"type":"array"}}},{"required":false,"description":"Filter forms by space root node IDs","name":"spaceRootNodeIds","in":"query","schema":{"type":"array","items":{"type":"array"}}},{"required":false,"description":"Page number for pagination","name":"page","in":"query","schema":{"type":"number"}},{"required":false,"description":"Number of items per page","name":"itemsPerPage","in":"query","schema":{"type":"number"}},{"required":false,"description":"Include deleted forms","name":"includeDeleted","in":"query","schema":{"type":"boolean"}},{"required":false,"description":"Include forms that are not completed","name":"includeNotCompleted","in":"query","schema":{"type":"boolean"}},{"required":false,"description":"Filter forms completed after specified date, e.g. 2025-01-01T00:00:00.000Z","name":"completedAfter","in":"query","schema":{"type":"string"}},{"required":false,"description":"Include form submissions with the forms","name":"includeSubmissions","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Successfully retrieved list of forms","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormListResponse"}}}},"400":{"description":"Bad Request - Failed to process the request due to client error"},"401":{"description":"Unauthorized - Authentication token is missing or invalid"},"403":{"description":"Forbidden - User does not have required permissions"}},"tags":["Forms"],"security":[{"bearer":[]}]}},"/forms/{formNodeId}/submissions":{"get":{"operationId":"FormController_getFormSubmissions","summary":"Get submissions for a form","parameters":[{"name":"formNodeId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"tags":["Forms"],"security":[{"bearer":[]}]},"post":{"operationId":"FormController_createOrUpdateFormSubmission","summary":"Create or update a form submission","parameters":[{"name":"formNodeId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":""}},"tags":["Forms"],"security":[{"bearer":[]}]}},"/forms/{formNodeId}/submissions/{submissionId}/revert":{"post":{"operationId":"FormController_revertFormSubmission","summary":"Revert a form submission to its previous state","parameters":[{"name":"formNodeId","required":true,"in":"path","schema":{"type":"string"}},{"name":"submissionId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":""}},"tags":["Forms"],"security":[{"bearer":[]}]}}},"info":{"title":"Valuecase Public API","description":"\nBuild powerful integrations with the Valuecase API. Create spaces, manage forms, and automate your Valuecase workflows.\n\n### Getting started\n- [Read the API guide](https://help.valuecase.com/en/articles/521957-valuecase-api) in our help center\n- Authenticate with a JWT – see the [authentication documentation](https://app.valuecase.com/dashboard/api/docs)\n- [Get your API key](https://app.valuecase.com/dashboard/administration/developer) in your administration settings\n    ","version":"1.0","contact":{}},"tags":[],"servers":[{"url":"/spaces/api"}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Many endpoints are secured by a JWT check. The JWT must be present as the \"Authorization\" header. The value format is \"Bearer {jwt}. You can request a new Token by contacting Valuecase support\"."}},"schemas":{"SpaceIntegrationAttribute":{"type":"object","properties":{"thirdParty":{"type":"string","enum":["HubSpot"]},"attributeName":{"type":"string"},"attributeValue":{"type":"string"}},"required":["thirdParty","attributeName","attributeValue"]},"SpaceIntegrationIdMappingDto":{"type":"object","properties":{"thirdParty":{"type":"string","enum":["Custom"]},"thirdPartyEntityType":{"type":"string","description":"External system-specific entity type (e.g. Lead, Opportunity, etc.)","example":"Lead"},"thirdPartyId":{"type":"string","description":"External system-specific corresponding entity ID (e.g. Deal ID, Opportunity ID, etc.). Note: For HubSpot integrations, this field is prefixed with the portal ID in the format {portalId}_{objectId}.","example":"1954687215"},"thirdPartyOrganizationId":{"type":"string","description":"External system-specific organization ID (e.g. Salesforce Organization ID)","example":"1954687215"}},"required":["thirdParty","thirdPartyEntityType","thirdPartyId"]},"SpaceDto":{"type":"object","properties":{"companyName":{"type":"string","example":"Example Inc."},"companyWebsite":{"type":"string","example":"https://example.com"},"contactEmail":{"type":"string","example":"contact@example.com"},"contactFirstName":{"type":"string","example":"First"},"contactLastName":{"type":"string","example":"Last"},"companyLogoUrl":{"type":"string","example":"https://example.com/logo.png"},"blockNavigationEnabled":{"type":"boolean"},"commentsOpenByDefault":{"type":"boolean"}},"required":["companyName","contactFirstName","contactLastName"]},"CreateSpaceDto":{"type":"object","properties":{"templateId":{"type":"string","description":"Valuecase Template ID to use for this Space","example":"ze3ljqvzwaw8ufyitv6jdq08"},"ownerId":{"type":"string","description":"Valuecase User ID to be set as Space Owner (if known, otherwise use the ownerEmail property)","example":null},"ownerEmail":{"type":"string","description":"If an ownerId can not be passed, this parameter can be used instead","example":"owner@example.com"},"integrationAttributes":{"deprecated":true,"type":"array","items":{"$ref":"#/components/schemas/SpaceIntegrationAttribute"}},"integrationIds":{"description":"An ID in an external system (such as ID of a corresponding entity in a CRM) can be added here","type":"array","items":{"$ref":"#/components/schemas/SpaceIntegrationIdMappingDto"}},"customProperties":{"type":"array","description":"Additional custom properties can be added here. The type is determined based on tenant-level custom property definitions.","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the custom property","example":"country_code"},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"array","items":{"type":"string"}}],"description":"The value(s) for the custom property","examples":{"singleString":{"value":"US","description":"Single string value for single-string properties"},"singleNumber":{"value":1000,"description":"Single numeric value for numeric properties"},"multipleStrings":{"value":["US","CA"],"description":"Array of strings for multiple-string properties"}}}},"required":["name","value"]},"example":[{"name":"country_code","value":"DE"},{"name":"departments","values":["Sales","Marketing"]}]},"teamIds":{"description":"Ids of teams which can access this Space. If not provided, the Space will be accessible to everyone in the Tenant.","example":["team1","team2"],"type":"array","items":{"type":"string"}},"data":{"$ref":"#/components/schemas/SpaceDto"}},"required":["templateId","data"]},"SpaceCreationResult":{"type":"object","properties":{"id":{"type":"string","example":"yp8gw6jc85sg3fyefg1yept7"},"slug":{"type":"string","example":"tesla"},"createdAt":{"format":"date-time","type":"string"},"ownerId":{"type":"string","example":"valuecase|99ad6b1a-c49d-4b51-8d39-e9590687b50b"},"url":{"type":"string","example":"https://share.valuecase.com/spaces/demo?token=123"},"authToken":{"type":"string","description":"This auth token is used to authorize external access to the space (e.g. when you send it to the end-user), and should be passed as a 'token' query parameter to the space URL. For example: https://share.valuecase.com/spaces/demo?token=123","example":"6e52a46c8f1"}},"required":["id","slug","createdAt","ownerId","url","authToken"]},"UpdateSpaceDto":{"type":"object","properties":{"ownerId":{"type":"string"},"archived":{"type":"boolean"},"disableShareSpace":{"type":"boolean"},"disableDownloads":{"type":"boolean"}},"required":["ownerId"]},"SpaceIntegrationIdMappingsDto":{"type":"object","properties":{"integrationIdMappings":{"description":"Used to attach ids from integrations to the space","type":"array","items":{"$ref":"#/components/schemas/SpaceIntegrationIdMappingDto"}}},"required":["integrationIdMappings"]},"DeleteSpaceIntegrationIdMappingDto":{"type":"object","properties":{"thirdParty":{"type":"string","enum":["HubSpot","Salesforce","Pipedrive","Custom"],"description":"The third party integration type; one of: HubSpot, Salesforce, Pipedrive, Custom","example":"HubSpot"},"thirdPartyEntityType":{"type":"string","description":"External system-specific entity type (e.g. Deal, Opportunity, etc.)","example":"Deal"},"thirdPartyId":{"type":"string","description":"External system-specific corresponding entity ID. Note: For HubSpot integrations, this field is prefixed with the portal ID in the format {portalId}_{objectId}.","example":"1954687215"},"thirdPartyOrganizationId":{"type":"string","description":"External system-specific organization ID (e.g. Salesforce Organization ID)","example":"1954687215"}},"required":["thirdParty","thirdPartyEntityType","thirdPartyId","thirdPartyOrganizationId"]},"SingleValueSpaceCustomPropertyResponseDto":{"type":"object","properties":{"name":{"type":"string","description":"Additional data property name","example":"country_code"},"type":{"type":"string","default":"SINGLE_VALUE","enum":["SINGLE_VALUE"],"description":"Specifies property type as SINGLE_VALUE","example":"SINGLE_VALUE"},"value":{"description":"Single string value","oneOf":[{"type":"string"},{"type":"number"}],"example":"US"},"id":{"type":"string","description":"ID of the custom property"},"managedByWorkflowId":{"type":"string","description":"ID of the workflow that manages this property"},"hidden":{"type":"boolean","description":"Whether this is a hidden row (audit-only, e.g. baked markdown content). Only returned when includeHidden is set."}},"required":["name","type","value"]},"MultiValueSpaceCustomPropertyResponseDto":{"type":"object","properties":{"name":{"type":"string","description":"Additional data property name","example":"associated_users"},"type":{"type":"string","enum":["MULTI_VALUE"],"description":"Specifies property type as MULTI_VALUE","example":"MULTI_VALUE"},"value":{"type":"array","description":"Multiple values as an array of strings","items":{"type":"string"},"example":["user1@example.com","user2@example.com"]},"id":{"type":"string","description":"ID of the custom property"},"managedByWorkflowId":{"type":"string","description":"ID of the workflow that manages this property"},"hidden":{"type":"boolean","description":"Whether this is a hidden row (audit-only, e.g. baked markdown content). Only returned when includeHidden is set."}},"required":["name","type","value"]},"FormListQueryDto":{"type":"object","properties":{"spaceIds":{"description":"Filter forms by space IDs","items":{"type":"array"},"type":"array"},"spaceRootNodeIds":{"description":"Filter forms by space root node IDs","items":{"type":"array"},"type":"array"},"page":{"type":"number","description":"Page number for pagination"},"itemsPerPage":{"type":"number","description":"Number of items per page"},"includeDeleted":{"type":"boolean","description":"Include deleted forms"},"includeNotCompleted":{"type":"boolean","description":"Include forms that are not completed"},"completedAfter":{"type":"string","description":"Filter forms completed after specified date, e.g. 2025-01-01T00:00:00.000Z"},"includeSubmissions":{"type":"boolean","description":"Include form submissions with the forms"}}},"Form":{"type":"object","properties":{"id":{"type":"string"},"tenantId":{"type":"string"},"spaceId":{"type":"string"},"title":{"type":"string"},"description":{"type":"string","nullable":true},"deletedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time","nullable":true},"completedBy":{"type":"string","nullable":true},"questions":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/ShortTextQuestion"},{"$ref":"#/components/schemas/LongTextQuestion"},{"$ref":"#/components/schemas/SingleSelectQuestion"},{"$ref":"#/components/schemas/MultiSelectQuestion"},{"$ref":"#/components/schemas/FileUploadQuestion"}]}},"hidden":{"type":"boolean"},"hiddenByAncestor":{"type":"boolean"},"nodeId":{"type":"string"}},"required":["id","tenantId","spaceId","title","description","deletedAt","createdAt","updatedAt","completedAt","completedBy","questions","hidden","hiddenByAncestor","nodeId"]},"ShortTextQuestion":{"type":"object","properties":{"id":{"type":"string"},"formId":{"type":"string"},"question":{"type":"string"},"description":{"type":"string","nullable":true},"options":{"type":"array","items":{"type":"string"}},"sortOrder":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hidden":{"type":"boolean"},"hiddenByAncestor":{"type":"boolean"},"nodeId":{"type":"string"},"type":{"type":"string","enum":["BLOCK_FORM_QUESTION_SHORT_TEXT"]},"answer":{"type":"string","nullable":true}},"required":["id","formId","question","description","options","sortOrder","createdAt","updatedAt","hidden","hiddenByAncestor","nodeId","type","answer"]},"LongTextQuestion":{"type":"object","properties":{"id":{"type":"string"},"formId":{"type":"string"},"question":{"type":"string"},"description":{"type":"string","nullable":true},"options":{"type":"array","items":{"type":"string"}},"sortOrder":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hidden":{"type":"boolean"},"hiddenByAncestor":{"type":"boolean"},"nodeId":{"type":"string"},"type":{"type":"string","enum":["BLOCK_FORM_QUESTION_LONG_TEXT"]},"answer":{"type":"string","nullable":true}},"required":["id","formId","question","description","options","sortOrder","createdAt","updatedAt","hidden","hiddenByAncestor","nodeId","type","answer"]},"SingleSelectQuestion":{"type":"object","properties":{"id":{"type":"string"},"formId":{"type":"string"},"question":{"type":"string"},"description":{"type":"string","nullable":true},"options":{"type":"array","items":{"type":"string"}},"sortOrder":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hidden":{"type":"boolean"},"hiddenByAncestor":{"type":"boolean"},"nodeId":{"type":"string"},"type":{"type":"string","enum":["BLOCK_FORM_QUESTION_SINGLE_SELECT"]},"answer":{"type":"string","nullable":true}},"required":["id","formId","question","description","options","sortOrder","createdAt","updatedAt","hidden","hiddenByAncestor","nodeId","type","answer"]},"MultiSelectQuestion":{"type":"object","properties":{"id":{"type":"string"},"formId":{"type":"string"},"question":{"type":"string"},"description":{"type":"string","nullable":true},"options":{"type":"array","items":{"type":"string"}},"sortOrder":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hidden":{"type":"boolean"},"hiddenByAncestor":{"type":"boolean"},"nodeId":{"type":"string"},"type":{"type":"string","enum":["BLOCK_FORM_QUESTION_MULTI_SELECT"]},"answer":{"type":"string","nullable":true}},"required":["id","formId","question","description","options","sortOrder","createdAt","updatedAt","hidden","hiddenByAncestor","nodeId","type","answer"]},"FileAnswer":{"type":"object","properties":{"fileName":{"type":"string"},"mimeType":{"type":"string"},"s3ObjectUrl":{"type":"string"}},"required":["fileName","mimeType","s3ObjectUrl"]},"FileUploadQuestion":{"type":"object","properties":{"id":{"type":"string"},"formId":{"type":"string"},"question":{"type":"string"},"description":{"type":"string","nullable":true},"options":{"type":"array","items":{"type":"string"}},"sortOrder":{"type":"number"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"hidden":{"type":"boolean"},"hiddenByAncestor":{"type":"boolean"},"nodeId":{"type":"string"},"type":{"type":"string","enum":["BLOCK_FORM_QUESTION_FILE_UPLOAD"]},"answer":{"nullable":true,"type":"array","items":{"$ref":"#/components/schemas/FileAnswer"}}},"required":["id","formId","question","description","options","sortOrder","createdAt","updatedAt","hidden","hiddenByAncestor","nodeId","type","answer"]},"FormListResponse":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Form"}},"currentPage":{"type":"number"},"itemsPerPage":{"type":"number"},"totalPages":{"type":"number"},"totalItems":{"type":"number"},"itemsExist":{"type":"boolean"}},"required":["items","currentPage","itemsPerPage","totalPages","totalItems","itemsExist"]}}}}