{
  "x402Version": 2,
  "id": 53615,
  "slug": "53615",
  "resource": "https://x402-api-24223879872.us-east1.run.app/v1/schedule-solve",
  "description": "Solves a scheduling/roster problem (gym class rosters, dance-school timetables, restaurant shift plans) with OR-Tools CP-SAT: assigns resources to slot demands honoring availability, tags, and constraints (no double-booking, max-per-day, min-rest, forbidden/required pairs, fixed assignments, max total hours), optimizing the requested objective. Infeasible inputs come back with the specific conflicting demands/constraints named.",
  "type": "http",
  "resourceType": "Monitoring",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8b9B012432A6B17dD08934Fa357D61aAb3fcE93D",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "300000",
      "amountUsd": 0.3,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "assignments": {
            "items": {
              "properties": {
                "demandId": {
                  "type": "string"
                },
                "resourceId": {
                  "type": "string"
                },
                "slotId": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "infeasibility": {
            "nullable": true,
            "properties": {
              "explanation": {
                "type": "string"
              },
              "unsatisfiableConstraints": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "type": "object"
          },
          "stats": {
            "properties": {
              "objectiveValue": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "resourceLoad": {
                "type": "object"
              },
              "wallTimeMs": {
                "type": "number"
              }
            },
            "type": "object"
          },
          "status": {
            "enum": [
              "optimal",
              "feasible",
              "infeasible",
              "timeout"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "constraints": [
              {
                "type": "no_double_booking"
              }
            ],
            "demands": [
              {
                "id": "yoga-mon-9am",
                "required": 1,
                "requiresTags": [
                  "yoga"
                ],
                "slotId": "mon-9am"
              },
              {
                "id": "yoga-mon-10am",
                "required": 1,
                "requiresTags": [
                  "yoga"
                ],
                "slotId": "mon-10am"
              }
            ],
            "objective": "balance_load",
            "resources": [
              {
                "availability": "all",
                "id": "alice",
                "tags": [
                  "yoga"
                ]
              },
              {
                "availability": [
                  "mon-9am",
                  "mon-10am"
                ],
                "id": "bob",
                "tags": [
                  "yoga",
                  "spin"
                ]
              }
            ],
            "slots": [
              {
                "day": "MON",
                "end": "10:00",
                "id": "mon-9am",
                "start": "09:00"
              },
              {
                "day": "MON",
                "end": "11:00",
                "id": "mon-10am",
                "start": "10:00"
              }
            ],
            "timeLimitSeconds": 5
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "assignments": [
              {
                "demandId": "yoga-mon-9am",
                "resourceId": "alice",
                "slotId": "mon-9am"
              },
              {
                "demandId": "yoga-mon-10am",
                "resourceId": "bob",
                "slotId": "mon-10am"
              }
            ],
            "stats": {
              "objectiveValue": 0,
              "resourceLoad": {
                "alice": 1,
                "bob": 1
              },
              "wallTimeMs": 42
            },
            "status": "optimal"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "constraints": {
                    "description": "Optional typed constraints: no_double_booking, max_per_day, min_rest_between, forbid_pair, require_pair, fixed_assignment, max_total_hours.",
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "demands": {
                    "description": "Assignment requirements, each tied to a slot.",
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "objective": {
                    "default": "balance_load",
                    "enum": [
                      "balance_load",
                      "maximize_preferences",
                      "minimize_resources"
                    ],
                    "type": "string"
                  },
                  "resources": {
                    "description": "People/rooms/equipment that can be assigned, with tags and availability.",
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "slots": {
                    "description": "Time or label slots demands can be assigned to.",
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "timeLimitSeconds": {
                    "default": 5,
                    "maximum": 15,
                    "type": "number"
                  }
                },
                "required": [
                  "slots",
                  "resources",
                  "demands"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "assignments": {
                    "items": {
                      "properties": {
                        "demandId": {
                          "type": "string"
                        },
                        "resourceId": {
                          "type": "string"
                        },
                        "slotId": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "infeasibility": {
                    "nullable": true,
                    "properties": {
                      "explanation": {
                        "type": "string"
                      },
                      "unsatisfiableConstraints": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "type": "object"
                  },
                  "stats": {
                    "properties": {
                      "objectiveValue": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "resourceLoad": {
                        "type": "object"
                      },
                      "wallTimeMs": {
                        "type": "number"
                      }
                    },
                    "type": "object"
                  },
                  "status": {
                    "enum": [
                      "optimal",
                      "feasible",
                      "infeasible",
                      "timeout"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "x402-api-24223879872.us-east1.run.app",
  "lastUpdated": "2026-09-23T03:24:22.715Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-23T03:24:22.607Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "constraints": [
                {
                  "type": "no_double_booking"
                }
              ],
              "demands": [
                {
                  "id": "yoga-mon-9am",
                  "required": 1,
                  "requiresTags": [
                    "yoga"
                  ],
                  "slotId": "mon-9am"
                },
                {
                  "id": "yoga-mon-10am",
                  "required": 1,
                  "requiresTags": [
                    "yoga"
                  ],
                  "slotId": "mon-10am"
                }
              ],
              "objective": "balance_load",
              "resources": [
                {
                  "availability": "all",
                  "id": "alice",
                  "tags": [
                    "yoga"
                  ]
                },
                {
                  "availability": [
                    "mon-9am",
                    "mon-10am"
                  ],
                  "id": "bob",
                  "tags": [
                    "yoga",
                    "spin"
                  ]
                }
              ],
              "slots": [
                {
                  "day": "MON",
                  "end": "10:00",
                  "id": "mon-9am",
                  "start": "09:00"
                },
                {
                  "day": "MON",
                  "end": "11:00",
                  "id": "mon-10am",
                  "start": "10:00"
                }
              ],
              "timeLimitSeconds": 5
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "assignments": [
                {
                  "demandId": "yoga-mon-9am",
                  "resourceId": "alice",
                  "slotId": "mon-9am"
                },
                {
                  "demandId": "yoga-mon-10am",
                  "resourceId": "bob",
                  "slotId": "mon-10am"
                }
              ],
              "stats": {
                "objectiveValue": 0,
                "resourceLoad": {
                  "alice": 1,
                  "bob": 1
                },
                "wallTimeMs": 42
              },
              "status": "optimal"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "constraints": {
                      "description": "Optional typed constraints: no_double_booking, max_per_day, min_rest_between, forbid_pair, require_pair, fixed_assignment, max_total_hours.",
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "demands": {
                      "description": "Assignment requirements, each tied to a slot.",
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "objective": {
                      "default": "balance_load",
                      "enum": [
                        "balance_load",
                        "maximize_preferences",
                        "minimize_resources"
                      ],
                      "type": "string"
                    },
                    "resources": {
                      "description": "People/rooms/equipment that can be assigned, with tags and availability.",
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "slots": {
                      "description": "Time or label slots demands can be assigned to.",
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "timeLimitSeconds": {
                      "default": 5,
                      "maximum": 15,
                      "type": "number"
                    }
                  },
                  "required": [
                    "slots",
                    "resources",
                    "demands"
                  ]
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "assignments": {
                      "items": {
                        "properties": {
                          "demandId": {
                            "type": "string"
                          },
                          "resourceId": {
                            "type": "string"
                          },
                          "slotId": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "infeasibility": {
                      "nullable": true,
                      "properties": {
                        "explanation": {
                          "type": "string"
                        },
                        "unsatisfiableConstraints": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "type": "object"
                    },
                    "stats": {
                      "properties": {
                        "objectiveValue": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "resourceLoad": {
                          "type": "object"
                        },
                        "wallTimeMs": {
                          "type": "number"
                        }
                      },
                      "type": "object"
                    },
                    "status": {
                      "enum": [
                        "optimal",
                        "feasible",
                        "infeasible",
                        "timeout"
                      ],
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402-api-24223879872.us-east1.run.app",
    "manifest_name": "x402-api-24223879872.us-east1.run.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "assignments": [
        {
          "demandId": "string",
          "resourceId": "string",
          "slotId": "string"
        }
      ],
      "infeasibility": {
        "explanation": "string",
        "unsatisfiableConstraints": [
          "string"
        ]
      },
      "stats": {
        "objectiveValue": 0,
        "resourceLoad": {},
        "wallTimeMs": 0
      },
      "status": "optimal"
    },
    "type": "string"
  }
}