Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Latest commit

 

History

History
56 lines (40 loc) · 955 Bytes

update-roadmap.md

File metadata and controls

56 lines (40 loc) · 955 Bytes

POST /api/roadmap/:roadmapId

Description

Post all data related to a roadmap.

Request

Parameters

  • roadmapId: Id of the roadmap to post data to (in path).

Body

{
  "name": "string",
  "description": "string", 
  "data": "JSON",
  "topic": "string: programming, math, physics, biology",
  "miscData": "JSON",
  "__COMMENT__": "The following fields are optional. If they are not included, they will not be updated.",
  "isDraft": "boolean"
}

Headers

  • cookie: token=... (required)

Response

Show an example of the response.

Example:

{
  "success": true,
  "message": "Roadmap updated"
}

Response Codes

Code Description
200 Success
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found.
500 Internal Server Error.

Cookies

None