curl --request POST \
--url https://api.qovery.com/organization/{organizationId}/skillPreset \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "backend",
"description": "",
"base": "FULL",
"is_template": false,
"team_context": "<string>",
"skills": [],
"assigned_to": {
"organization_default": false,
"role_ids": [],
"user_ids": []
}
}
'import requests
url = "https://api.qovery.com/organization/{organizationId}/skillPreset"
payload = {
"name": "backend",
"description": "",
"base": "FULL",
"is_template": False,
"team_context": "<string>",
"skills": [],
"assigned_to": {
"organization_default": False,
"role_ids": [],
"user_ids": []
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'backend',
description: '',
base: 'FULL',
is_template: false,
team_context: '<string>',
skills: [],
assigned_to: {organization_default: false, role_ids: [], user_ids: []}
})
};
fetch('https://api.qovery.com/organization/{organizationId}/skillPreset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qovery.com/organization/{organizationId}/skillPreset",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'backend',
'description' => '',
'base' => 'FULL',
'is_template' => false,
'team_context' => '<string>',
'skills' => [
],
'assigned_to' => [
'organization_default' => false,
'role_ids' => [
],
'user_ids' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qovery.com/organization/{organizationId}/skillPreset"
payload := strings.NewReader("{\n \"name\": \"backend\",\n \"description\": \"\",\n \"base\": \"FULL\",\n \"is_template\": false,\n \"team_context\": \"<string>\",\n \"skills\": [],\n \"assigned_to\": {\n \"organization_default\": false,\n \"role_ids\": [],\n \"user_ids\": []\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.qovery.com/organization/{organizationId}/skillPreset")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"backend\",\n \"description\": \"\",\n \"base\": \"FULL\",\n \"is_template\": false,\n \"team_context\": \"<string>\",\n \"skills\": [],\n \"assigned_to\": {\n \"organization_default\": false,\n \"role_ids\": [],\n \"user_ids\": []\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qovery.com/organization/{organizationId}/skillPreset")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"backend\",\n \"description\": \"\",\n \"base\": \"FULL\",\n \"is_template\": false,\n \"team_context\": \"<string>\",\n \"skills\": [],\n \"assigned_to\": {\n \"organization_default\": false,\n \"role_ids\": [],\n \"user_ids\": []\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"base": "FULL",
"is_template": true,
"skills": [
{
"skill_name": "<string>",
"mode": "DISABLE",
"description": "<string>",
"content": "<string>"
}
],
"revision": 2,
"assigned_to": {
"organization_default": false,
"role_ids": [],
"user_ids": []
},
"team_context": "<string>",
"creator_name": "<string>"
}{
"title": "Skill preset rejected for security",
"status": 422,
"detail": "<string>",
"findings": [
{
"source": "RULES",
"rule_id": "dump-secrets",
"location": "team context",
"line": 3,
"reason": "Asks the agent to print or collect secrets"
}
],
"type": "about:blank",
"instance": "<string>"
}{
"title": "Skill preset security review unavailable",
"status": 503,
"detail": "The security review is unavailable. Nothing was saved. Try again in a minute.",
"type": "about:blank",
"instance": "<string>"
}Create a skill preset
Create a skill preset and its assignments. Requires the MANAGE_ORGANIZATION_DATA permission (organization owner or admin). The preset starts at revision 1.
Set is_template to save a template: a starting point admins copy into new presets. A template is never resolved for a member and cannot have assignments.
A preset runs inside each assigned member’s coding agent, on their machine, so every create and edit is checked before anything reaches members. The check covers every field that reaches an agent (the preset description, the team context, and each skill’s description and content) and runs in two steps:
- Deterministic rules look for content that could turn the agent against its user: overriding its instructions, hiding actions from the user, skipping confirmations, reading local credentials, dumping secrets, sending data out, running remote or obfuscated code, links outside an allowlist of documentation hosts, invisible characters, HTML comments, encoded blobs and pasted credentials. Any finding answers 422 (findings with
sourceRULES) and the model is not called. - A model review on AWS Bedrock then reads the content as untrusted data, to catch paraphrased or new attacks the rules miss. A BLOCK verdict answers 422 (findings with
sourceMODEL).
The check fails closed: if the model review cannot give a verdict (error, timeout or unusable answer), the request answers 503 and nothing is saved. Because every save is sent to the model, an organization with AI features turned off cannot create or edit presets (403). Reading, resolving, loading and deleting presets are not affected. A save refused for security is recorded in the audit log as a SKILL_PRESET_REJECTED event with sub-target SKILL_PRESET, holding hashes and findings, never the text.
The creation is recorded in the audit log as a CREATE event with sub-target SKILL_PRESET, holding the saved state with its full text, and as revision 1 in the revision history.
curl --request POST \
--url https://api.qovery.com/organization/{organizationId}/skillPreset \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "backend",
"description": "",
"base": "FULL",
"is_template": false,
"team_context": "<string>",
"skills": [],
"assigned_to": {
"organization_default": false,
"role_ids": [],
"user_ids": []
}
}
'import requests
url = "https://api.qovery.com/organization/{organizationId}/skillPreset"
payload = {
"name": "backend",
"description": "",
"base": "FULL",
"is_template": False,
"team_context": "<string>",
"skills": [],
"assigned_to": {
"organization_default": False,
"role_ids": [],
"user_ids": []
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'backend',
description: '',
base: 'FULL',
is_template: false,
team_context: '<string>',
skills: [],
assigned_to: {organization_default: false, role_ids: [], user_ids: []}
})
};
fetch('https://api.qovery.com/organization/{organizationId}/skillPreset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qovery.com/organization/{organizationId}/skillPreset",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'backend',
'description' => '',
'base' => 'FULL',
'is_template' => false,
'team_context' => '<string>',
'skills' => [
],
'assigned_to' => [
'organization_default' => false,
'role_ids' => [
],
'user_ids' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qovery.com/organization/{organizationId}/skillPreset"
payload := strings.NewReader("{\n \"name\": \"backend\",\n \"description\": \"\",\n \"base\": \"FULL\",\n \"is_template\": false,\n \"team_context\": \"<string>\",\n \"skills\": [],\n \"assigned_to\": {\n \"organization_default\": false,\n \"role_ids\": [],\n \"user_ids\": []\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.qovery.com/organization/{organizationId}/skillPreset")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"backend\",\n \"description\": \"\",\n \"base\": \"FULL\",\n \"is_template\": false,\n \"team_context\": \"<string>\",\n \"skills\": [],\n \"assigned_to\": {\n \"organization_default\": false,\n \"role_ids\": [],\n \"user_ids\": []\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qovery.com/organization/{organizationId}/skillPreset")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"backend\",\n \"description\": \"\",\n \"base\": \"FULL\",\n \"is_template\": false,\n \"team_context\": \"<string>\",\n \"skills\": [],\n \"assigned_to\": {\n \"organization_default\": false,\n \"role_ids\": [],\n \"user_ids\": []\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"base": "FULL",
"is_template": true,
"skills": [
{
"skill_name": "<string>",
"mode": "DISABLE",
"description": "<string>",
"content": "<string>"
}
],
"revision": 2,
"assigned_to": {
"organization_default": false,
"role_ids": [],
"user_ids": []
},
"team_context": "<string>",
"creator_name": "<string>"
}{
"title": "Skill preset rejected for security",
"status": 422,
"detail": "<string>",
"findings": [
{
"source": "RULES",
"rule_id": "dump-secrets",
"location": "team context",
"line": 3,
"reason": "Asks the agent to print or collect secrets"
}
],
"type": "about:blank",
"instance": "<string>"
}{
"title": "Skill preset security review unavailable",
"status": 503,
"detail": "The security review is unavailable. Nothing was saved. Try again in a minute.",
"type": "about:blank",
"instance": "<string>"
}Authorizations
JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '
Body
Create and edit share this body. An edit replaces the whole preset, skill entries and assignments included.
Response
Skill preset created
Was this page helpful?