00c653316d35

latestOpenAPI 3.0.32026-08-13154321638.4 KB
Harbors

Create Harbor Context

Creates and attaches a context document to a Harbor.

The new document belongs only to this Harbor. Context documents cannot be attached to multiple Harbors.

post/api/harbors/{harbor_id}/contexts

Path parameters

harbor_idstring uuid required

Unique identifier of the Harbor.

Example:248df4b7-aa70-47b8-a036-33ac447e668d

Unique identifier of the Harbor.

Headers

X-Polytomic-Versionstring

Request body

contentstring required

Plain-text context content. Maximum 20,000 characters.

descriptionstring

Short summary of the context document. Maximum 1,000 characters.

titlestring required

Human-readable context title. Maximum 200 characters.

Example request

{
  "content": "Bookings use the contract signed date...",
  "description": "Definitions used in revenue reporting",
  "title": "Revenue definitions"
}

Response

OK

Example response

{
  "data": {
    "id": "248df4b7-aa70-47b8-a036-33ac447e668d"
  }
}