QuartermasterCreateData
public struct QuartermasterCreateData : Content
extension QuartermasterCreateData: RCFValidatable
Used to batch-create one or more QuartermasterItems.
Required by: POST /api/v3/quartermaster/create
-
Whether the items are on offer (
have) or wanted (need). Applies to all items in the batch.Declaration
Swift
var category: QuartermasterCategory -
Optional free-text location where items can be picked up / exchanged. 3–100 characters when present. Required when
hideOwnerNameistrue.Declaration
Swift
var location: String? -
When
true, the owner’s identity is hidden from other users on the created items. Requireslocation.Declaration
Swift
var hideOwnerName: Bool -
One or more items to create. 1–10 items per call. Each item has its own name, optional description, and optional photo.
Declaration
Swift
var items: [QuartermasterItemEntry]
-
Declaration
Swift
func runValidations(using decoder: ValidatingDecoder) throws -
Decodes a create request.
hideOwnerNamemay be omitted from the JSON, in which case it decodes as FALSE.Declaration
Swift
public init(from decoder: Decoder) throws
View on GitHub