curl --request PUT 'https://api.upnify.com/v4/comm/outbox/00000000-0000-4000-8000-000000000010' \
--header 'token: 00000000-0000-4000-8000-000000000001' \
--header 'Content-Type: application/json' \
--data-raw '{"tksProspectos":"00000000-0000-4000-8000-000000000010","destinatario":{},"tksOportunidades":"00000000-0000-4000-8000-000000000010","programar":1,"fecha":"2026-01-01T12:00:00.000Z","estado":1,"tkPlantilla":"00000000-0000-4000-8000-000000000010","asunto":"Asunto de ejemplo","adjuntos":"archivo-ejemplo.pdf","cuerpo":"Texto de ejemplo para la comunicación."}'const response = await fetch('https://api.upnify.com/v4/comm/outbox/00000000-0000-4000-8000-000000000010', { method: 'PUT', headers: { token: '00000000-0000-4000-8000-000000000001', 'Content-Type': 'application/json' }, body: JSON.stringify({"tksProspectos":"00000000-0000-4000-8000-000000000010","destinatario":{},"tksOportunidades":"00000000-0000-4000-8000-000000000010","programar":1,"fecha":"2026-01-01T12:00:00.000Z","estado":1,"tkPlantilla":"00000000-0000-4000-8000-000000000010","asunto":"Asunto de ejemplo","adjuntos":"archivo-ejemplo.pdf","cuerpo":"Texto de ejemplo para la comunicación."}) });
console.log(await response.json());const response = await fetch('https://api.upnify.com/v4/comm/outbox/00000000-0000-4000-8000-000000000010', { method: 'PUT', headers: { token: '00000000-0000-4000-8000-000000000001', 'Content-Type': 'application/json' }, body: JSON.stringify({"tksProspectos":"00000000-0000-4000-8000-000000000010","destinatario":{},"tksOportunidades":"00000000-0000-4000-8000-000000000010","programar":1,"fecha":"2026-01-01T12:00:00.000Z","estado":1,"tkPlantilla":"00000000-0000-4000-8000-000000000010","asunto":"Asunto de ejemplo","adjuntos":"archivo-ejemplo.pdf","cuerpo":"Texto de ejemplo para la comunicación."}) });
console.log(await response.json());import requests
response = requests.put('https://api.upnify.com/v4/comm/outbox/00000000-0000-4000-8000-000000000010', headers={'token':'00000000-0000-4000-8000-000000000001','Content-Type':'application/json'}, json={"tksProspectos":"00000000-0000-4000-8000-000000000010","destinatario":{},"tksOportunidades":"00000000-0000-4000-8000-000000000010","programar":1,"fecha":"2026-01-01T12:00:00.000Z","estado":1,"tkPlantilla":"00000000-0000-4000-8000-000000000010","asunto":"Asunto de ejemplo","adjuntos":"archivo-ejemplo.pdf","cuerpo":"Texto de ejemplo para la comunicación."})
print(response.json())package main
import ("bytes"; "fmt"; "io"; "net/http")
func main() {
req, _ := http.NewRequest("PUT", "https://api.upnify.com/v4/comm/outbox/00000000-0000-4000-8000-000000000010", bytes.NewBufferString("{\n \"tksProspectos\": \"00000000-0000-4000-8000-000000000010\",\n \"destinatario\": {},\n \"tksOportunidades\": \"00000000-0000-4000-8000-000000000010\",\n \"programar\": 1,\n \"fecha\": \"2026-01-01T12:00:00.000Z\",\n \"estado\": 1,\n \"tkPlantilla\": \"00000000-0000-4000-8000-000000000010\",\n \"asunto\": \"Asunto de ejemplo\",\n \"adjuntos\": \"archivo-ejemplo.pdf\",\n \"cuerpo\": \"Texto de ejemplo para la comunicación.\"\n}"))
req.Header.Set("token", "00000000-0000-4000-8000-000000000001")
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
fmt.Println(string(data))
}using System.Net.Http;
using System.Text;
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("token", "00000000-0000-4000-8000-000000000001");
using var content = new StringContent("{\n \"tksProspectos\": \"00000000-0000-4000-8000-000000000010\",\n \"destinatario\": {},\n \"tksOportunidades\": \"00000000-0000-4000-8000-000000000010\",\n \"programar\": 1,\n \"fecha\": \"2026-01-01T12:00:00.000Z\",\n \"estado\": 1,\n \"tkPlantilla\": \"00000000-0000-4000-8000-000000000010\",\n \"asunto\": \"Asunto de ejemplo\",\n \"adjuntos\": \"archivo-ejemplo.pdf\",\n \"cuerpo\": \"Texto de ejemplo para la comunicación.\"\n}", Encoding.UTF8, "application/json");
var response = await client.PutAsync("https://api.upnify.com/v4/comm/outbox/00000000-0000-4000-8000-000000000010", content);
Console.WriteLine(await response.Content.ReadAsStringAsync());