Import request templates from TOML
POST
/v1/admin/request-templates/import
const url = 'https://localhost:8080/v1/admin/request-templates/import';const options = {method: 'POST', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://localhost:8080/v1/admin/request-templates/import \ --header 'Authorization: <Authorization>'Applies a request_templates.toml document to the active organization with the same create/update/unchanged/skip semantics as startup synchronization. Every template must target the active organization. Admin or super_admin only.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
data
object
created
integer
skipped
integer
templates
Array<object>
object
name
string
organization
string
owner
string
reason
string
result
string
unchanged
integer
updated
integer
success
boolean
Example generated
{ "data": { "created": 1, "skipped": 1, "templates": [ { "name": "example", "organization": "example", "owner": "example", "reason": "example", "result": "example" } ], "unchanged": 1, "updated": 1 }, "success": true}Bad Request
Media typeapplication/json
object
error
string
message
string
success
boolean
Example
{ "error": "", "message": "Success", "success": true}Unauthorized
Media typeapplication/json
object
error
string
message
string
success
boolean
Example
{ "error": "", "message": "Success", "success": true}Forbidden
Media typeapplication/json
object
error
string
message
string
success
boolean
Example
{ "error": "", "message": "Success", "success": true}Request Entity Too Large
Media typeapplication/json
object
error
string
message
string
success
boolean
Example
{ "error": "", "message": "Success", "success": true}