| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| PUT | /Webshop/Product/ViewOrder |
|---|
import Foundation
import ServiceStack
public class WebshopProductViewOrderRequest : Codable
{
public var ownerId:Int?
public var items:[WebshopViewOrderItem] = []
required public init(){}
}
public class WebshopViewOrderItem : Codable
{
public var productId:Int?
public var viewOrder:Int?
required public init(){}
}
public class WebshopSimpleResult : Codable
{
public var success:Bool?
public var status:String?
public var statusCode:Int?
public var message:String?
required public init(){}
}
Swift WebshopProductViewOrderRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /Webshop/Product/ViewOrder HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ownerId":0,"items":[{"productId":0,"viewOrder":0}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"success":false,"status":"String","statusCode":0,"message":"String"}