Skip to main content
PATCH
/
legal_pages
/
{id_or_slug}
Update legal page
curl --request PATCH \
  --url https://api.crevio.co/v1/legal_pages/{id_or_slug} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "body": "<string>"
}
'
{
  "object": "<string>",
  "id": "<string>",
  "title": "<string>",
  "slug": "<string>",
  "body": "<string>",
  "policy_type": "terms_of_service",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.crevio.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Path Parameters

id_or_slug
string
required

The resource prefix ID (e.g., "prod_abc123") or slug (e.g., "my-product")

Body

application/json
body
string

Response

Legal page updated

object
string
required
id
string
required
title
string
required
slug
string
required
body
string
required
policy_type
enum<string>
required
Available options:
terms_of_service,
privacy_policy,
refund_policy
created_at
string<date-time>
required
updated_at
string<date-time>
required