Templates

Create a template

post/api/v1/templates

Request

  • Base URL: https://api.gatewerk.com
  • URL: https://api.gatewerk.com/api/v1/templates
  • Auth: HTTP bearer

Request body

slugstring required

URL-safe identifier; referenced by POST /reviews.template.

namestring required
descriptionstring
default_priority'low' | 'normal' | 'high' | 'critical'
enable_review_linksboolean
auto_approveboolean
timeout_secondsinteger nullable
timeout_action'auto_approve' | 'auto_reject' | 'expire'
instructionsstring
default_auth_level'public' | 'email_otp' | 'account'
default_expiry_secondsinteger

Response

Created

object'template' required
idstring required
slugstring required
namestring required
descriptionstring nullable
default_priority'low' | 'normal' | 'high' | 'critical'
project_idstring required
status'draft' | 'active' | 'inactive'
auto_approveboolean
enable_review_linksboolean
default_auth_level'public' | 'email_otp' | 'account'

Pre-fill auth tier for ShareViaLinkDialog (spec section 8.5).

default_expiry_secondsinteger

Pre-fill link expiry in seconds (spec section 8.5). 86400 = 24h, 604800 = 7d, 2592000 = 30d.

timeout_secondsinteger nullable
timeout_action'auto_approve' | 'auto_reject' | 'expire'
instructionsstring nullable
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.