Update Feed Configuration
curl --request PATCH \
--url https://api.autosnap.com/v1/ims/feeds/{feed_id} \
--header 'Content-Type: application/json' \
--data '
{
"ftp_path": "<string>",
"file_name": "<string>",
"dealer_identifier": "<string>",
"staleness_threshold_hours": 123,
"active": true
}
'import requests
url = "https://api.autosnap.com/v1/ims/feeds/{feed_id}"
payload = {
"ftp_path": "<string>",
"file_name": "<string>",
"dealer_identifier": "<string>",
"staleness_threshold_hours": 123,
"active": True
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
ftp_path: '<string>',
file_name: '<string>',
dealer_identifier: '<string>',
staleness_threshold_hours: 123,
active: true
})
};
fetch('https://api.autosnap.com/v1/ims/feeds/{feed_id}', 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.autosnap.com/v1/ims/feeds/{feed_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'ftp_path' => '<string>',
'file_name' => '<string>',
'dealer_identifier' => '<string>',
'staleness_threshold_hours' => 123,
'active' => true
]),
CURLOPT_HTTPHEADER => [
"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.autosnap.com/v1/ims/feeds/{feed_id}"
payload := strings.NewReader("{\n \"ftp_path\": \"<string>\",\n \"file_name\": \"<string>\",\n \"dealer_identifier\": \"<string>\",\n \"staleness_threshold_hours\": 123,\n \"active\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://api.autosnap.com/v1/ims/feeds/{feed_id}")
.header("Content-Type", "application/json")
.body("{\n \"ftp_path\": \"<string>\",\n \"file_name\": \"<string>\",\n \"dealer_identifier\": \"<string>\",\n \"staleness_threshold_hours\": 123,\n \"active\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.autosnap.com/v1/ims/feeds/{feed_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"ftp_path\": \"<string>\",\n \"file_name\": \"<string>\",\n \"dealer_identifier\": \"<string>\",\n \"staleness_threshold_hours\": 123,\n \"active\": true\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Feed Management
Update Feed Configuration
Update an IMS feed configuration.
PATCH
/
v1
/
ims
/
feeds
/
{feed_id}
Update Feed Configuration
curl --request PATCH \
--url https://api.autosnap.com/v1/ims/feeds/{feed_id} \
--header 'Content-Type: application/json' \
--data '
{
"ftp_path": "<string>",
"file_name": "<string>",
"dealer_identifier": "<string>",
"staleness_threshold_hours": 123,
"active": true
}
'import requests
url = "https://api.autosnap.com/v1/ims/feeds/{feed_id}"
payload = {
"ftp_path": "<string>",
"file_name": "<string>",
"dealer_identifier": "<string>",
"staleness_threshold_hours": 123,
"active": True
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
ftp_path: '<string>',
file_name: '<string>',
dealer_identifier: '<string>',
staleness_threshold_hours: 123,
active: true
})
};
fetch('https://api.autosnap.com/v1/ims/feeds/{feed_id}', 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.autosnap.com/v1/ims/feeds/{feed_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'ftp_path' => '<string>',
'file_name' => '<string>',
'dealer_identifier' => '<string>',
'staleness_threshold_hours' => 123,
'active' => true
]),
CURLOPT_HTTPHEADER => [
"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.autosnap.com/v1/ims/feeds/{feed_id}"
payload := strings.NewReader("{\n \"ftp_path\": \"<string>\",\n \"file_name\": \"<string>\",\n \"dealer_identifier\": \"<string>\",\n \"staleness_threshold_hours\": 123,\n \"active\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://api.autosnap.com/v1/ims/feeds/{feed_id}")
.header("Content-Type", "application/json")
.body("{\n \"ftp_path\": \"<string>\",\n \"file_name\": \"<string>\",\n \"dealer_identifier\": \"<string>\",\n \"staleness_threshold_hours\": 123,\n \"active\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.autosnap.com/v1/ims/feeds/{feed_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"ftp_path\": \"<string>\",\n \"file_name\": \"<string>\",\n \"dealer_identifier\": \"<string>\",\n \"staleness_threshold_hours\": 123,\n \"active\": true\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}PATCH /v1/ims/feeds/{feed_id}
AutoSnap-internal only. This endpoint is restricted to AutoSnap admin clients. Customers must email AutoSnap support to change a feed config; non-admin API keys receive
403 ADMIN_REQUIRED.Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
api_key | string | query | Yes | Your API key |
feed_id | integer | path | Yes | Feed config ID |
Request Body
All fields are optional. Only include the fields you want to change.| Field | Type | Description |
|---|---|---|
ftp_path | string | Provider directory name on SFTP |
file_name | string | CSV filename to monitor |
dealer_identifier | string | Dealer ID filter for multi-dealer files |
staleness_threshold_hours | integer | Hours before stale alert |
active | boolean | Enable or disable the feed |
Example
Disable a feed
curl -X PATCH "https://api.autosnap.com/v1/ims/feeds/1?api_key=YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"active": false}'
Change staleness threshold
curl -X PATCH "https://api.autosnap.com/v1/ims/feeds/1?api_key=YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"staleness_threshold_hours": 24}'
Response
{
"id": 1,
"status": "updated",
"fields": ["active"]
}
Errors
| Status | Detail | Cause |
|---|---|---|
400 | No fields to update | Request body was empty or all fields were null |
403 | Not authorized | Feed belongs to a different client |
404 | Feed config not found | No feed with this ID exists |
⌘I