| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| PUT | /Webshop/Settings/{OwnerId} |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class WebshopSettingsUpdateRequest
{
var ownerId:Int? = null
var item:WebshopSettings? = null
}
open class WebshopSettings
{
var id:Int? = null
var ownerId:Int? = null
@StringLength(200)
var orderEmail:String? = null
var pickupAllowed:Boolean? = null
var droppAllowed:Boolean? = null
var shippedAllowed:Boolean? = null
@StringLength(300)
var pickupAddress:String? = null
@StringLength(500)
var pickupDescription:String? = null
var droppFeeMinor:Int? = null
var shippedFeeMinor:Int? = null
@StringLength(50)
var legacyTeamNumber:String? = null
var createdAt:Date? = null
var updatedAt:Date? = null
}
open class WebshopSettingsResult
{
var item:WebshopSettings? = null
var statusCode:Int? = null
var message:String? = null
}
Kotlin WebshopSettingsUpdateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /Webshop/Settings/{OwnerId} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ownerId: 0,
item:
{
id: 0,
ownerId: 0,
orderEmail: String,
pickupAllowed: False,
droppAllowed: False,
shippedAllowed: False,
pickupAddress: String,
pickupDescription: String,
droppFeeMinor: 0,
shippedFeeMinor: 0,
legacyTeamNumber: String,
createdAt: 0001-01-01,
updatedAt: 0001-01-01
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
item:
{
id: 0,
ownerId: 0,
orderEmail: String,
pickupAllowed: False,
droppAllowed: False,
shippedAllowed: False,
pickupAddress: String,
pickupDescription: String,
droppFeeMinor: 0,
shippedFeeMinor: 0,
legacyTeamNumber: String,
createdAt: 0001-01-01,
updatedAt: 0001-01-01
},
statusCode: 0,
message: String
}