Create API Package Document
Changed onPublish a new document attached to an API Package.
All configuration options may be provided in the frontmatter section of content. If you set values in both the POST request and in the frontmatter, the values in the POST request will take precedence.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The UUID API Package identifier
Request body
The API document identifier.
Raw markdown content to display in your Portal
The title of the document. Used to populate the <title> tag for the page
The slug is used in generated URLs to provide human readable paths.
Defaults to slugify(title)
If status=published the document will be visible in your live portal
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.
An ISO-8601 timestamp representation of entity creation date.
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 Package document
The API document identifier.
Raw markdown content to display in your Portal
The title of the document. Used to populate the <title> tag for the page
The slug is used in generated URLs to provide human readable paths.
Defaults to slugify(title)
If status=published the document will be visible in your live portal
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.
An ISO-8601 timestamp representation of entity creation date.
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
added to the
invalid_parameters/itemsresponse propertyoneOflist for the response status - warning
added the new
key_invalidenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status - warning
added the new
uniqueenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status
- breaking