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

import Foundation
import Get
import URLQueryEncoder

extension Paths.Share {
    public var attribute: Attribute {
        Attribute(path: path + "/attribute")
    }

    public struct Attribute {
        /// Path: `/api/share/attribute`
        public let path: String

        /// Attribute User To Share
        ///
        /// Create share attribution record linking a user to the share that led to it
        public func post(_ body: GenAPI.ShareAttributionRequest) -> Request<GenAPI.ShareAttributionResponse> {
            Request(path: path, method: "POST", body: body, id: "studio_api_growth_share_api_attribute_user_to_share")
        }
    }
}
