シフト表テンプレート
従業員 × 日付
- 見本の
会社名・氏名・住所・金額は 架空の ものです。

主な用途
- 店舗・飲食店・介護施設の
月間シフトの 配布 - シフト管理システムからの
印刷用の PDF - 警備・コールセンターの
勤務表
差し込み項目
API で配列名.項目名 の
| 項目 | 内容 |
|---|---|
month | 対象の |
store | 店舗・事業所名 |
created_at | 作成日 |
author | 作成者 |
staff | 従業員の |
staff.name | 氏名 |
staff.d1 | 1 日の |
staff.d2 | 2 日の |
staff.d3 | 3 日の |
staff.d4 | 4 日の |
staff.d5 | 5 日の |
staff.d6 | 6 日の |
staff.d7 | 7 日の |
staff.d8 | 8 日の |
staff.d9 | 9 日の |
staff.d10 | 10 日の |
staff.d11 | 11 日の |
staff.d12 | 12 日の |
staff.d13 | 13 日の |
staff.d14 | 14 日の |
staff.d15 | 15 日の |
staff.d16 | 16 日の |
staff.d17 | 17 日の |
staff.d18 | 18 日の |
staff.d19 | 19 日の |
staff.d20 | 20 日の |
staff.d21 | 21 日の |
staff.d22 | 22 日の |
staff.d23 | 23 日の |
staff.d24 | 24 日の |
staff.d25 | 25 日の |
staff.d26 | 26 日の |
staff.d27 | 27 日の |
staff.d28 | 28 日の |
staff.d29 | 29 日の |
staff.d30 | 30 日の |
staff.d31 | 31 日の |
staff.work_days | 出勤日数 |
staff.days_off | 公休日数 |
legend | 凡例の |
legend.code | 記号 |
legend.name | 区分 |
legend.time | 時間 |
legend.note | 備考 |
notes | 連絡事項 |
使い方
- 管理画面の
[テンプレートを 作成]で、 作成方法に 「ひな型から 作成」 を 選び、 「シフト表」 を 選択します。 レイアウトと サンプルデータが プロジェクトに 複製されます。 - テンプレートエディターで、
社名・ロゴ・項目の 配置などを 自社の 書式に 合わせて 編集します。 - API の
POST /v1/rendersにテンプレート名と データを 送信すると、 PDF を 発行します。
テスト環境のsk_test_)create_template のfrom に
API での作成と発行
POST /v1/templates のfrom にshift)POST /v1/renders に
1. ひな型からテンプレートを作成
curl https://api.docrelay.jp/v1/templates \
-H "Authorization: Bearer $DOCRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "シフト表", "from": "shift" }'2. データを送信して PDF を発行
curl https://api.docrelay.jp/v1/renders \
-H "Authorization: Bearer $DOCRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d @shift.json \
-o shift.pdfshift.json(サンプルデータ。配列は先頭の 1 件、長い文は省略)
{
"template": "シフト表",
"format": "pdf",
"data": {
"month": "2026年10月",
"store": "サンプルマート 見本町店",
"created_at": "2026-09-20",
"author": "店長 見本 一郎",
"staff": [
{
"name": "曜日",
"work_days": "",
"days_off": "",
"_align": "center",
"d1": "木",
"d2": "金",
"d3": [
{
"text": "土",
"color": "#1f5fbf"
}
],
"d4": [
{
"text": "日",
"color": "#c0392b"
}
],
"d5": "月",
"d6": "火",
"d7": "水",
"d8": "木",
"d9": "金",
"d10": [
{
"text": "土",
"color": "#1f5fbf"
}
],
"d11": [
{
"text": "日",
"color": "#c0392b"
}
],
"d12": [
{
"text": "月",
"color": "#c0392b"
}
],
"d13": "火",
"d14": "水",
"d15": "木",
"d16": "金",
"d17": [
{
"text": "土",
"color": "#1f5fbf"
}
],
"d18": [
{
"text": "日",
"color": "#c0392b"
}
],
"d19": "月",
"d20": "火",
"d21": "水",
"d22": "木",
"d23": "金",
"d24": [
{
"text": "土",
"color": "#1f5fbf"
}
],
"d25": [
{
"text": "日",
"color": "#c0392b"
}
],
"d26": "月",
"d27": "火",
"d28": "水",
"d29": "木",
"d30": "金",
"d31": [
{
"text": "土",
"color": "#1f5fbf"
}
]
}
],
"legend": [
{
"code": "A",
"name": "早番",
"time": "7:00 〜 16:00",
"note": "休憩 60 分"
}
],
"notes": "・シフトの交代を希望する場合は、前日までに店長へ申し出てください。…"
}
}


