Update a document
PUT/api/v1/project/:projectIdentifier/docs/:id
Update a document
Request
Path Parameters
projectIdentifier stringrequired
Project identifier (ID or name)
id numberrequired
Unique identifier of the documentation
Example: 1
- application/json
Body
required
name string
The name of the documentation
isUrl boolean
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
- 200
- 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...