{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postzen-dev/json-schema/postzen-dev-queue-update-request-schema.json",
  "title": "QueueUpdateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postzen-dev-queues-api-openapi.yml#/components/schemas/QueueUpdateRequest",
  "type": "object",
  "required": [
    "profileId",
    "timezone",
    "slots"
  ],
  "properties": {
    "profileId": {
      "type": "string",
      "description": "Profile that owns the queue."
    },
    "queueId": {
      "type": "string",
      "description": "Queue to update. Defaults to the profile's default queue."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "description": {
      "type": "string",
      "maxLength": 500,
      "description": "Send an empty string to clear the description."
    },
    "timezone": {
      "type": "string"
    },
    "slots": {
      "type": "array",
      "maxItems": 56,
      "items": {
        "$ref": "#/$defs/QueueSlot"
      },
      "description": "Replaces the queue's slots entirely."
    },
    "active": {
      "type": "boolean"
    },
    "setAsDefault": {
      "type": "boolean"
    },
    "reshuffleExisting": {
      "type": "boolean",
      "description": "Re-place the queue's future scheduled posts onto the new schedule. Only applies when the timezone or slots actually changed."
    }
  },
  "$defs": {
    "QueueSlot": {
      "type": "object",
      "required": [
        "dayOfWeek",
        "time"
      ],
      "properties": {
        "dayOfWeek": {
          "type": "integer",
          "minimum": 0,
          "maximum": 6,
          "description": "Day of the week, 0 = Sunday through 6 = Saturday."
        },
        "time": {
          "type": "string",
          "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$",
          "description": "24-hour wall-clock time (`HH:mm`) in the queue's timezone."
        }
      }
    }
  }
}