Policies

Update Policy

Update an existing policy entry. Only policies belonging to the organization associated with the API key can be updated.

PUT
/v1/policies/{policyId}

Authorization

bearerAuth
AuthorizationBearer <token>

Bearer token authentication for API access.

In: header

Path Parameters

policyId?number

The unique identifier of the policy

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://api.sophiie.ai/v1/policies/{policyId}" \  -H "Content-Type: application/json" \  -d '{}'
{
  "policy": {
    "id": 123,
    "title": "Privacy Policy",
    "content": "This is the content of the policy",
    "isActive": true
  }
}
{
  "success": false,
  "message": "Invalid or expired token",
  "error": {
    "status": 401,
    "message": "Invalid or expired token"
  }
}
{
  "success": false,
  "message": "Not found",
  "error": {
    "status": 404,
    "message": "Not found"
  }
}
{
  "success": false,
  "message": "Internal server error",
  "error": {
    "status": 500,
    "message": "Internal server error"
  }
}