API Documentation

Update API Document

Changed on

Updates a document for an API.

patch/v3/apis/{apiId}/documents/{documentId}

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

apiId, string uuid required
Example:9f5061ce-78f6-4452-9108-ad7c02821fd5

The UUID API identifier

documentId, string uuid required
Example:de5c9818-be5c-42e6-b514-e3d4bc30ddeb

The document identifier related to the API

Request body

ApiDocument required
id, string uuid

The API document identifier.

content, string

Raw markdown content to display in your Portal

title, string

The title of the document. Used to populate the <title> tag for the page

slug, string

The slug is used in generated URLs to provide human readable paths.

Defaults to slugify(title)

status, 'published' | 'unpublished'

If status=published the document will be visible in your live portal

parent_document_id, string uuid nullable

API Documents may be rendered as a tree of files.

Specify the id of another API Document as the parent_document_id to add some heirarchy do your documents.

created_at, string date-time

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time

An ISO-8601 timestamp representation of entity update date.

Example request

{
  "id": "de5c9818-be5c-42e6-b514-e3d4bc30ddeb",
  "title": "API Document",
  "slug": "api-document",
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Response

API document

object required
id, string uuid required

The API document identifier.

content, string required

Raw markdown content to display in your Portal

title, string required

The title of the document. Used to populate the <title> tag for the page

slug, string required

The slug is used in generated URLs to provide human readable paths.

Defaults to slugify(title)

status, 'published' | 'unpublished' required

If status=published the document will be visible in your live portal

parent_document_id, string uuid nullable required

API Documents may be rendered as a tree of files.

Specify the id of another API Document as the parent_document_id to add some heirarchy do your documents.

created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

An ISO-8601 timestamp representation of entity update date.

Example response

{
  "id": "de5c9818-be5c-42e6-b514-e3d4bc30ddeb",
  "title": "API Document",
  "slug": "api-document",
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    33 more changes in this revision