jellyfin-sdk-swift/Sources/Paths/SetItemImageByIndexAPI.swift

14 lines
438 B
Swift
Raw Normal View History

2022-08-08 20:21:06 +00:00
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
import Foundation
import Get
import URLQueryEncoder
extension Paths {
/// Set item image.
static public func setItemImageByIndex(itemID: String, imageType: String, imageIndex: Int, _ body: Data? = nil) -> Request<Void> {
Request(method: "POST", url: "/Items/\(itemID)/Images/\(imageType)/\(imageIndex)", body: body, id: "SetItemImageByIndex")
}
}