Skip to main content
The Fill API assigns employees to shifts while respecting skills, availability, labor regulations, and employee preferences. It finds the optimal workforce allocation that maximizes coverage while minimizing constraint violations.
The Fill solver handles complex workforce scenarios including multi-skill matching, fairness balancing, and conditional labor rules.

Core Capabilities

Skill Matching

Match employee skills to shift requirements at multiple proficiency levels

Labor Compliance

Enforce rest periods, working hour limits, and consecutive day rules

Fair Distribution

Balance workload across employees based on hours or shift counts

Fill vs Create

Solvice provides two complementary scheduling APIs:
Use Create when you know how many people you need but not when:
Output: Shift definitions with start/end times

API Endpoints

Optimization Actions

Finds optimal employee-to-shift assignments. This is the main endpoint for workforce scheduling.
Use this for weekly schedule generation, shift assignment optimization, and coverage planning.

Result Retrieval

job_id
string
required
The unique identifier returned when you submit a request

How It Works

1

Submit Request

Send your scheduling problem with employees and shifts to the solve endpoint.
2

Monitor Progress

Check the job status while the solver optimizes assignments.
3

Retrieve Solution

Get the optimized assignments once the solver completes.

Key Features

  • Required skills as hard constraints
  • Skill proficiency levels (1-5)
  • Soft skill preferences for optimization
  • Critical shift skill bonuses
Rules are declarative: each rule picks a COUNTER (count occurrences) or SEQUENCE (longest streak) constraint, applies to a configurable period (including rolling windows), and can chain to a follow-up rule via then when a threshold is crossed.
  • Maximum working days per period
  • Minimum/maximum hours constraints
  • Consecutive day limits via the MAX_CONSECUTIVE_DAYS rule type
  • Minimum, maximum, and cumulative (total) rest duration requirements between shifts
  • Weekend idle requirements
  • Time-based availability windows
  • Day-of-week restrictions
  • Blocked employee-shift pairs
  • Locked (pre-assigned) shifts
  • Workload balancing across employee groups
  • Shift preferences (preferred/unpreferred)
  • Pattern-based scheduling (avoid late→early)
  • Target hours per employee

Common Use Cases

Healthcare Staffing

Schedule nurses and caregivers with skill matching and mandatory rest compliance

Retail Scheduling

Balance coverage across peak hours while respecting employee availability

Hospitality

Assign kitchen, floor, and bar staff based on skills and shift patterns

Contact Centers

Optimize agent schedules for service level targets with fair workload distribution

Constraint System

The Fill solver uses a three-tier scoring system:
A solution is feasible only when all hard constraints are satisfied (hardScore = 0).

Quick Start

Need an API key? Visit the Dashboard to get started.
Ready to optimize your first schedule?

Fill Quickstart Guide

Assign employees to shifts in under 5 minutes

Additional Resources

API Reference

Detailed endpoint documentation

Examples

Rules, patterns, and constraints

Request Schema

Complete field reference