Skip to main content
PUT
/
saas
/
{saasId}
/
rule
Update a SaaS rule
curl --request PUT \
  --url https://api.getprimo.com/saas/{saasId}/rule \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>"
}
'
{
  "rule": {
    "prompt": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt

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

Key: Write Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Path Parameters

saasId
string
required

Body

application/json
prompt
string

Natural-language policy prompt. If omitted, the current prompt is preserved.

Minimum string length: 1
status
enum<string>

New lifecycle status for the rule. If omitted, the current status is preserved (or DRAFT if no rule existed yet).

Available options:
DRAFT,
ENABLED,
DISABLED

Response

default - application/json
rule
object
required

Provisioning rule configured for this SaaS, or null if no rule has been authored yet.