[POST] /api/chapter/:userId


Request-Header

Request-Params

userId: string , user ObjectId (Primary Key)

{
	"userId":1 
}

Request - Body


변수 목록

 {
        "tableContents": [
            {
                "chapterId": "60edf5d9e5003a744892ce34",
                "chapter": 0,
                "chapterTitle": "프롤로그 제목",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60edf5fce5003a744892ce35",
                "chapter": 1,
                "chapterTitle": "1부 목차1",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60edf607e5003a744892ce36",
                "chapter": 2,
                "chapterTitle": "1부 목차2",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60edf611e5003a744892ce37",
                "chapter": 3,
                "chapterTitle": "1부 목차3",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60edf619e5003a744892ce38",
                "chapter": 4,
                "chapterTitle": "1부 목차4",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60ee7888588d9243b096a132",
                "chapter": 5,
                "chapterTitle": "코봉의 여름",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60ee78c9e8d10879147b6749",
                "chapter": -1,
                "chapterTitle": "코봉아 사랑했어",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60ee7bc6525b5e8268087567",
                "chapter": 6,
                "chapterTitle": "코봉의 가을",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60ee7f4e844a523b7cf447fd",
                "chapter": 7,
                "chapterTitle": "코봉의 겨울",
                "episodePerchapterCount": null
            }
        ]
    }

Response - Body

SUCCESS

{
    "status": 200,
    "success": true,
    "message": "목차 리스트 추가 성공",
    "data": {
        "tableContents": [
            {
                "chapterId": "60edf5d9e5003a744892ce34",
                "chapter": 0,
                "chapterTitle": "프롤로그 제목",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60edf5fce5003a744892ce35",
                "chapter": 1,
                "chapterTitle": "1부 목차1",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60edf607e5003a744892ce36",
                "chapter": 2,
                "chapterTitle": "1부 목차2",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60edf611e5003a744892ce37",
                "chapter": 3,
                "chapterTitle": "1부 목차3",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60edf619e5003a744892ce38",
                "chapter": 4,
                "chapterTitle": "1부 목차4",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60ee7888588d9243b096a132",
                "chapter": 5,
                "chapterTitle": "코봉의 여름",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60ee78c9e8d10879147b6749",
                "chapter": -1,
                "chapterTitle": "코봉아 사랑했어",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60ee7bc6525b5e8268087567",
                "chapter": 6,
                "chapterTitle": "코봉의 가을",
                "episodePerchapterCount": null
            },
            {
                "chapterId": "60ee7f4e844a523b7cf447fd",
                "chapter": 7,
                "chapterTitle": "코봉의 겨울",
                "episodePerchapterCount": null
            }
        ]
    }
}