QuartermasterContentData
public struct QuartermasterContentData : Content
extension QuartermasterContentData: RCFValidatable
Used to update a single QuartermasterItem.
Required by: POST /api/v3/quartermaster/ID/update
-
The updated category.
Declaration
Swift
var category: QuartermasterCategory -
The updated item name. 2–100 characters.
Declaration
Swift
var itemName: String -
The updated description. ≤2048 characters when present.
Declaration
Swift
var itemDescription: String? -
The updated location. 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 this item. Requireslocation.Declaration
Swift
var hideOwnerName: Bool -
The item’s photo, always fully replacing whatever image (if any) the item currently has – there’s no “leave unchanged” state distinct from “keep this same filename”.
nil(or anImageUploadDatawith bothfilenameandimagenil) clears the item’s photo. To keep an existing photo across an otherwise-unrelated edit, echo its filename back as.filename.Declaration
Swift
var image: ImageUploadData?
-
Declaration
Swift
func runValidations(using decoder: ValidatingDecoder) throws -
Decodes an update 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