Create a document for a project
POST/api/v1/project/:projectIdentifier/docs
Create a document for a project
Request
Path Parameters
projectIdentifier stringrequired
Project identifier (ID or name)
- application/json
Body
required
name stringrequired
The name of the documentation
isUrl booleanrequired
Whether the documentation is an external URL
readme string
The content of the README if isUrl is false
docUrl string
The URL to the external documentation if isUrl is true
Responses
- 201
- application/json
- Schema
- Example (from schema)
Schema
name stringrequired
The name of the documentation
isUrl booleanrequired
Whether the documentation is an external URL
readme string
The content of the README if isUrl is false
docUrl string
The URL to the external documentation if isUrl is true
id numberrequired
Unique identifier of the documentation
createdAt date-timerequired
Timestamp when the doc was created
updatedAt date-timerequired
Timestamp when the doc was last updated
{
"name": "Project README",
"isUrl": false,
"readme": "# Project Documentation",
"docUrl": "https://example.com/docs",
"id": 1,
"createdAt": "2025-02-03T12:34:56Z",
"updatedAt": "2025-02-03T12:34:56Z"
}
Loading...