API Documentation
Update API documentation page
Update API documentation page
Update API documentation. The result will be the updated documentation. Only MARKDOWN and FOLDER types are supported.
Low-value for routine assistant workflows; prefer higher-level API inspection tools first.
put/environments/{envId}/apis/{apiId}/pages/{pageId}
Request body
Example request
{
"name": "My Page",
"order": 1,
"visibility": "PUBLIC",
"accessControls": [
{
"referenceId": "00f8c9e7-78fc-4907-b8c9-e778fc790750"
}
]
}Response
API Documentation Updated
Example response
{
"id": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"crossId": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"name": "My Page",
"type": "MARKDOWN",
"content": "My Page content",
"order": 1,
"lastContributor": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"published": true,
"visibility": "PUBLIC",
"updatedAt": "2018-01-01 00:00:00+00:00",
"contentType": "application/json",
"homepage": true,
"parentId": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"parentPath": "/parent",
"accessControls": [
{
"referenceId": "00f8c9e7-78fc-4907-b8c9-e778fc790750"
}
],
"attachedMedia": [
{
"name": "My Media",
"hash": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"attachedAt": "2018-01-01 00:00:00+00:00"
}
],
"contentRevision": {
"id": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"revision": 1
}
}