// Generated by Create API
// https://github.com/CreateAPI/CreateAPI

import Foundation
import Get
import URLQueryEncoder

extension Paths.Survey.SurveyResponses {
    public func responseId(_ responseId: String) -> WithResponseId {
        WithResponseId(path: "\(path)/\(responseId)")
    }

    public struct WithResponseId {
        /// Path: `/api/survey/survey-responses/{response_id}`
        public let path: String

        /// Update Survey Response
        ///
        /// Update an existing response
        public func patch(_ body: GenAPI.UpdateSurveyResponseSpec) -> Request<Void> {
            Request(path: path, method: "PATCH", body: body, id: "studio_api_survey_api_update_survey_response")
        }

        /// Delete Survey Response
        ///
        /// Allow users to revoke their answers (Only for their own user_id)
        public var delete: Request<Void> {
            Request(path: path, method: "DELETE", id: "studio_api_survey_api_delete_survey_response")
        }
    }
}
