QuartermasterContentData

public struct QuartermasterContentData : Content
extension QuartermasterContentData: RCFValidatable

Used to update a single QuartermasterItem.

Required by: POST /api/v3/quartermaster/ID/update

See: QuartermasterController.updateHandler(_:)

  • 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 hideOwnerName is true.

    Declaration

    Swift

    var location: String?
  • When true, the owner’s identity is hidden from other users on this item. Requires location.

    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 an ImageUploadData with both filename and image nil) 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?

Quartermaster