Crear Nueva Versión del Agente
curl --request POST \
--url https://api.example.com/agents/{id}/version-controlimport requests
url = "https://api.example.com/agents/{id}/version-control"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/agents/{id}/version-control', 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.example.com/agents/{id}/version-control",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/agents/{id}/version-control"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/agents/{id}/version-control")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/agents/{id}/version-control")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyAgentes
Crear Nueva Versión del Agente
Crea una nueva versión para un agente.
POST
/
agents
/
{id}
/
version-control
Crear Nueva Versión del Agente
curl --request POST \
--url https://api.example.com/agents/{id}/version-controlimport requests
url = "https://api.example.com/agents/{id}/version-control"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/agents/{id}/version-control', 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.example.com/agents/{id}/version-control",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/agents/{id}/version-control"
req, _ := http.NewRequest("POST", url, nil)
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.example.com/agents/{id}/version-control")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/agents/{id}/version-control")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyEndpoint
POST https://gateway.orkeia.ai/agents/{id}/version-control
Cabeçalhos
authorization: <tu_token>
Content-Type: application/json
Parámetros de camino
{
"id": "ID del agente (obligatorio)"
}
Cuerpo de la solicitud
| Campo | tipo | Opcional | Descripción | Ejemplo |
|---|---|---|---|---|
| responsible | string | No | Responsable por la versión | ”Orkeia-dev-team” |
| responsibleId | string | No | id del responsable | ”12345abc” |
| action | string | No | lo que se hizo | ”Criado nuevo agente” |
| type | success/ fail/ neutral | No | clasifica el resultado de la acción | Success |
| date | Date | No | fecha del evento (ISO 8601) | “2025-08-22T18:32:45.000Z” |
| versionControl | string | Sí | nombre de la versión | 1.0.0 |
{
"notes": "Descripción de los cambios en esta versión."
}
Ejemplo (cURL)
curl -X POST "https://gateway.orkeia.ai/agents/agent123/version-control" \
-H "authorization: <tu_token>" \
-H "Content-Type: application/json" \
-d '{ "notes": "Descripción de los cambios en esta versión."}'
Respuesta
{
"version": 3,
"timestamp": "2024-07-20T10:00:00Z"
}
¿Esta página le ayudó?
⌘I
