Skip to main content
PATCH
Change the AI tools settings of the company
Key: Write Scope: Company

Authorizations

Authorization
string
header
required

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

Body

application/json
defaultPolicy
enum<string>

The policy a tool gets the first time a device reports it; the tools already seen keep theirs

Available options:
not_reviewed,
approved,
blocked
ignoredSeverities
enum<string>[]

The severities whose findings the company ignores, e.g. ["low"]

Available options:
critical,
high,
medium,
low
ignoredRules
string[]

The rule codes whose findings the company ignores whatever their severity, e.g. ["unpinned_dependency"]

Maximum array length: 200
Required string length: 1 - 100
ignoredToolKeys
string[]

The tools whose findings the company ignores, by toolKey from getAiTools, e.g. ["mcp_server:figma"]; the tools stay listed

Maximum array length: 200
Required string length: 1 - 300
excludeUnassignedDevices
boolean

true: a device assigned to no employee raises no finding (its tools stay listed)

excludeInStockDevices
boolean

true: a device in stock raises no finding (its tools stay listed)

autoCreateTickets
boolean

true: each sync opens one ticket per finding the settings keep; false (the default): none opens, and the next sync completes the tickets it opened (never the ones opened by hand)

ticketSettings
object

The ticket defaults to change. Only the fields sent change; subscribers replaces the whole list, null clears the assignee or the priority.

Response

default - application/json
defaultPolicy
enum<string>
required

The policy a tool gets the first time a device reports it; the tools already seen keep theirs

Available options:
not_reviewed,
approved,
blocked
ignoredSeverities
enum<string>[]
required

The severities whose findings the company ignores, e.g. ["low"]

Available options:
critical,
high,
medium,
low
ignoredRules
string[]
required

The rule codes whose findings the company ignores whatever their severity, e.g. ["unpinned_dependency"]

Maximum array length: 200
Required string length: 1 - 100
ignoredToolKeys
string[]
required

The tools whose findings the company ignores, by toolKey from getAiTools, e.g. ["mcp_server:figma"]; the tools stay listed

Maximum array length: 200
Required string length: 1 - 300
excludeUnassignedDevices
boolean
required

true: a device assigned to no employee raises no finding (its tools stay listed)

excludeInStockDevices
boolean
required

true: a device in stock raises no finding (its tools stay listed)

autoCreateTickets
boolean
required

true: each sync opens one ticket per finding the settings keep; false (the default): none opens, and the next sync completes the tickets it opened (never the ones opened by hand)

ticketSettings
object
required

The defaults of every ticket an AI tools finding opens

rules
object[]
required

Every rule Primo rates, worst severity first