Replaces the content of an existing organization rule. The last_updated_by field is automatically set to the authenticated admin.
This endpoint requires admin privileges.
Bearer token obtained from the authenticate endpoint. The authenticated user must be an admin.
UUID of the rule to update.
Response
Returns the updated rule object.
Organization this rule belongs to.
The updated rule content.
Member ID of the admin who originally created this rule.
Member ID of the admin who made this update.
Display name of the admin who made this update.
ISO 8601 timestamp when the rule was created.
ISO 8601 timestamp of this update.
curl -X PATCH https://api.trellis.sh/v1/organization-rules/b2c3d4e5-f6a7-8901-bcde-f12345678901 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"content": "Always cite the data source and include the date of the data"}'
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"organization_id": "org_01HX...",
"content": "Always cite the data source and include the date of the data",
"created_by": "member_01HX...",
"last_updated_by": "member_02HX...",
"last_updated_by_name": "John Doe",
"created_at": "2025-02-10T08:00:00+00:00",
"updated_at": "2025-03-22T11:45:00+00:00"
}