# Detect relationships

> Finds relationships between content items and optionally saves them.

```json
{
  "/knowledge/relationships": {
    "post": {
      "tags": [
        "Knowledge"
      ],
      "summary": "Detect relationships",
      "operationId": "createKnowledgeRelationship",
      "description": "Finds relationships between content items and optionally saves them.",
      "security": [
        {
          "bearerAuth": []
        }
      ],
      "responses": {
        "201": {
          "description": "Created successfully"
        },
        "400": {
          "description": "Invalid request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Error"
              }
            }
          }
        },
        "401": {
          "description": "Unauthorized",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Error"
              }
            }
          },
          "headers": {
            "WWW-Authenticate": {
              "$ref": "#/components/headers/WWWAuthenticate"
            }
          }
        },
        "429": {
          "$ref": "#/components/responses/TooManyRequests"
        }
      }
    }
  }
}
```
