Policies

Update a policy

Update fields of an existing policy. Only provided fields will be updated. You can update the title, content, status, or hosting settings.

patch/api/v1/policies/{policyId}

Request

  • Base URL: https://policyforge.co
  • URL: https://policyforge.co/api/v1/policies/{policyId}
  • Auth: HTTP bearer

Request body

titlestring
contentstring
status'draft' | 'published' | 'archived'
hosting_enabledboolean

Response

Policy updated

idstring uuid
typestring
policy_typestring

Alias of type (same value)

titlestring
contentstring
created_atstring date-time
updated_atstring date-time
published_atstring date-time nullable
effective_datestring date nullable
statusstring
hosting_enabledboolean
hosted_urlstring uri
url_slugstring

Changes

No recorded changes to this operation across all 1 revision of this API.