curl --request PUT \
--url https://api.qovery.com/skillPreset/{skillPresetId} \
--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/skillPreset/{skillPresetId}"
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.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
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/skillPreset/{skillPresetId}', 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/skillPreset/{skillPresetId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
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/skillPreset/{skillPresetId}"
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("PUT", 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.put("https://api.qovery.com/skillPreset/{skillPresetId}")
.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/skillPreset/{skillPresetId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.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>"
}Edit a skill preset
Replace a skill preset, its skill entries and its assignments with the request body, and increase its revision by one. Requires the MANAGE_ORGANIZATION_DATA permission on the preset’s organization. The content is checked as on creation, by the rules and then by the model review on AWS Bedrock, and the check fails closed: a finding answers 422, an unavailable review answers 503, and in both cases nothing is saved. An organization with AI features turned off cannot edit presets (403). A refusal for security is recorded as a SKILL_PRESET_REJECTED audit event.
The edit is recorded in the audit log as an UPDATE event with sub-target SKILL_PRESET: the change holds the new state with its full text and a summary of what changed (skills added, removed and modified, and whether the base, the template flag, the team context or the assignments changed), and the original change holds the previous state. When the text of a preset is larger than 64 KB, the audit entry keeps only the SHA-256 of each text and sets content_omitted; the revision history always holds the full text.
curl --request PUT \
--url https://api.qovery.com/skillPreset/{skillPresetId} \
--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/skillPreset/{skillPresetId}"
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.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
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/skillPreset/{skillPresetId}', 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/skillPreset/{skillPresetId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
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/skillPreset/{skillPresetId}"
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("PUT", 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.put("https://api.qovery.com/skillPreset/{skillPresetId}")
.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/skillPreset/{skillPresetId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.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 edited
Was this page helpful?