Gerri API

Playbook Rules

Endpoints for managing rules within a playbook.


List playbook rules

GET
https://api.gerri.commonpaper.com
/v1/organizations/{organization_id}/playbooks/{playbook_id}/playbook_rules

Returns all rules for the given playbook, scoped to the current organization.

List playbook rules › path Parameters

organization_id
​string · uuid · required

Organization id

playbook_id
​string · uuid · required

Parent playbook id

List playbook rules › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

List playbook rules › Responses

A list of playbook rules


Create a playbook rule

POST
https://api.gerri.commonpaper.com
/v1/organizations/{organization_id}/playbooks/{playbook_id}/playbook_rules

Creates a new rule under the given playbook. name is required. actions is required unless generate_summary is true and questions is present. Optional: description, internal_notes, questions, generate_summary, reviewer_id. reviewer_id must be an available reviewer for the organization.

Create a playbook rule › path Parameters

organization_id
​string · uuid · required

Organization id

playbook_id
​string · uuid · required

Parent playbook id

Create a playbook rule › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Create a playbook rule › Request Body

name
​string · required

Name for the rule.

description
​string

Optional description for the rule.

actions
​string

Actions to take when this rule is triggered. Required unless generate_summary is true and questions is present.

internal_notes
​string

Optional team notes. Does not affect how Gerri applies the rule.

questions
​string

Optional questions to answer when summarizing this topic on a clean agreement.

generate_summary
​boolean

When true, Gerri summarizes this topic during a clean-agreement (summary) review. Defaults to true.

reviewer_id
​string · uuid · minLength: 1 · pattern: ^[0-9a-fA-F]{8}-[0-9…

User id of the reviewer to escalate to; must be an available reviewer for the organization. Omit to use the organization default.

Create a playbook rule › Responses

Playbook rule created; returns the new rule resource


Retrieve a playbook rule

GET
https://api.gerri.commonpaper.com
/v1/organizations/{organization_id}/playbooks/{playbook_id}/playbook_rules/{rule_id}

Returns one rule by id under the given playbook, scoped to the current organization.

Retrieve a playbook rule › path Parameters

organization_id
​string · uuid · required

Organization id

playbook_id
​string · uuid · required

Parent playbook id

rule_id
​string · uuid · required

Playbook rule id

Retrieve a playbook rule › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Retrieve a playbook rule › Responses

A single playbook rule


Update a playbook rule

PATCH
https://api.gerri.commonpaper.com
/v1/organizations/{organization_id}/playbooks/{playbook_id}/playbook_rules/{rule_id}

Updates one or more fields on a single playbook rule. Send only the fields you want to change: name, description, actions, internal_notes, questions, generate_summary, reviewer_id. Text fields description, actions, internal_notes, and questions may be sent as null to clear them. reviewer_id must be an available reviewer for the organization, or null to fall back to the organization default.

Update a playbook rule › path Parameters

organization_id
​string · uuid · required

Organization id

playbook_id
​string · uuid · required

Parent playbook id

rule_id
​string · uuid · required

Playbook rule id

Update a playbook rule › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Update a playbook rule › Request Body

name
​string

Updated name for the rule.

description
​string | null

Updated description for the rule. Send null to clear.

actions
​string | null

Updated actions for the rule. Send null to clear.

internal_notes
​string | null

Updated team notes. Send null to clear.

questions
​string | null

Updated summary questions. Send null to clear.

generate_summary
​boolean

Whether Gerri should summarize this topic during a clean-agreement review.

​

User id of the reviewer to escalate to; must be an available reviewer for the organization. Send null to fall back to the organization default.

Update a playbook rule › Responses

Updated playbook rule


Delete a playbook rule

DELETE
https://api.gerri.commonpaper.com
/v1/organizations/{organization_id}/playbooks/{playbook_id}/playbook_rules/{rule_id}

Permanently deletes one rule by id under the given playbook.

Delete a playbook rule › path Parameters

organization_id
​string · uuid · required

Organization id

playbook_id
​string · uuid · required

Parent playbook id

rule_id
​string · uuid · required

Playbook rule id

Delete a playbook rule › Headers

Authorization
​string · required

The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.

Delete a playbook rule › Responses

Playbook rule deleted; no content returned

No data returned