Skip to main content
POST
/
policies
/
{policyID}
/
activate
SDK (@phosra/sdk)
import { PhosraClient } from "@phosra/sdk";

const phosra = new PhosraClient({
  baseUrl: "https://phosra-api-sandbox-production.up.railway.app/api/v1",
  accessToken: process.env.PHOSRA_API_KEY,
});

const result = await phosra.policies.activate("b011c1e5-0000-4000-8000-000000000b01");
console.log(result);
{
  "id": "7b3e9c04-2d1a-4f68-9e5b-8c07a1f34d29",
  "child_id": "ca02f5d1-fee8-4201-b5ca-fdc8be506e1e",
  "name": "Ada's Protection Policy",
  "status": "active",
  "priority": 0,
  "version": 1,
  "created_at": "2026-06-18T14:32:07Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

policyID
string<uuid>
required

Response

Policy activated

id
string<uuid>

Unique identifier for this resource.

child_id
string<uuid>

Identifier of the child this resource belongs to.

name
string

Human-readable display name.

status
enum<string>

Current lifecycle state of the resource.

Available options:
active,
paused,
draft
priority
integer

Ordering weight when multiple policies apply; higher wins.

version
integer

Monotonically increasing version, bumped on every change.

created_at
string<date-time>

RFC 3339 timestamp of when the resource was created.