Create or update pipeline
Set which connections a run waits for, when it starts, and where the completion webhook goes.
ENABLING TAKES SCHEDULES OVER. Every in-scope connection is set to manual in Airbyte and its previous schedule stashed, because a run can only be a meaningful unit if Mythic is what triggers the syncs. Anything DROPPED from scope, or in the pipeline when it is disabled, gets its original schedule handed back — a connection left on manual with nothing triggering it does not error, it simply stops updating. The response reports both under schedule_changes.
connection_ids must be connections belonging to this client; otherwise 400 unknown_connections. Requires an agency key (ak_).
curl -X PUT "https://mythic-analytics.gulp.workers.dev/client/v1/airbyte/pipelines/example_string" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"enabled": true,
"connection_ids": [
"example_string"
],
"run_hour_utc": 42,
"webhook_url": "example_string",
"webhook_secret": "example_string"
}'
import requests
import json
url = "https://mythic-analytics.gulp.workers.dev/client/v1/airbyte/pipelines/example_string"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
data = {
"enabled": true,
"connection_ids": [
"example_string"
],
"run_hour_utc": 42,
"webhook_url": "example_string",
"webhook_secret": "example_string"
}
response = requests.put(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://mythic-analytics.gulp.workers.dev/client/v1/airbyte/pipelines/example_string", {
method: "PUT",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
},
body: JSON.stringify({
"enabled": true,
"connection_ids": [
"example_string"
],
"run_hour_utc": 42,
"webhook_url": "example_string",
"webhook_secret": "example_string"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"enabled": true,
"connection_ids": [
"example_string"
],
"run_hour_utc": 42,
"webhook_url": "example_string",
"webhook_secret": "example_string"
}`)
req, err := http.NewRequest("PUT", "https://mythic-analytics.gulp.workers.dev/client/v1/airbyte/pipelines/example_string", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://mythic-analytics.gulp.workers.dev/client/v1/airbyte/pipelines/example_string')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Put.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
request.body = '{
"enabled": true,
"connection_ids": [
"example_string"
],
"run_hour_utc": 42,
"webhook_url": "example_string",
"webhook_secret": "example_string"
}'
response = http.request(request)
puts response.body
{
"success": true,
"data": {
"id": "example_string",
"client_id": "example_string",
"agency_id": "example_string",
"enabled": true,
"connection_ids": [
"example_string"
],
"run_hour_utc": 42,
"webhook_url": "example_string",
"has_webhook_secret": true,
"created_at": "2024-12-25T10:00:00Z",
"updated_at": "2024-12-25T10:00:00Z",
"schedule_changes": {
"taken_over": [
{}
],
"handed_back": [
{}
],
"errors": [
{}
]
}
}
}
{
"error": "Bad Request",
"message": "The request contains invalid parameters or malformed data",
"code": 400,
"details": [
{
"field": "email",
"message": "Invalid email format"
}
]
}
{
"error": "Unauthorized",
"message": "Authentication required. Please provide a valid API token",
"code": 401
}
{
"error": "Forbidden",
"message": "You don't have permission to access this resource",
"code": 403
}
/pipelines/{clientId}Target server for requests. Edit to use your own host.
Agency key as bearer token, format Bearer ak_.... Grants full read-write access scoped to the agency. Agency-wide scoped keys (mcp_ with no fixed location) are accepted too and need airbyte:read or airbyte:write; a client-bound mcp_ key gets 403 agency_key_required. See Using an mcp_ key over HTTP.
Bearer ak_.... Grants full read-write access scoped to the agency. Agency-wide scoped keys (mcp_ with no fixed location) are accepted too and need airbyte:read or airbyte:write; a client-bound mcp_ key gets 403 agency_key_required. See Using an mcp_ key over HTTP.
Location secret key as bearer token, format Bearer sk_.... Grants read-only access; the agency is resolved from the location. Write endpoints return 403.
Bearer sk_.... Grants read-only access; the agency is resolved from the location. Write endpoints return 403.
Client (location) identifier the pipeline belongs to.
The media type of the request body
Mythic connection ids a run waits for. Authoritative — never inferred at run time. Use GET /pipelines/{clientId}/candidates to populate a picker.
Hour (UTC) the daily run starts.
HTTPS endpoint POSTed once the run completes.
Used to HMAC-SHA256 the request body into X-Mythic-Signature. Write-only; never returned.
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token. Agency key as bearer token, format Bearer ak_.... Grants full read-write access scoped to the agency. Agency-wide scoped keys (mcp_ with no fixed location) are accepted too and need airbyte:read or airbyte:write; a client-bound mcp_ key gets 403 agency_key_required. See Using an mcp_ key over HTTP.
Bearer token. Location secret key as bearer token, format Bearer sk_.... Grants read-only access; the agency is resolved from the location. Write endpoints return 403.
Path Parameters
Client (location) identifier the pipeline belongs to.
Body
Mythic connection ids a run waits for. Authoritative — never inferred at run time. Use GET /pipelines/\\{clientId\\}/candidates to populate a picker.
Hour (UTC) the daily run starts.
HTTPS endpoint POSTed once the run completes.
Used to HMAC-SHA256 the request body into X-Mythic-Signature. Write-only; never returned.