Docs
Live demo
POST/api/v2/access-profiles/{id}/template
access:manageAPI token

Create a reusable template from an adopted access-profile recommendation and create rules from that template.

Parameters

Path1 required of 1
idstringpathrequired

Access profile ID (UUID)

Request body application/json · CreateAccessProfileTemplateRequest

Optional2 fields
namestring
descriptionstring

Responses

201

Access-profile template and rules created

CreateAccessProfileTemplateResponse · 4 fields
20 fields
idstring
organization_idstring
target_idstring
enginestring
canonical_signaturestring
account_key_hashstring
rulesarray of PolicyRuleResponse
3 fields
permissionsarray of string
resourcesarray of string
originstring (AccessOrigin)

Where a row of a rule came from: written in the rule, materialized from its template, or imported from the live account at adoption or by the one-off import after an upgrade. An imported row is part of the desired state like any other row.

ruletemplateimported
5 fields
display_namestring
identity_idstring
evidencemap of string → any
skipped_accountsarray of AccessProfileAccountResponse
5 fields
display_namestring
identity_idstring
evidencemap of string → any
evidencemap of string → any
riskstring
lowhigh
2 fields
reasonstring
detailstring
statusstring
suggestedadoptingadopteddismissedstale
template_namestring
template_versioninteger
suggested_template_namestringrequired

Name to give the rule template adopted from this profile, after the access it grants (for example "Read access to billing"). Never contains the profile signature.

source_job_idstring
created_atstring
updated_atstring
expires_atstring
12 fields
bodymap of string → any
created_atstring
default_ttlstring

TTL the rule wizard offers for this template, an ISO 8601 duration.

descriptionstring
enginestring
namestring

Key of the template. Rules, versions and every /access-templates/{name} path refer to the template by it, and a rename never changes it.

display_namestring

Name people see, the same for every version. Equals name until someone renames the template with PATCH /access-templates/{name}.

max_ttlstring

Longest TTL a rule of this template may ask for (L-14), an ISO 8601 duration.

rule_countinteger

How many rules of the caller organization use the template, any version, counted the way a refused delete counts them. Present only in GET, PUT and PATCH /access-templates/{name}.

min 0
future_objects_named_rowFutureObjectsNamedRowResponse

The first row of a PostgreSQL rule or template that names its objects by name or by a name mask while Future objects are on. Future objects reach only a row on every object of its kind in a schema, so the switch reaches none of these objects. Only a rule or template saved before Principal refused such a save carries it, and its next save is refused until Future objects are off or the row covers every object of its kind. A rule carries it in every read. A template only in GET /access-templates/{name} and the version read.

4 fields
objectsstringrequired

The kind of objects of the row, in the plural.

tablessequencesfunctionstypesobjects
databasestring

The database the row names. Absent when the row names none, and always for a template.

schemastring

The schema the row names. Absent when the row names none.

namestringrequired

The object name or name mask of the row.

updated_atstring
versioninteger
policy_idsarray of string
policy_countinteger
409

Conflict

422

Unprocessable Entity - a rule of the profile keeps Future objects on while a PostgreSQL row names its objects by name or by a name mask, field_errors then names the switch

Common errors: 400 401 403 404 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close