{"openapi":"3.1.1","info":{"title":"Dミセ 外部接続API","version":"1.0.0","description":"モード1・モード2共通の管理者向けREST API。公開キーとシークレットの両方を使用します。店舗と操作の許可範囲、発行者の現在の管理権限を毎回検証します。","contact":{"url":"https://d-mise.com/contact"}},"servers":[{"url":"https://d-mise.com/api/v1"}],"security":[{"PublicKey":[],"SecretKey":[]}],"components":{"securitySchemes":{"PublicKey":{"type":"apiKey","in":"header","name":"X-Dmise-Key","description":"dm_pk_で始まる公開識別子。これだけではアクセス不可。"},"SecretKey":{"type":"http","scheme":"bearer","bearerFormat":"dm_sk_…","description":"一度だけ表示するシークレット。接続元のサーバーに保管。"}},"schemas":{"identity":{"type":"object","properties":{"key_id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"user_id":{"type":"string","format":"uuid"},"scopes":{"type":"array","items":{"type":"string"}},"all_stores":{"type":"boolean"},"store_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":[],"additionalProperties":true},"stores":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"code":{"type":"string"},"schedule_mode":{"type":"integer","enum":[1,2]},"is_active":{"type":"boolean"},"business_hours":{"type":["object","null"]},"address":{"type":["string","null"]},"phone_number":{"type":["string","null"]}},"required":[],"additionalProperties":true},"roles":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"code":{"type":"string"},"category":{"type":"string"},"description":{"type":"string"},"color":{"type":"string"},"sort_order":{"type":"number"},"is_active":{"type":"boolean"},"eligible_user_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":[],"additionalProperties":true},"time_slots":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"short_label":{"type":"string"},"start_time":{"type":"string"},"end_time":{"type":"string"},"break_minutes":{"type":"number"},"color":{"type":"string"},"sort_order":{"type":"number"},"is_active":{"type":"boolean"}},"required":[],"additionalProperties":true},"staff":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"user_id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"managed":{"type":"boolean"},"role":{"type":"string"},"status":{"type":"string"},"employment_type":{"type":"string"},"employee_code":{"type":["string","null"]},"show_on_shift_sheet":{"type":"boolean"},"sort_order":{"type":["integer","null"]},"memo":{"type":["string","null"]},"position_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"email":{"type":["string","null"],"description":"staff.contacts.readがあるときだけ返却。"},"phone_number":{"type":["string","null"],"description":"staff.contacts.readがあるときだけ返却。"}},"required":[],"additionalProperties":true},"wages":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":["string","null"],"format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"user_id":{"type":"string","format":"uuid"},"effective_from":{"type":"string","format":"date"},"effective_to":{"type":["string","null"]},"wage_type":{"type":"string"},"hourly_wage":{"type":["integer","null"],"description":"時給（円）。hourlyでは必須。0も有効。"},"daily_wage":{"type":["integer","null"],"description":"日給（円）。dailyでは必須。"},"monthly_salary":{"type":["integer","null"],"description":"基本給月額（円）。monthlyでは必須。"},"monthly_standard_minutes":{"type":["integer","null"],"description":"月の所定時間（分）。monthlyでは必須。"},"contract_daily_minutes":{"type":["integer","null"],"description":"日給の所定時間（分）。dailyでは必須。"},"transportation_daily_amount":{"type":["integer","null"],"description":"日ごとの交通費（円）。"},"fixed_allowance_monthly":{"type":["integer","null"],"description":"固定手当の月額（円）。"},"fixed_late_night_allowance_monthly":{"type":["integer","null"],"description":"みなし深夜手当の月額（円）。"},"hourly_wage_by_weekday":{"type":["object","null"]},"transportation_by_weekday":{"type":["object","null"]}},"required":[],"additionalProperties":true},"periods":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"start_date":{"type":"string"},"end_date":{"type":"string"},"status":{"type":"string"},"request_deadline_at":{"type":"string","format":"date-time"},"use_time_slots":{"type":"boolean"},"schedule":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"is_published":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}}},"closed_days":{"type":"array","items":{"type":"object","properties":{"work_date":{"type":"string"},"reason":{"type":["string","null"]}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true},"shifts":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"user_id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"shift_schedule_id":{"type":"string","format":"uuid"},"work_date":{"type":"string"},"position_id":{"type":["string","null"],"format":"uuid"},"all_day":{"type":"boolean"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"end_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"break_minutes":{"type":"number"},"status":{"type":"string"},"note":{"type":["string","null"]},"role_label":{"type":["string","null"]}},"required":[],"additionalProperties":true},"requests":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"user_id":{"type":"string","format":"uuid"},"request_id":{"type":["string","null"],"format":"uuid"},"display_name":{"type":"string"},"status":{"type":"string","enum":["submitted","draft","unsubmitted"]},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"note":{"type":["string","null"]},"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"work_date":{"type":"string"},"entry_type":{"type":"string"},"is_all_day":{"type":"boolean"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"end_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"time_slot_id":{"type":["string","null"]},"note":{"type":["string","null"]},"position_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true},"attendance":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"user_id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"work_date":{"type":"string"},"clock_in_at":{"type":"string","format":"date-time"},"clock_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"break_minutes":{"type":"number"},"status":{"type":"string"},"review_status":{"type":"string"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"event_at":{"type":"string","format":"date-time"},"event_type":{"type":"string"}},"required":[],"additionalProperties":true}},"review_logs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"actor_user_id":{"type":"string","format":"uuid"},"action":{"type":"string"},"comment":{"type":["string","null"]},"before_data":{"type":["object","null"]},"after_data":{"type":["object","null"]},"created_at":{"type":"string","format":"date-time"}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true},"payroll":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"target_month":{"type":"string"},"period_start":{"type":"string"},"period_end":{"type":"string"},"status":{"type":"string"},"locked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"user_id":{"type":"string","format":"uuid"},"work_days":{"type":"number"},"actual_work_minutes":{"type":"number"},"rounded_work_minutes":{"type":"number"},"break_minutes":{"type":"number"},"estimated_base_pay":{"type":"number"},"estimated_total_pay":{"type":"number"},"transportation_amount":{"type":"number"},"allowance_amount":{"type":"number"},"late_night_premium":{"type":"number"},"overtime_premium":{"type":"number"},"paid_leave_days":{"type":"number"},"paid_leave_pay":{"type":"number"},"wage_rate_breakdown":{"type":["array","null"]},"daily_breakdown":{"type":["array","null"]},"warnings":{"type":["array","null"]}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true},"payroll_settings":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":["string","null"],"format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"closing_day":{"anyOf":[{"type":"integer","minimum":1,"maximum":28},{"type":"null"}],"description":"給与締め日。1〜28、nullで月末。"},"rounding_unit_minutes":{"anyOf":[{"type":"number","const":1},{"type":"number","const":5},{"type":"number","const":10},{"type":"number","const":15},{"type":"number","const":30}],"description":"丸め単位（分）。"},"clock_in_rounding":{"type":"string","enum":["exact","floor","ceil","nearest"],"description":"出勤丸め。exact / floor / ceil / nearest。"},"clock_out_rounding":{"type":"string","enum":["exact","floor","ceil","nearest"],"description":"退勤丸め。exact / floor / ceil / nearest。"},"break_rounding":{"type":"string","enum":["exact","floor","ceil","nearest"],"description":"休憩丸め。exact / floor / ceil / nearest。"},"standard_daily_minutes":{"anyOf":[{"type":"integer","minimum":1,"maximum":1440},{"type":"null"}],"description":"標準の1日勤務時間（分）。"},"standard_monthly_minutes":{"anyOf":[{"type":"integer","minimum":60,"maximum":24000},{"type":"null"}],"description":"標準の月勤務時間（分）。"},"daily_regular_minutes":{"type":"integer","minimum":1,"maximum":480,"description":"1日の法定労働時間（分、最大480）。"},"weekly_regular_minutes":{"anyOf":[{"type":"integer","minimum":1,"maximum":10080},{"type":"null"}],"description":"週の法定労働時間（分）。"},"overtime_wage_rate_percent":{"type":"integer","minimum":0,"maximum":200,"description":"時間外の割増率（%）。25は25%加算。"},"late_night_wage_rate_percent":{"type":"integer","minimum":0,"maximum":200,"description":"深夜の割増率（%）。"},"holiday_wage_rate_percent":{"type":"integer","minimum":0,"maximum":200,"description":"法定休日の割増率（%）。"},"over_sixty_wage_rate_percent":{"type":"integer","minimum":0,"maximum":200,"description":"月60時間超の時間外割増率（%）。"},"week_start_day":{"type":"integer","minimum":0,"maximum":6,"description":"週の開始曜日。0=日曜〜6=土曜。"}},"required":[],"additionalProperties":true},"invitations":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"email":{"type":["string","null"]},"invite_code":{"type":"string"},"expires_at":{"type":"string","format":"date-time"},"max_uses":{"type":"number"},"used_count":{"type":"number"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"templates":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"created_by":{"type":"string","format":"uuid"},"day_count":{"type":"number"},"cell_count":{"type":"number"},"cells":{"type":"array","items":{"type":"object","properties":{"dayOffset":{"type":"number"},"userId":{"type":"string","format":"uuid"},"positionId":{"type":"string","format":"uuid"},"allDay":{"type":"boolean"},"startTime":{"type":["string","null"]},"endTime":{"type":["string","null"]},"breakMinutes":{"type":"number"},"note":{"type":["string","null"]}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":[],"additionalProperties":true}}},"required":["code","message"],"additionalProperties":true},"request_id":{"type":"string","format":"uuid"}},"required":["error","request_id"],"additionalProperties":true}},"responses":{"Http400":{"description":"JSON・ヘッダー・クエリの形式不正 / 冪等性キー不足","headers":{"X-Request-ID":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Http401":{"description":"認証情報なし・不正・失効・期限切れ","headers":{"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"WWW-Authenticate":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Http403":{"description":"権限不足・管理者権限失効・契約または給与機能の利用不可","headers":{"X-Request-ID":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Http404":{"description":"リソースなし / 対象店舗にアクセス不可","headers":{"X-Request-ID":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Http409":{"description":"版の競合・公開中・給与確定済み・提出済みなど","headers":{"X-Request-ID":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Http413":{"description":"本文が1MiBを超過","headers":{"X-Request-ID":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Http415":{"description":"Content-Typeがapplication/jsonではない","headers":{"X-Request-ID":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Http422":{"description":"入力値または業務上の条件を満たさない","headers":{"X-Request-ID":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Http428":{"description":"If-Matchが必要","headers":{"X-Request-ID":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Http429":{"description":"キーごとに120リクエスト/分を超過","headers":{"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Http500":{"description":"内部エラー","headers":{"X-Request-ID":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"tags":[{"name":"接続"},{"name":"店舗","description":"店舗情報・営業時間などの業務設定"},{"name":"スタッフ","description":"業務設定と連絡先・権限変更を分離。削除は退職処理"},{"name":"給与単価","description":"時給・日給・月給・手当・交通費と改定履歴"},{"name":"役割","description":"役割・コード・分類・説明。削除は休止"},{"name":"勤務時間帯","description":"勤務時間帯のマスター。削除は休止"},{"name":"シフト期間","description":"期間・希望締切・休業日"},{"name":"シフト割当","description":"両モードの配置。公開と下書きへの再開は独立した権限"},{"name":"希望・提出","description":"希望内容・提出状況・代理入力と提出の取消"},{"name":"勤怠","description":"勤怠記録・修正。削除は履歴を残す無効化"},{"name":"給与集計","description":"会社全体の保存済み給与集計（オーナー・全店舗キーのみ）"},{"name":"給与計算設定","description":"会社共通の給与計算設定。変更はオーナーのみ"},{"name":"招待","description":"招待の発行・閲覧・取消。メールの自動送信は行いません"},{"name":"配置テンプレート","description":"モード2の保存済み配置テンプレート"}],"paths":{"/me":{"get":{"operationId":"identity","tags":["接続"],"summary":"接続の会社・権限・対象店舗・期限を確認","description":"接続の会社・権限・対象店舗・期限を確認\n\n必要権限: 有効なキーのみ。","x-dmise-scope":"","parameters":[],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"key_id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"user_id":{"type":"string","format":"uuid"},"scopes":{"type":"array","items":{"type":"string"}},"all_stores":{"type":"boolean"},"store_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores":{"get":{"operationId":"stores_list","tags":["店舗"],"summary":"管理可能かつキーで許可された店舗一覧","description":"管理可能かつキーで許可された店舗一覧\n\n必要権限: stores.read。","x-dmise-scope":"stores.read","parameters":[{"name":"q","in":"query","description":"名称・コード・分類などを部分一致検索。","schema":{"type":"string"}},{"name":"limit","in":"query","description":"1〜100。省略時50。","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","description":"0〜100000。省略時0。","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"sort","in":"query","description":"許可値：name, code, created_at, updated_at。省略時は先頭。","schema":{"type":"string","enum":["name","code","created_at","updated_at"]}},{"name":"order","in":"query","description":"asc / desc。省略時asc。","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}},{"name":"status","in":"query","description":"状態で絞り込み。allで全件。is_activeのマスターはactive / inactive。","schema":{"type":"string"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"code":{"type":"string"},"schedule_mode":{"type":"integer","enum":[1,2]},"is_active":{"type":"boolean"},"business_hours":{"type":["object","null"]},"address":{"type":["string","null"]},"phone_number":{"type":["string","null"]}},"required":[],"additionalProperties":true}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}":{"get":{"operationId":"stores_get","tags":["店舗"],"summary":"店舗情報とシフトモードを取得","description":"店舗情報とシフトモードを取得\n\n必要権限: stores.read。","x-dmise-scope":"stores.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"code":{"type":"string"},"schedule_mode":{"type":"integer","enum":[1,2]},"is_active":{"type":"boolean"},"business_hours":{"type":["object","null"]},"address":{"type":["string","null"]},"phone_number":{"type":["string","null"]}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"patch":{"operationId":"stores_update","tags":["店舗"],"summary":"店舗の業務設定を更新","description":"モード・課金・GPS認証条件の変更は対象外です。省略した項目は保持します。\n\n必要権限: stores.write。更新前に最新のETagを取得してください。","x-dmise-scope":"stores.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"名称。"},"address":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"description":"住所。"},"phone_number":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"電話番号。"},"default_shift_submit_deadline_days":{"type":"integer","minimum":0,"maximum":90,"description":"希望締切の既定日数。"},"manage_employment_type":{"type":"boolean","description":"雇用形態を管理するか。"},"show_employment_type_on_sheet":{"type":"boolean","description":"シフト表に雇用形態を表示するか。"},"business_hours":{"anyOf":[{"type":"object","propertyNames":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"additionalProperties":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"open":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$"},"close":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$"}},"required":["open","close"],"additionalProperties":false}}},{"type":"null"}],"description":"曜日キーmon〜sunにopen/closeの配列を指定。休業日は空配列。指定時は全体を置換。"}},"additionalProperties":false,"minProperties":1}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/roles":{"get":{"operationId":"roles_list","tags":["役割"],"summary":"役割一覧","description":"役割一覧\n\n必要権限: roles.read。","x-dmise-scope":"roles.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"q","in":"query","description":"名称・コード・分類などを部分一致検索。","schema":{"type":"string"}},{"name":"limit","in":"query","description":"1〜100。省略時50。","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","description":"0〜100000。省略時0。","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"sort","in":"query","description":"許可値：sort_order, name, code, category, created_at, updated_at。省略時は先頭。","schema":{"type":"string","enum":["sort_order","name","code","category","created_at","updated_at"]}},{"name":"order","in":"query","description":"asc / desc。省略時asc。","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}},{"name":"status","in":"query","description":"状態で絞り込み。allで全件。is_activeのマスターはactive / inactive。","schema":{"type":"string"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"code":{"type":"string"},"category":{"type":"string"},"description":{"type":"string"},"color":{"type":"string"},"sort_order":{"type":"number"},"is_active":{"type":"boolean"},"eligible_user_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":[],"additionalProperties":true}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"post":{"operationId":"roles_create","tags":["役割"],"summary":"役割を登録","description":"役割を登録\n\n必要権限: roles.write。","x-dmise-scope":"roles.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"名称。"},"code":{"type":"string","maxLength":32,"description":"任意の管理コード。"},"category":{"type":"string","maxLength":80,"description":"任意の分類名。"},"description":{"type":"string","maxLength":1000,"description":"説明。"},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"#RRGGBB形式の色。"},"sort_order":{"type":"integer","minimum":0,"maximum":100000,"description":"表示順（小さい順）。"},"is_active":{"type":"boolean","description":"有効・休止。falseへの変更にはdelete権限も必要。"}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/roles/{resource_id}":{"get":{"operationId":"roles_get","tags":["役割"],"summary":"役割を取得","description":"役割を取得\n\n必要権限: roles.read。","x-dmise-scope":"roles.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"code":{"type":"string"},"category":{"type":"string"},"description":{"type":"string"},"color":{"type":"string"},"sort_order":{"type":"number"},"is_active":{"type":"boolean"},"eligible_user_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"patch":{"operationId":"roles_update","tags":["役割"],"summary":"役割を変更","description":"is_active=falseへの変更には削除権限も必要です。\n\n必要権限: roles.write。更新前に最新のETagを取得してください。","x-dmise-scope":"roles.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"名称。"},"code":{"type":"string","maxLength":32,"description":"任意の管理コード。"},"category":{"type":"string","maxLength":80,"description":"任意の分類名。"},"description":{"type":"string","maxLength":1000,"description":"説明。"},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"#RRGGBB形式の色。"},"sort_order":{"type":"integer","minimum":0,"maximum":100000,"description":"表示順（小さい順）。"},"is_active":{"type":"boolean","description":"有効・休止。falseへの変更にはdelete権限も必要。"}},"additionalProperties":false,"minProperties":1}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"delete":{"operationId":"roles_delete","tags":["役割"],"summary":"役割を休止","description":"過去の割当を保持し、マスターを休止します。\n\n必要権限: roles.delete。更新前に最新のETagを取得してください。","x-dmise-scope":"roles.delete","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/time-slots":{"get":{"operationId":"time_slots_list","tags":["勤務時間帯"],"summary":"勤務時間帯一覧","description":"勤務時間帯一覧\n\n必要権限: time_slots.read。","x-dmise-scope":"time_slots.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"q","in":"query","description":"名称・コード・分類などを部分一致検索。","schema":{"type":"string"}},{"name":"limit","in":"query","description":"1〜100。省略時50。","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","description":"0〜100000。省略時0。","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"sort","in":"query","description":"許可値：sort_order, name, start_time, created_at, updated_at。省略時は先頭。","schema":{"type":"string","enum":["sort_order","name","start_time","created_at","updated_at"]}},{"name":"order","in":"query","description":"asc / desc。省略時asc。","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}},{"name":"status","in":"query","description":"状態で絞り込み。allで全件。is_activeのマスターはactive / inactive。","schema":{"type":"string"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"short_label":{"type":"string"},"start_time":{"type":"string"},"end_time":{"type":"string"},"break_minutes":{"type":"number"},"color":{"type":"string"},"sort_order":{"type":"number"},"is_active":{"type":"boolean"}},"required":[],"additionalProperties":true}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"post":{"operationId":"time_slots_create","tags":["勤務時間帯"],"summary":"勤務時間帯を登録","description":"勤務時間帯を登録\n\n必要権限: time_slots.write。","x-dmise-scope":"time_slots.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"名称。"},"short_label":{"type":"string","minLength":1,"maxLength":3,"description":"時間帯の略称（1〜3文字）。"},"start_time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"HH:mmまたはHH:mm:ss。"},"end_time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"終了時刻。開始以下は翌日扱い。"},"break_minutes":{"type":"integer","minimum":0,"maximum":1440,"description":"休憩の分数。勤務時間を超える値は不可。"},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"#RRGGBB形式の色。"},"sort_order":{"type":"integer","minimum":0,"maximum":100000,"description":"表示順（小さい順）。"},"is_active":{"type":"boolean","description":"有効・休止。falseへの変更にはdelete権限も必要。"}},"required":["name","short_label","start_time","end_time"],"additionalProperties":false}}}},"responses":{"201":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/time-slots/{resource_id}":{"get":{"operationId":"time_slots_get","tags":["勤務時間帯"],"summary":"勤務時間帯を取得","description":"勤務時間帯を取得\n\n必要権限: time_slots.read。","x-dmise-scope":"time_slots.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"short_label":{"type":"string"},"start_time":{"type":"string"},"end_time":{"type":"string"},"break_minutes":{"type":"number"},"color":{"type":"string"},"sort_order":{"type":"number"},"is_active":{"type":"boolean"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"patch":{"operationId":"time_slots_update","tags":["勤務時間帯"],"summary":"勤務時間帯を変更","description":"is_active=falseへの変更には削除権限も必要です。\n\n必要権限: time_slots.write。更新前に最新のETagを取得してください。","x-dmise-scope":"time_slots.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"名称。"},"short_label":{"type":"string","minLength":1,"maxLength":3,"description":"時間帯の略称（1〜3文字）。"},"start_time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"HH:mmまたはHH:mm:ss。"},"end_time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d(:[0-5]\\d)?$","description":"終了時刻。開始以下は翌日扱い。"},"break_minutes":{"type":"integer","minimum":0,"maximum":1440,"description":"休憩の分数。勤務時間を超える値は不可。"},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","description":"#RRGGBB形式の色。"},"sort_order":{"type":"integer","minimum":0,"maximum":100000,"description":"表示順（小さい順）。"},"is_active":{"type":"boolean","description":"有効・休止。falseへの変更にはdelete権限も必要。"}},"additionalProperties":false,"minProperties":1}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"delete":{"operationId":"time_slots_delete","tags":["勤務時間帯"],"summary":"勤務時間帯を休止","description":"過去の割当を保持し、マスターを休止します。\n\n必要権限: time_slots.delete。更新前に最新のETagを取得してください。","x-dmise-scope":"time_slots.delete","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/staff":{"get":{"operationId":"staff_list","tags":["スタッフ"],"summary":"スタッフ・業務設定を一覧取得","description":"スタッフ・業務設定を一覧取得\n\n必要権限: staff.read。","x-dmise-scope":"staff.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"q","in":"query","description":"名称・コード・分類などを部分一致検索。","schema":{"type":"string"}},{"name":"limit","in":"query","description":"1〜100。省略時50。","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","description":"0〜100000。省略時0。","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"sort","in":"query","description":"許可値：display_name, employee_code, sort_order, created_at, updated_at。省略時は先頭。","schema":{"type":"string","enum":["display_name","employee_code","sort_order","created_at","updated_at"]}},{"name":"order","in":"query","description":"asc / desc。省略時asc。","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}},{"name":"status","in":"query","description":"状態で絞り込み。allで全件。is_activeのマスターはactive / inactive。","schema":{"type":"string"}},{"name":"position_id","in":"query","description":"役割UUIDで絞り込み。","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"user_id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"managed":{"type":"boolean"},"role":{"type":"string"},"status":{"type":"string"},"employment_type":{"type":"string"},"employee_code":{"type":["string","null"]},"show_on_shift_sheet":{"type":"boolean"},"sort_order":{"type":["integer","null"]},"memo":{"type":["string","null"]},"position_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"email":{"type":["string","null"],"description":"staff.contacts.readがあるときだけ返却。"},"phone_number":{"type":["string","null"],"description":"staff.contacts.readがあるときだけ返却。"}},"required":[],"additionalProperties":true}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"post":{"operationId":"staff_create","tags":["スタッフ"],"summary":"管理用メンバーを登録（モード2）","description":"モード2のログインを伴わない管理用メンバーを作成します。モード1の新規利用者は招待APIで参加させます。\n\n必要権限: staff.write。","x-dmise-scope":"staff.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"names":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":120},"description":"管理用メンバーの氏名。1回1〜100人。ログインアカウントは作成しません。"}},"required":["names"],"additionalProperties":false}}}},"responses":{"201":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"created_count":{"type":"number"},"members":{"type":"array","items":{"type":"object","properties":{"user_id":{"type":"string","format":"uuid"},"display_name":{"type":"string"}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/staff/{user_id}":{"get":{"operationId":"staff_get","tags":["スタッフ"],"summary":"スタッフと対応役割を取得","description":"連絡先はstaff.contacts.readを付与したキーのみ返します。給与単価は専用APIで取得します。\n\n必要権限: staff.read。","x-dmise-scope":"staff.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"description":"スタッフのUUID（staff一覧のuser_id）。","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"user_id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"managed":{"type":"boolean"},"role":{"type":"string"},"status":{"type":"string"},"employment_type":{"type":"string"},"employee_code":{"type":["string","null"]},"show_on_shift_sheet":{"type":"boolean"},"sort_order":{"type":["integer","null"]},"memo":{"type":["string","null"]},"position_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"email":{"type":["string","null"],"description":"staff.contacts.readがあるときだけ返却。"},"phone_number":{"type":["string","null"],"description":"staff.contacts.readがあるときだけ返却。"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"patch":{"operationId":"staff_update","tags":["スタッフ"],"summary":"スタッフの業務設定を変更","description":"role/statusはstaff.access.write、氏名・連絡先はstaff.contacts.writeが追加で必要です。通常アカウントの氏名・ログインメールは変更しません。オーナーの権限変更は対象外です。\n\n必要権限: staff.write。更新前に最新のETagを取得してください。","x-dmise-scope":"staff.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"description":"スタッフのUUID（staff一覧のuser_id）。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"employment_type":{"type":"string","enum":["full_time","contract","part_time","dispatch","outsourcing"],"description":"full_time / contract / part_time / dispatch / outsourcing。"},"employee_code":{"anyOf":[{"type":"string","maxLength":32,"pattern":"^[^,\\r\\n\"]*$"},{"type":"null"}],"description":"会社内の従業員コード。nullまたは空文字で解除。"},"show_on_shift_sheet":{"type":"boolean","description":"シフト表への表示。"},"sort_order":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000},{"type":"null"}],"description":"表示順（小さい順）。"},"memo":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"description":"管理メモ。モード1は既存の店舗所属メモ、モード2は管理者用メモ。"},"position_ids":{"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"対応・希望する有効な役割UUIDの配列。空配列で解除。希望役割はモード2のみ。"},"role":{"type":"string","enum":["manager","staff"],"description":"店舗権限。manager / staff。staff.access.writeも必要。"},"status":{"type":"string","enum":["active","suspended","left"],"description":"在籍状態。active / suspended / left。leftにはstaff.deleteも必要。"},"display_name":{"type":"string","minLength":1,"maxLength":120,"description":"管理用メンバーの表示名。"},"email":{"anyOf":[{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"string","const":""}],"description":"メールアドレス。通常アカウントのログインメールは変更しません。"},"phone_number":{"type":"string","maxLength":40,"description":"電話番号。"}},"additionalProperties":false,"minProperties":1}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"delete":{"operationId":"staff_delete","tags":["スタッフ"],"summary":"スタッフを店舗から退職扱いにする","description":"勤怠・給与・過去シフトとアカウントは削除しません。\n\n必要権限: staff.delete。更新前に最新のETagを取得してください。","x-dmise-scope":"staff.delete","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"description":"スタッフのUUID（staff一覧のuser_id）。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/staff/{user_id}/wages":{"get":{"operationId":"wages_list","tags":["給与単価"],"summary":"給与単価・改定履歴を取得","description":"給与単価・改定履歴を取得\n\n必要権限: wages.read。","x-dmise-scope":"wages.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"description":"スタッフのUUID（staff一覧のuser_id）。","schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","description":"1〜100。省略時50。","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","description":"0〜100000。省略時0。","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"sort","in":"query","description":"許可値：effective_from, created_at, updated_at。省略時は先頭。","schema":{"type":"string","enum":["effective_from","created_at","updated_at"]}},{"name":"order","in":"query","description":"asc / desc。省略時asc。","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}},{"name":"date_from","in":"query","description":"対象日の下限（含む）。期間・単価は適用期間の重なりで検索。","schema":{"type":"string","format":"date"}},{"name":"date_to","in":"query","description":"対象日の上限（含む）。","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":["string","null"],"format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"user_id":{"type":"string","format":"uuid"},"effective_from":{"type":"string","format":"date"},"effective_to":{"type":["string","null"]},"wage_type":{"type":"string"},"hourly_wage":{"type":["integer","null"],"description":"時給（円）。hourlyでは必須。0も有効。"},"daily_wage":{"type":["integer","null"],"description":"日給（円）。dailyでは必須。"},"monthly_salary":{"type":["integer","null"],"description":"基本給月額（円）。monthlyでは必須。"},"monthly_standard_minutes":{"type":["integer","null"],"description":"月の所定時間（分）。monthlyでは必須。"},"contract_daily_minutes":{"type":["integer","null"],"description":"日給の所定時間（分）。dailyでは必須。"},"transportation_daily_amount":{"type":["integer","null"],"description":"日ごとの交通費（円）。"},"fixed_allowance_monthly":{"type":["integer","null"],"description":"固定手当の月額（円）。"},"fixed_late_night_allowance_monthly":{"type":["integer","null"],"description":"みなし深夜手当の月額（円）。"},"hourly_wage_by_weekday":{"type":["object","null"]},"transportation_by_weekday":{"type":["object","null"]}},"required":[],"additionalProperties":true}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"post":{"operationId":"wages_create","tags":["給与単価"],"summary":"適用開始日を指定して単価を改定","description":"新しい履歴を追加します。省略項目は適用開始日の前日に有効な単価から継承します。会社共通単価は読み取り、作成・訂正は指定店舗の単価を対象にします。\n\n必要権限: wages.write。","x-dmise-scope":"wages.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"description":"スタッフのUUID（staff一覧のuser_id）。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"effective_from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"適用開始日（YYYY-MM-DD）。"},"wage_type":{"type":"string","enum":["hourly","daily","monthly"],"description":"hourly（時給）/ daily（日給）/ monthly（月給）。"},"hourly_wage":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}],"description":"時給（円）。hourlyでは必須。0も有効。"},"daily_wage":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}],"description":"日給（円）。dailyでは必須。"},"monthly_salary":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}],"description":"基本給月額（円）。monthlyでは必須。"},"monthly_standard_minutes":{"anyOf":[{"type":"integer","minimum":1,"maximum":44640},{"type":"null"}],"description":"月の所定時間（分）。monthlyでは必須。"},"contract_daily_minutes":{"anyOf":[{"type":"integer","minimum":1,"maximum":1440},{"type":"null"}],"description":"日給の所定時間（分）。dailyでは必須。"},"transportation_daily_amount":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}],"description":"日ごとの交通費（円）。"},"fixed_allowance_monthly":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}],"description":"固定手当の月額（円）。"},"fixed_late_night_allowance_monthly":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}],"description":"みなし深夜手当の月額（円）。"},"hourly_wage_by_weekday":{"anyOf":[{"type":"object","propertyNames":{"type":"string","enum":["0","1","2","3","4","5","6"]},"additionalProperties":{"type":"integer","minimum":0,"maximum":100000000}},{"type":"null"}],"description":"曜日別時給。キー0=日曜〜6=土曜。未指定曜日は通常単価を利用。"},"transportation_by_weekday":{"anyOf":[{"type":"object","propertyNames":{"type":"string","enum":["0","1","2","3","4","5","6"]},"additionalProperties":{"type":"integer","minimum":0,"maximum":100000000}},{"type":"null"}],"description":"曜日別交通費。キー0=日曜〜6=土曜。"}},"required":["effective_from","wage_type"],"additionalProperties":false}}}},"responses":{"201":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/staff/{user_id}/wages/{resource_id}":{"get":{"operationId":"wages_get","tags":["給与単価"],"summary":"給与単価履歴1件を取得","description":"給与単価履歴1件を取得\n\n必要権限: wages.read。","x-dmise-scope":"wages.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"description":"スタッフのUUID（staff一覧のuser_id）。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":["string","null"],"format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"user_id":{"type":"string","format":"uuid"},"effective_from":{"type":"string","format":"date"},"effective_to":{"type":["string","null"]},"wage_type":{"type":"string"},"hourly_wage":{"type":["integer","null"],"description":"時給（円）。hourlyでは必須。0も有効。"},"daily_wage":{"type":["integer","null"],"description":"日給（円）。dailyでは必須。"},"monthly_salary":{"type":["integer","null"],"description":"基本給月額（円）。monthlyでは必須。"},"monthly_standard_minutes":{"type":["integer","null"],"description":"月の所定時間（分）。monthlyでは必須。"},"contract_daily_minutes":{"type":["integer","null"],"description":"日給の所定時間（分）。dailyでは必須。"},"transportation_daily_amount":{"type":["integer","null"],"description":"日ごとの交通費（円）。"},"fixed_allowance_monthly":{"type":["integer","null"],"description":"固定手当の月額（円）。"},"fixed_late_night_allowance_monthly":{"type":["integer","null"],"description":"みなし深夜手当の月額（円）。"},"hourly_wage_by_weekday":{"type":["object","null"]},"transportation_by_weekday":{"type":["object","null"]}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"patch":{"operationId":"wages_update","tags":["給与単価"],"summary":"給与単価の入力ミスを訂正","description":"指定した店舗の既存履歴を訂正します。0はゼロ、nullは解除、省略は変更なし。確定給与に影響する訂正は拒否します。\n\n必要権限: wages.write。更新前に最新のETagを取得してください。","x-dmise-scope":"wages.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"description":"スタッフのUUID（staff一覧のuser_id）。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"effective_from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"適用開始日（YYYY-MM-DD）。"},"wage_type":{"type":"string","enum":["hourly","daily","monthly"],"description":"hourly（時給）/ daily（日給）/ monthly（月給）。"},"hourly_wage":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}],"description":"時給（円）。hourlyでは必須。0も有効。"},"daily_wage":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}],"description":"日給（円）。dailyでは必須。"},"monthly_salary":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}],"description":"基本給月額（円）。monthlyでは必須。"},"monthly_standard_minutes":{"anyOf":[{"type":"integer","minimum":1,"maximum":44640},{"type":"null"}],"description":"月の所定時間（分）。monthlyでは必須。"},"contract_daily_minutes":{"anyOf":[{"type":"integer","minimum":1,"maximum":1440},{"type":"null"}],"description":"日給の所定時間（分）。dailyでは必須。"},"transportation_daily_amount":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}],"description":"日ごとの交通費（円）。"},"fixed_allowance_monthly":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}],"description":"固定手当の月額（円）。"},"fixed_late_night_allowance_monthly":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}],"description":"みなし深夜手当の月額（円）。"},"hourly_wage_by_weekday":{"anyOf":[{"type":"object","propertyNames":{"type":"string","enum":["0","1","2","3","4","5","6"]},"additionalProperties":{"type":"integer","minimum":0,"maximum":100000000}},{"type":"null"}],"description":"曜日別時給。キー0=日曜〜6=土曜。未指定曜日は通常単価を利用。"},"transportation_by_weekday":{"anyOf":[{"type":"object","propertyNames":{"type":"string","enum":["0","1","2","3","4","5","6"]},"additionalProperties":{"type":"integer","minimum":0,"maximum":100000000}},{"type":"null"}],"description":"曜日別交通費。キー0=日曜〜6=土曜。"}},"additionalProperties":false,"minProperties":1}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"delete":{"operationId":"wages_delete","tags":["給与単価"],"summary":"給与単価の履歴を削除","description":"最後の1件と、確定済みの給与期間に影響する履歴は削除できません。前後の適用期間を再計算します。\n\n必要権限: wages.delete。更新前に最新のETagを取得してください。","x-dmise-scope":"wages.delete","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"description":"スタッフのUUID（staff一覧のuser_id）。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/periods":{"get":{"operationId":"periods_list","tags":["シフト期間"],"summary":"シフト期間一覧","description":"シフト期間一覧\n\n必要権限: periods.read。","x-dmise-scope":"periods.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"q","in":"query","description":"名称・コード・分類などを部分一致検索。","schema":{"type":"string"}},{"name":"limit","in":"query","description":"1〜100。省略時50。","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","description":"0〜100000。省略時0。","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"sort","in":"query","description":"許可値：start_date, name, created_at, updated_at。省略時は先頭。","schema":{"type":"string","enum":["start_date","name","created_at","updated_at"]}},{"name":"order","in":"query","description":"asc / desc。省略時asc。","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}},{"name":"status","in":"query","description":"状態で絞り込み。allで全件。is_activeのマスターはactive / inactive。","schema":{"type":"string"}},{"name":"date_from","in":"query","description":"対象日の下限（含む）。期間・単価は適用期間の重なりで検索。","schema":{"type":"string","format":"date"}},{"name":"date_to","in":"query","description":"対象日の上限（含む）。","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"start_date":{"type":"string"},"end_date":{"type":"string"},"status":{"type":"string"},"request_deadline_at":{"type":"string","format":"date-time"},"use_time_slots":{"type":"boolean"},"schedule":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"is_published":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}}},"closed_days":{"type":"array","items":{"type":"object","properties":{"work_date":{"type":"string"},"reason":{"type":["string","null"]}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"post":{"operationId":"periods_create","tags":["シフト期間"],"summary":"シフト期間を作成","description":"1〜62日。モード2は時間帯方式を使いません。自動の一斉通知は行いません。\n\n必要権限: periods.write。","x-dmise-scope":"periods.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"名称。"},"start_date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"開始日。"},"end_date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"終了日。開始日を含め最大62日。"},"request_deadline_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"希望の受付締切（タイムゾーン付き日時）。"},"use_time_slots":{"type":"boolean","description":"モード1の希望提出で勤務時間帯を使うか。モード2はfalse。"}},"required":["name","start_date","end_date","request_deadline_at"],"additionalProperties":false}}}},"responses":{"201":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/periods/{period_id}":{"get":{"operationId":"periods_get","tags":["シフト期間"],"summary":"期間・休業日・公開状態を取得","description":"期間・休業日・公開状態を取得\n\n必要権限: periods.read。","x-dmise-scope":"periods.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"start_date":{"type":"string"},"end_date":{"type":"string"},"status":{"type":"string"},"request_deadline_at":{"type":"string","format":"date-time"},"use_time_slots":{"type":"boolean"},"schedule":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"is_published":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}}},"closed_days":{"type":"array","items":{"type":"object","properties":{"work_date":{"type":"string"},"reason":{"type":["string","null"]}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"patch":{"operationId":"periods_update","tags":["シフト期間"],"summary":"未公開期間の名称・希望締切などを変更","description":"未公開期間の名称・希望締切などを変更\n\n必要権限: periods.write。更新前に最新のETagを取得してください。","x-dmise-scope":"periods.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"名称。"},"request_deadline_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"希望の受付締切（タイムゾーン付き日時）。"}},"additionalProperties":false,"minProperties":1}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"delete":{"operationId":"periods_delete","tags":["シフト期間"],"summary":"未公開のシフト期間を削除","description":"期間内の希望・下書き割当も削除されます。公開済みの期間は先に編集を再開してください。\n\n必要権限: periods.delete。更新前に最新のETagを取得してください。","x-dmise-scope":"periods.delete","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/periods/{period_id}/closed-days":{"post":{"operationId":"periods_closed_day","tags":["シフト期間"],"summary":"休業日を設定・解除","description":"休業日を設定・解除\n\n必要権限: periods.write。更新前に最新のETagを取得してください。","x-dmise-scope":"periods.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"assignments一覧のETag（スケジュール全体の版）。未作成は\"empty\"。テンプレート保存も元期間の版を指定。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"work_date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"日本時間の勤務日（YYYY-MM-DD）。"},"closed":{"type":"boolean","description":"trueで休業日設定、falseで解除。割当のある日は休業にできません。"},"reason":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"操作理由。勤怠の登録・修正・無効化は必須。"}},"required":["work_date","closed"],"additionalProperties":false}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"period_id":{"type":"string","format":"uuid"},"assignment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"is_published":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/periods/{period_id}/publish":{"post":{"operationId":"shifts_publish","tags":["シフト割当"],"summary":"シフトを公開","description":"公開権限が必要です。公開はスタッフへの閲覧を許可します。一斉メール・プッシュ通知は自動送信しません。\n\n必要権限: shifts.publish。更新前に最新のETagを取得してください。","x-dmise-scope":"shifts.publish","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"assignments一覧のETag（スケジュール全体の版）。未作成は\"empty\"。テンプレート保存も元期間の版を指定。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"period_id":{"type":"string","format":"uuid"},"assignment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"is_published":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/periods/{period_id}/unpublish":{"post":{"operationId":"shifts_unpublish","tags":["シフト割当"],"summary":"シフトの編集を再開","description":"公開権限が必要です。公開はスタッフへの閲覧を許可します。一斉メール・プッシュ通知は自動送信しません。\n\n必要権限: shifts.publish。更新前に最新のETagを取得してください。","x-dmise-scope":"shifts.publish","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"assignments一覧のETag（スケジュール全体の版）。未作成は\"empty\"。テンプレート保存も元期間の版を指定。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"period_id":{"type":"string","format":"uuid"},"assignment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"is_published":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/periods/{period_id}/assignments":{"get":{"operationId":"shifts_list","tags":["シフト割当"],"summary":"モードに応じたシフト割当を取得","description":"モードに応じたシフト割当を取得\n\n必要権限: shifts.read。","x-dmise-scope":"shifts.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","description":"1〜100。省略時50。","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","description":"0〜100000。省略時0。","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"sort","in":"query","description":"許可値：work_date, start_at, created_at, updated_at, user_id。省略時は先頭。","schema":{"type":"string","enum":["work_date","start_at","created_at","updated_at","user_id"]}},{"name":"order","in":"query","description":"asc / desc。省略時asc。","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}},{"name":"user_id","in":"query","description":"スタッフUUIDで絞り込み。","schema":{"type":"string","format":"uuid"}},{"name":"position_id","in":"query","description":"役割UUIDで絞り込み。","schema":{"type":"string","format":"uuid"}},{"name":"date_from","in":"query","description":"対象日の下限（含む）。期間・単価は適用期間の重なりで検索。","schema":{"type":"string","format":"date"}},{"name":"date_to","in":"query","description":"対象日の上限（含む）。","schema":{"type":"string","format":"date"}},{"name":"status","in":"query","description":"draft / confirmed / cancelled / all。省略時は取消済みを除外。","schema":{"type":"string"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"user_id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"shift_schedule_id":{"type":"string","format":"uuid"},"work_date":{"type":"string"},"position_id":{"type":["string","null"],"format":"uuid"},"all_day":{"type":"boolean"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"end_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"break_minutes":{"type":"number"},"status":{"type":"string"},"note":{"type":["string","null"]},"role_label":{"type":["string","null"]}},"required":[],"additionalProperties":true}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"post":{"operationId":"shifts_create","tags":["シフト割当"],"summary":"割当を追加","description":"割当を追加\n\n必要権限: shifts.write。更新前に最新のETagを取得してください。","x-dmise-scope":"shifts.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"assignments一覧のETag（スケジュール全体の版）。未作成は\"empty\"。テンプレート保存も元期間の版を指定。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"スタッフのUUID（staff一覧のuser_id）。"},"work_date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"日本時間の勤務日（YYYY-MM-DD）。"},"position_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"役割UUID。モード2の割当では必須。"},"role_label":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"モード1の表示用役割名。有効なposition_idを指定した場合はマスター名を使用。"},"all_day":{"type":"boolean","description":"モード2は省略時true。終日は時刻なし・休憩0。モード1はfalse。"},"start_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}],"description":"タイムゾーン付き開始日時。勤務日と日本時間の日付を合わせます。"},"end_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}],"description":"終了日時。開始より後、24時間以内。"},"break_minutes":{"type":"integer","minimum":0,"maximum":1440,"description":"休憩の分数。勤務時間を超える値は不可。"},"note":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"description":"備考。nullで解除。"},"time_slot_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"モード1の有効な勤務時間帯UUID。明示した場合はマスター時刻を適用。モード2はnull。"}},"required":["user_id","work_date"],"additionalProperties":false}}}},"responses":{"201":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"period_id":{"type":"string","format":"uuid"},"assignment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"is_published":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/periods/{period_id}/assignments/{resource_id}":{"get":{"operationId":"shifts_get","tags":["シフト割当"],"summary":"割当1件を取得","description":"割当1件を取得\n\n必要権限: shifts.read。","x-dmise-scope":"shifts.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"user_id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"shift_schedule_id":{"type":"string","format":"uuid"},"work_date":{"type":"string"},"position_id":{"type":["string","null"],"format":"uuid"},"all_day":{"type":"boolean"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"end_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"break_minutes":{"type":"number"},"status":{"type":"string"},"note":{"type":["string","null"]},"role_label":{"type":["string","null"]}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"patch":{"operationId":"shifts_update","tags":["シフト割当"],"summary":"割当1件を変更","description":"割当1件を変更\n\n必要権限: shifts.write。更新前に最新のETagを取得してください。","x-dmise-scope":"shifts.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"assignments一覧のETag（スケジュール全体の版）。未作成は\"empty\"。テンプレート保存も元期間の版を指定。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"スタッフのUUID（staff一覧のuser_id）。"},"work_date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"日本時間の勤務日（YYYY-MM-DD）。"},"position_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"役割UUID。モード2の割当では必須。"},"role_label":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"モード1の表示用役割名。有効なposition_idを指定した場合はマスター名を使用。"},"all_day":{"type":"boolean","description":"モード2は省略時true。終日は時刻なし・休憩0。モード1はfalse。"},"start_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}],"description":"タイムゾーン付き開始日時。勤務日と日本時間の日付を合わせます。"},"end_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}],"description":"終了日時。開始より後、24時間以内。"},"break_minutes":{"type":"integer","minimum":0,"maximum":1440,"description":"休憩の分数。勤務時間を超える値は不可。"},"note":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"description":"備考。nullで解除。"},"time_slot_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"モード1の有効な勤務時間帯UUID。明示した場合はマスター時刻を適用。モード2はnull。"}},"additionalProperties":false,"minProperties":1}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"period_id":{"type":"string","format":"uuid"},"assignment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"is_published":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"delete":{"operationId":"shifts_delete","tags":["シフト割当"],"summary":"割当1件を取消","description":"割当1件を取消\n\n必要権限: shifts.delete。更新前に最新のETagを取得してください。","x-dmise-scope":"shifts.delete","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"assignments一覧のETag（スケジュール全体の版）。未作成は\"empty\"。テンプレート保存も元期間の版を指定。","schema":{"type":"string"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"period_id":{"type":"string","format":"uuid"},"assignment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"is_published":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/periods/{period_id}/assignments/batch":{"post":{"operationId":"shifts_batch","tags":["シフト割当"],"summary":"最大500件の割当を原子的に追加・変更・取消","description":"1件でも不正なら全件を戻します。取消を含む場合はshifts.deleteも必要です。\n\n必要権限: shifts.write。更新前に最新のETagを取得してください。","x-dmise-scope":"shifts.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"assignments一覧のETag（スケジュール全体の版）。未作成は\"empty\"。テンプレート保存も元期間の版を指定。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"changes":{"minItems":1,"maxItems":500,"type":"array","items":{"anyOf":[{"type":"object","properties":{"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"スタッフのUUID（staff一覧のuser_id）。"},"work_date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"日本時間の勤務日（YYYY-MM-DD）。"},"position_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"役割UUID。モード2の割当では必須。"},"role_label":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"モード1の表示用役割名。有効なposition_idを指定した場合はマスター名を使用。"},"all_day":{"type":"boolean","description":"モード2は省略時true。終日は時刻なし・休憩0。モード1はfalse。"},"start_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}],"description":"タイムゾーン付き開始日時。勤務日と日本時間の日付を合わせます。"},"end_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}],"description":"終了日時。開始より後、24時間以内。"},"break_minutes":{"type":"integer","minimum":0,"maximum":1440,"description":"休憩の分数。勤務時間を超える値は不可。"},"note":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"description":"備考。nullで解除。"},"time_slot_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"モード1の有効な勤務時間帯UUID。明示した場合はマスター時刻を適用。モード2はnull。"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"レコードUUID。バッチ追加時は接続元でUUIDを生成してください。"}},"required":["user_id","work_date","id"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"レコードUUID。バッチ追加時は接続元でUUIDを生成してください。"},"remove":{"type":"boolean","const":true,"description":"trueで割当取消。idとremoveだけを指定。shifts.deleteも必要。"}},"required":["id","remove"],"additionalProperties":false}]},"description":"最大500件。全件を一つの処理で適用します。"}},"required":["changes"],"additionalProperties":false}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"period_id":{"type":"string","format":"uuid"},"assignment_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"is_published":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/periods/{period_id}/requests":{"get":{"operationId":"requests_list","tags":["希望・提出"],"summary":"希望内容・提出状況一覧","description":"希望内容・提出状況一覧\n\n必要権限: requests.read。","x-dmise-scope":"requests.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","description":"1〜100。省略時50。","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","description":"0〜100000。省略時0。","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"user_id","in":"query","description":"スタッフUUIDで絞り込み。","schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","description":"submitted / draft / unsubmitted / all。","schema":{"type":"string"}},{"name":"sort","in":"query","description":"許可値：display_name, submitted_at, updated_at。省略時は先頭。","schema":{"type":"string","enum":["display_name","submitted_at","updated_at"]}},{"name":"order","in":"query","description":"asc / desc。省略時asc。","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"user_id":{"type":"string","format":"uuid"},"request_id":{"type":["string","null"],"format":"uuid"},"display_name":{"type":"string"},"status":{"type":"string","enum":["submitted","draft","unsubmitted"]},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"note":{"type":["string","null"]},"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"work_date":{"type":"string"},"entry_type":{"type":"string"},"is_all_day":{"type":"boolean"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"end_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"time_slot_id":{"type":["string","null"]},"note":{"type":["string","null"]},"position_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/periods/{period_id}/requests/{user_id}":{"get":{"operationId":"requests_get","tags":["希望・提出"],"summary":"スタッフ1人の希望・提出状況を取得","description":"スタッフ1人の希望・提出状況を取得\n\n必要権限: requests.read。","x-dmise-scope":"requests.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"description":"スタッフのUUID（staff一覧のuser_id）。","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"user_id":{"type":"string","format":"uuid"},"request_id":{"type":["string","null"],"format":"uuid"},"display_name":{"type":"string"},"status":{"type":"string","enum":["submitted","draft","unsubmitted"]},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"note":{"type":["string","null"]},"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"work_date":{"type":"string"},"entry_type":{"type":"string"},"is_all_day":{"type":"boolean"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"end_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"time_slot_id":{"type":["string","null"]},"note":{"type":["string","null"]},"position_ids":{"type":"array","items":{"type":"string","format":"uuid"}}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"patch":{"operationId":"requests_update","tags":["希望・提出"],"summary":"管理者が希望を代理入力・修正","description":"指定日のみ置換します。未作成はIf-Match: \"empty\"。提出済みは先にreopenし、受付中・締切前のみ保存できます。モード2の希望役割はposition_idsで指定します。\n\n必要権限: requests.write。更新前に最新のETagを取得してください。","x-dmise-scope":"requests.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"description":"スタッフのUUID（staff一覧のuser_id）。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"entries":{"maxItems":62,"type":"array","items":{"type":"object","properties":{"work_date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"日本時間の勤務日（YYYY-MM-DD）。"},"entry_type":{"type":"string","enum":["available","preferred","unavailable"],"description":"available / preferred / unavailable。勤務不可には希望役割を指定できません。"},"is_all_day":{"type":"boolean","description":"希望の終日指定。trueなら時刻・時間帯は指定しません。"},"start_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}],"description":"タイムゾーン付き開始日時。勤務日と日本時間の日付を合わせます。"},"end_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}],"description":"終了日時。開始より後、24時間以内。"},"time_slot_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}],"description":"モード1の有効な勤務時間帯UUID。明示した場合はマスター時刻を適用。モード2はnull。"},"position_ids":{"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"対応・希望する有効な役割UUIDの配列。空配列で解除。希望役割はモード2のみ。"},"note":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"description":"備考。nullで解除。"}},"required":["work_date","entry_type","is_all_day"],"additionalProperties":false},"description":"指定日の希望を置換。1日1件、最大62日。他の日は保持。"},"delete_dates":{"maxItems":62,"type":"array","items":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"削除する希望の日付。entriesと同じ日を含められません。"},"note":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"description":"備考。nullで解除。"}},"required":["entries"],"additionalProperties":false,"minProperties":1}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"user_id":{"type":"string","format":"uuid"},"request_id":{"type":"string","format":"uuid"},"updated_at":{"type":"string","format":"date-time"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"delete":{"operationId":"requests_delete","tags":["希望・提出"],"summary":"未提出の希望を削除","description":"未提出の希望を削除\n\n必要権限: requests.delete。更新前に最新のETagを取得してください。","x-dmise-scope":"requests.delete","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"description":"スタッフのUUID（staff一覧のuser_id）。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"user_id":{"type":"string","format":"uuid"},"request_id":{"type":"string","format":"uuid"},"updated_at":{"type":"string","format":"date-time"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/periods/{period_id}/requests/{user_id}/submit":{"post":{"operationId":"requests_submit","tags":["希望・提出"],"summary":"代理入力した希望を提出","description":"代理入力した希望を提出\n\n必要権限: requests.write。更新前に最新のETagを取得してください。","x-dmise-scope":"requests.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"description":"スタッフのUUID（staff一覧のuser_id）。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"user_id":{"type":"string","format":"uuid"},"request_id":{"type":"string","format":"uuid"},"updated_at":{"type":"string","format":"date-time"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/periods/{period_id}/requests/{user_id}/reopen":{"post":{"operationId":"requests_reopen","tags":["希望・提出"],"summary":"希望の提出を取り消す","description":"希望の提出を取り消す\n\n必要権限: requests.write。更新前に最新のETagを取得してください。","x-dmise-scope":"requests.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"period_id","in":"path","required":true,"description":"シフト期間UUID。","schema":{"type":"string","format":"uuid"}},{"name":"user_id","in":"path","required":true,"description":"スタッフのUUID（staff一覧のuser_id）。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"user_id":{"type":"string","format":"uuid"},"request_id":{"type":"string","format":"uuid"},"updated_at":{"type":"string","format":"date-time"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/attendance":{"get":{"operationId":"attendance_list","tags":["勤怠"],"summary":"勤怠記録一覧","description":"勤怠記録一覧\n\n必要権限: attendance.read。","x-dmise-scope":"attendance.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","description":"1〜100。省略時50。","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","description":"0〜100000。省略時0。","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"user_id","in":"query","description":"スタッフUUIDで絞り込み。","schema":{"type":"string","format":"uuid"}},{"name":"date_from","in":"query","description":"対象日の下限（含む）。期間・単価は適用期間の重なりで検索。","schema":{"type":"string","format":"date"}},{"name":"date_to","in":"query","description":"対象日の上限（含む）。","schema":{"type":"string","format":"date"}},{"name":"status","in":"query","description":"状態で絞り込み。allで全件。is_activeのマスターはactive / inactive。","schema":{"type":"string"}},{"name":"sort","in":"query","description":"許可値：work_date, clock_in_at, created_at, updated_at。省略時は先頭。","schema":{"type":"string","enum":["work_date","clock_in_at","created_at","updated_at"]}},{"name":"order","in":"query","description":"asc / desc。省略時asc。","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"user_id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"work_date":{"type":"string"},"clock_in_at":{"type":"string","format":"date-time"},"clock_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"break_minutes":{"type":"number"},"status":{"type":"string"},"review_status":{"type":"string"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"event_at":{"type":"string","format":"date-time"},"event_type":{"type":"string"}},"required":[],"additionalProperties":true}},"review_logs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"actor_user_id":{"type":"string","format":"uuid"},"action":{"type":"string"},"comment":{"type":["string","null"]},"before_data":{"type":["object","null"]},"after_data":{"type":["object","null"]},"created_at":{"type":"string","format":"date-time"}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"post":{"operationId":"attendance_create","tags":["勤怠"],"summary":"完了した勤怠を手動登録","description":"完了した勤怠を手動登録\n\n必要権限: attendance.write。","x-dmise-scope":"attendance.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"user_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"スタッフのUUID（staff一覧のuser_id）。"},"work_date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"日本時間の勤務日（YYYY-MM-DD）。"},"clock_in_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"タイムゾーン付き出勤日時。"},"clock_out_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"タイムゾーン付き退勤日時。未完了の打刻作成ではなく、完了した勤怠を登録します。"},"break_minutes":{"type":"integer","minimum":0,"maximum":1440,"description":"休憩の分数。勤務時間を超える値は不可。"},"reason":{"type":"string","minLength":1,"maxLength":400,"description":"操作理由。勤怠の登録・修正・無効化は必須。"}},"required":["user_id","work_date","clock_in_at","clock_out_at","break_minutes","reason"],"additionalProperties":false}}}},"responses":{"201":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/attendance/{resource_id}":{"get":{"operationId":"attendance_get","tags":["勤怠"],"summary":"勤怠1件と休憩・修正履歴を取得","description":"勤怠1件と休憩・修正履歴を取得\n\n必要権限: attendance.read。","x-dmise-scope":"attendance.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"user_id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"work_date":{"type":"string"},"clock_in_at":{"type":"string","format":"date-time"},"clock_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"break_minutes":{"type":"number"},"status":{"type":"string"},"review_status":{"type":"string"},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"event_at":{"type":"string","format":"date-time"},"event_type":{"type":"string"}},"required":[],"additionalProperties":true}},"review_logs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"actor_user_id":{"type":"string","format":"uuid"},"action":{"type":"string"},"comment":{"type":["string","null"]},"before_data":{"type":["object","null"]},"after_data":{"type":["object","null"]},"created_at":{"type":"string","format":"date-time"}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"patch":{"operationId":"attendance_update","tags":["勤怠"],"summary":"勤怠の時刻・休憩を訂正","description":"勤怠の時刻・休憩を訂正\n\n必要権限: attendance.write。更新前に最新のETagを取得してください。","x-dmise-scope":"attendance.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"clock_in_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"タイムゾーン付き出勤日時。"},"clock_out_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"タイムゾーン付き退勤日時。未完了の打刻作成ではなく、完了した勤怠を登録します。"},"break_minutes":{"type":"integer","minimum":0,"maximum":1440,"description":"休憩の分数。勤務時間を超える値は不可。"},"reason":{"type":"string","minLength":1,"maxLength":400,"description":"操作理由。勤怠の登録・修正・無効化は必須。"}},"required":["reason"],"additionalProperties":false,"minProperties":1}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"delete":{"operationId":"attendance_delete","tags":["勤怠"],"summary":"勤怠を無効化","description":"勤怠を無効化\n\n必要権限: attendance.delete。更新前に最新のETagを取得してください。","x-dmise-scope":"attendance.delete","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":400,"description":"操作理由。勤怠の登録・修正・無効化は必須。"}},"required":["reason"],"additionalProperties":false}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/payroll-runs":{"get":{"operationId":"payroll_list","tags":["給与集計"],"summary":"保存済みの会社給与集計一覧","description":"保存済みの会社給与集計一覧\n\n必要権限: payroll.read。","x-dmise-scope":"payroll.read","parameters":[{"name":"limit","in":"query","description":"1〜100。省略時50。","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","description":"0〜100000。省略時0。","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"date_from","in":"query","description":"対象日の下限（含む）。期間・単価は適用期間の重なりで検索。","schema":{"type":"string","format":"date"}},{"name":"date_to","in":"query","description":"対象日の上限（含む）。","schema":{"type":"string","format":"date"}},{"name":"status","in":"query","description":"状態で絞り込み。allで全件。is_activeのマスターはactive / inactive。","schema":{"type":"string"}},{"name":"sort","in":"query","description":"許可値：target_month, created_at, updated_at。省略時は先頭。","schema":{"type":"string","enum":["target_month","created_at","updated_at"]}},{"name":"order","in":"query","description":"asc / desc。省略時asc。","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"target_month":{"type":"string"},"period_start":{"type":"string"},"period_end":{"type":"string"},"status":{"type":"string"},"locked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"user_id":{"type":"string","format":"uuid"},"work_days":{"type":"number"},"actual_work_minutes":{"type":"number"},"rounded_work_minutes":{"type":"number"},"break_minutes":{"type":"number"},"estimated_base_pay":{"type":"number"},"estimated_total_pay":{"type":"number"},"transportation_amount":{"type":"number"},"allowance_amount":{"type":"number"},"late_night_premium":{"type":"number"},"overtime_premium":{"type":"number"},"paid_leave_days":{"type":"number"},"paid_leave_pay":{"type":"number"},"wage_rate_breakdown":{"type":["array","null"]},"daily_breakdown":{"type":["array","null"]},"warnings":{"type":["array","null"]}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/payroll-runs/{resource_id}":{"get":{"operationId":"payroll_get","tags":["給与集計"],"summary":"給与集計・スタッフ別の金額を取得","description":"給与集計・スタッフ別の金額を取得\n\n必要権限: payroll.read。","x-dmise-scope":"payroll.read","parameters":[{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","description":"1〜100。省略時50。","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","description":"0〜100000。省略時0。","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"target_month":{"type":"string"},"period_start":{"type":"string"},"period_end":{"type":"string"},"status":{"type":"string"},"locked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"user_id":{"type":"string","format":"uuid"},"work_days":{"type":"number"},"actual_work_minutes":{"type":"number"},"rounded_work_minutes":{"type":"number"},"break_minutes":{"type":"number"},"estimated_base_pay":{"type":"number"},"estimated_total_pay":{"type":"number"},"transportation_amount":{"type":"number"},"allowance_amount":{"type":"number"},"late_night_premium":{"type":"number"},"overtime_premium":{"type":"number"},"paid_leave_days":{"type":"number"},"paid_leave_pay":{"type":"number"},"wage_rate_breakdown":{"type":["array","null"]},"daily_breakdown":{"type":["array","null"]},"warnings":{"type":["array","null"]}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/payroll-settings":{"get":{"operationId":"payroll_settings_get","tags":["給与計算設定"],"summary":"会社の給与計算設定を取得","description":"会社の給与計算設定を取得\n\n必要権限: payroll_settings.read。","x-dmise-scope":"payroll_settings.read","parameters":[],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":["string","null"],"format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"closing_day":{"anyOf":[{"type":"integer","minimum":1,"maximum":28},{"type":"null"}],"description":"給与締め日。1〜28、nullで月末。"},"rounding_unit_minutes":{"anyOf":[{"type":"number","const":1},{"type":"number","const":5},{"type":"number","const":10},{"type":"number","const":15},{"type":"number","const":30}],"description":"丸め単位（分）。"},"clock_in_rounding":{"type":"string","enum":["exact","floor","ceil","nearest"],"description":"出勤丸め。exact / floor / ceil / nearest。"},"clock_out_rounding":{"type":"string","enum":["exact","floor","ceil","nearest"],"description":"退勤丸め。exact / floor / ceil / nearest。"},"break_rounding":{"type":"string","enum":["exact","floor","ceil","nearest"],"description":"休憩丸め。exact / floor / ceil / nearest。"},"standard_daily_minutes":{"anyOf":[{"type":"integer","minimum":1,"maximum":1440},{"type":"null"}],"description":"標準の1日勤務時間（分）。"},"standard_monthly_minutes":{"anyOf":[{"type":"integer","minimum":60,"maximum":24000},{"type":"null"}],"description":"標準の月勤務時間（分）。"},"daily_regular_minutes":{"type":"integer","minimum":1,"maximum":480,"description":"1日の法定労働時間（分、最大480）。"},"weekly_regular_minutes":{"anyOf":[{"type":"integer","minimum":1,"maximum":10080},{"type":"null"}],"description":"週の法定労働時間（分）。"},"overtime_wage_rate_percent":{"type":"integer","minimum":0,"maximum":200,"description":"時間外の割増率（%）。25は25%加算。"},"late_night_wage_rate_percent":{"type":"integer","minimum":0,"maximum":200,"description":"深夜の割増率（%）。"},"holiday_wage_rate_percent":{"type":"integer","minimum":0,"maximum":200,"description":"法定休日の割増率（%）。"},"over_sixty_wage_rate_percent":{"type":"integer","minimum":0,"maximum":200,"description":"月60時間超の時間外割増率（%）。"},"week_start_day":{"type":"integer","minimum":0,"maximum":6,"description":"週の開始曜日。0=日曜〜6=土曜。"}},"required":[],"additionalProperties":true},{"type":"null"}]},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"patch":{"operationId":"payroll_settings_update","tags":["給与計算設定"],"summary":"会社の給与計算設定を変更","description":"オーナー専用。確定済み集計がある場合の締め日変更は拒否します。\n\n必要権限: payroll_settings.write。更新前に最新のETagを取得してください。","x-dmise-scope":"payroll_settings.write","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"closing_day":{"anyOf":[{"type":"integer","minimum":1,"maximum":28},{"type":"null"}],"description":"給与締め日。1〜28、nullで月末。"},"rounding_unit_minutes":{"anyOf":[{"type":"number","const":1},{"type":"number","const":5},{"type":"number","const":10},{"type":"number","const":15},{"type":"number","const":30}],"description":"丸め単位（分）。"},"clock_in_rounding":{"type":"string","enum":["exact","floor","ceil","nearest"],"description":"出勤丸め。exact / floor / ceil / nearest。"},"clock_out_rounding":{"type":"string","enum":["exact","floor","ceil","nearest"],"description":"退勤丸め。exact / floor / ceil / nearest。"},"break_rounding":{"type":"string","enum":["exact","floor","ceil","nearest"],"description":"休憩丸め。exact / floor / ceil / nearest。"},"standard_daily_minutes":{"anyOf":[{"type":"integer","minimum":1,"maximum":1440},{"type":"null"}],"description":"標準の1日勤務時間（分）。"},"standard_monthly_minutes":{"anyOf":[{"type":"integer","minimum":60,"maximum":24000},{"type":"null"}],"description":"標準の月勤務時間（分）。"},"daily_regular_minutes":{"type":"integer","minimum":1,"maximum":480,"description":"1日の法定労働時間（分、最大480）。"},"weekly_regular_minutes":{"anyOf":[{"type":"integer","minimum":1,"maximum":10080},{"type":"null"}],"description":"週の法定労働時間（分）。"},"overtime_wage_rate_percent":{"type":"integer","minimum":0,"maximum":200,"description":"時間外の割増率（%）。25は25%加算。"},"late_night_wage_rate_percent":{"type":"integer","minimum":0,"maximum":200,"description":"深夜の割増率（%）。"},"holiday_wage_rate_percent":{"type":"integer","minimum":0,"maximum":200,"description":"法定休日の割増率（%）。"},"over_sixty_wage_rate_percent":{"type":"integer","minimum":0,"maximum":200,"description":"月60時間超の時間外割増率（%）。"},"week_start_day":{"type":"integer","minimum":0,"maximum":6,"description":"週の開始曜日。0=日曜〜6=土曜。"}},"additionalProperties":false,"minProperties":1}}}},"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/invitations":{"get":{"operationId":"invitations_list","tags":["招待"],"summary":"発行済み招待一覧","description":"発行済み招待一覧\n\n必要権限: invitations.read。","x-dmise-scope":"invitations.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"q","in":"query","description":"名称・コード・分類などを部分一致検索。","schema":{"type":"string"}},{"name":"limit","in":"query","description":"1〜100。省略時50。","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","description":"0〜100000。省略時0。","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"sort","in":"query","description":"許可値：created_at, expires_at, email, updated_at。省略時は先頭。","schema":{"type":"string","enum":["created_at","expires_at","email","updated_at"]}},{"name":"order","in":"query","description":"asc / desc。省略時asc。","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}},{"name":"status","in":"query","description":"状態で絞り込み。allで全件。is_activeのマスターはactive / inactive。","schema":{"type":"string"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"email":{"type":["string","null"]},"invite_code":{"type":"string"},"expires_at":{"type":"string","format":"date-time"},"max_uses":{"type":"number"},"used_count":{"type":"number"},"status":{"type":"string"}},"required":[],"additionalProperties":true}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"post":{"operationId":"invitations_create","tags":["招待"],"summary":"スタッフの招待コードを発行","description":"スタッフ権限の招待コードを発行します。メールは自動送信せず、返却されたコードを接続元で案内できます。\n\n必要権限: invitations.write。","x-dmise-scope":"invitations.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"anyOf":[{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}],"description":"メールアドレス。通常アカウントのログインメールは変更しません。"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"失効日時。招待では未来の日時が必須。"},"max_uses":{"default":1,"type":"integer","minimum":1,"maximum":100,"description":"招待の使用回数上限。"}},"required":["expires_at"],"additionalProperties":false}}}},"responses":{"201":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"invite_code":{"type":"string"},"expires_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/invitations/{resource_id}":{"delete":{"operationId":"invitations_delete","tags":["招待"],"summary":"招待を取消","description":"招待を取消\n\n必要権限: invitations.delete。更新前に最新のETagを取得してください。","x-dmise-scope":"invitations.delete","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/templates":{"get":{"operationId":"templates_list","tags":["配置テンプレート"],"summary":"モード2の配置テンプレート一覧","description":"モード2の配置テンプレート一覧\n\n必要権限: templates.read。","x-dmise-scope":"templates.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","description":"1〜100。省略時50。","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","description":"0〜100000。省略時0。","schema":{"type":"integer","minimum":0,"maximum":100000,"default":0}},{"name":"q","in":"query","description":"名称・コード・分類などを部分一致検索。","schema":{"type":"string"}},{"name":"sort","in":"query","description":"許可値：created_at, name。省略時は先頭。","schema":{"type":"string","enum":["created_at","name"]}},{"name":"order","in":"query","description":"asc / desc。省略時asc。","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"created_by":{"type":"string","format":"uuid"},"day_count":{"type":"number"},"cell_count":{"type":"number"},"cells":{"type":"array","items":{"type":"object","properties":{"dayOffset":{"type":"number"},"userId":{"type":"string","format":"uuid"},"positionId":{"type":"string","format":"uuid"},"allDay":{"type":"boolean"},"startTime":{"type":["string","null"]},"endTime":{"type":["string","null"]},"breakMinutes":{"type":"number"},"note":{"type":["string","null"]}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true}},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"post":{"operationId":"templates_create","tags":["配置テンプレート"],"summary":"保存済みシフトをテンプレートとして保存","description":"保存済みシフトをテンプレートとして保存\n\n必要権限: templates.write。更新前に最新のETagを取得してください。","x-dmise-scope":"templates.write","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"assignments一覧のETag（スケジュール全体の版）。未作成は\"empty\"。テンプレート保存も元期間の版を指定。","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"period_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"シフト期間UUID。"},"name":{"type":"string","minLength":1,"maxLength":80,"description":"名称。"},"start_date":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$","description":"開始日。"},"day_count":{"type":"integer","minimum":1,"maximum":62,"description":"テンプレートに保存する日数（1〜62）。"}},"required":["period_id","name","start_date","day_count"],"additionalProperties":false}}}},"responses":{"201":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}},"/stores/{store_id}/templates/{resource_id}":{"get":{"operationId":"templates_get","tags":["配置テンプレート"],"summary":"テンプレートの配置内容を取得","description":"テンプレートの配置内容を取得\n\n必要権限: templates.read。","x-dmise-scope":"templates.read","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"tenant_id":{"type":"string","format":"uuid"},"store_id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"name":{"type":"string"},"created_by":{"type":"string","format":"uuid"},"day_count":{"type":"number"},"cell_count":{"type":"number"},"cells":{"type":"array","items":{"type":"object","properties":{"dayOffset":{"type":"number"},"userId":{"type":"string","format":"uuid"},"positionId":{"type":"string","format":"uuid"},"allDay":{"type":"boolean"},"startTime":{"type":["string","null"]},"endTime":{"type":["string","null"]},"breakMinutes":{"type":"number"},"note":{"type":["string","null"]}},"required":[],"additionalProperties":true}}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}},"delete":{"operationId":"templates_delete","tags":["配置テンプレート"],"summary":"配置テンプレートを削除","description":"配置テンプレートを削除\n\n必要権限: templates.delete。更新前に最新のETagを取得してください。","x-dmise-scope":"templates.delete","parameters":[{"name":"store_id","in":"path","required":true,"description":"店舗UUID。","schema":{"type":"string","format":"uuid"}},{"name":"resource_id","in":"path","required":true,"description":"対象レコードのUUID。","schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"操作ごとの一意な8〜128文字。24時間保持。同じ本文・パス・If-Matchで再送してください。","schema":{"type":"string","pattern":"^[!-~]{8,128}$"}},{"name":"If-Match","in":"header","required":true,"description":"対象GETのETagを引用符付きで指定。未作成の希望・会社設定は\"empty\"。","schema":{"type":"string"}}],"responses":{"200":{"description":"成功。省略可能な項目や将来追加される項目を許容してください。","headers":{"ETag":{"description":"対象またはスケジュール全体の版。更新時はこの文字列をそのままIf-Matchへ。","schema":{"type":"string"}},"X-Request-ID":{"schema":{"type":"string","format":"uuid"}},"Idempotency-Replayed":{"description":"保存済み結果の再送時のみtrue。","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deleted":{"type":"boolean"},"status":{"type":"string"}},"required":[],"additionalProperties":true},"meta":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid"},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"},"next_offset":{"type":["integer","null"]},"schedule_mode":{"type":"integer"}},"required":[],"additionalProperties":true}},"required":["data","meta"],"additionalProperties":true}}}},"400":{"$ref":"#/components/responses/Http400"},"401":{"$ref":"#/components/responses/Http401"},"403":{"$ref":"#/components/responses/Http403"},"404":{"$ref":"#/components/responses/Http404"},"409":{"$ref":"#/components/responses/Http409"},"413":{"$ref":"#/components/responses/Http413"},"415":{"$ref":"#/components/responses/Http415"},"422":{"$ref":"#/components/responses/Http422"},"428":{"$ref":"#/components/responses/Http428"},"429":{"$ref":"#/components/responses/Http429"},"500":{"$ref":"#/components/responses/Http500"}}}}},"externalDocs":{"url":"https://d-mise.com/developers","description":"認証・更新手順・制限・日本語リファレンス"}}