연동
연동 소스 수정
PATCH
/
api
/
developer
/
integration
/
sources
/
{source_id}
연동 소스 수정
curl --request PATCH \
--url https://your_a2_service/api/developer/integration/sources/{source_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"interval_hours": 12,
"name": "S3 상품 적재 (수정)"
}
'import requests
url = "https://your_a2_service/api/developer/integration/sources/{source_id}"
payload = {
"interval_hours": 12,
"name": "S3 상품 적재 (수정)"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({interval_hours: 12, name: 'S3 상품 적재 (수정)'})
};
fetch('https://your_a2_service/api/developer/integration/sources/{source_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://your_a2_service/api/developer/integration/sources/{source_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([
'interval_hours' => 12,
'name' => 'S3 상품 적재 (수정)'
]),
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://your_a2_service/api/developer/integration/sources/{source_id}"
payload := strings.NewReader("{\n \"interval_hours\": 12,\n \"name\": \"S3 상품 적재 (수정)\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://your_a2_service/api/developer/integration/sources/{source_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"interval_hours\": 12,\n \"name\": \"S3 상품 적재 (수정)\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/api/developer/integration/sources/{source_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"interval_hours\": 12,\n \"name\": \"S3 상품 적재 (수정)\"\n}"
response = http.request(request)
puts response.read_body{
"config": {
"data_source": {
"access_key": "<string>",
"bucket": "<string>",
"log_format": "<string>",
"path": "<string>",
"prefix": "<string>",
"region": "<string>",
"secret_key": "<string>",
"source_type": "<string>"
},
"name_rules": {}
},
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"interval_hours": 123,
"name": "<string>",
"start_datetime": "2023-11-07T05:31:56Z",
"type": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"deleted": false,
"description": "<string>",
"no": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}인증
Bearer 인증. 액세스 토큰을 Authorization: Bearer <token> 헤더로 전달합니다.
경로 매개변수
본문
application/json
PATCH /integration/sources/{source_id} 요청 본문.
부분 수정 — 본문에서 생략된 필드는 변경되지 않습니다. 중첩된 config는 전체가 교체됩니다(부분 discriminator-union 수정 불가).
응답
성공 응답
전체 응답 스키마 (운영자/관리자).
연동 소스 설정
- IntegrationAdLogConfig
- IntegrationAdChannelConfig
Show child attributes
Show child attributes
연동 소스의 고유 식별자
연동 작업 실행 간격 (시간)
연동 소스의 이름
연동 작업 시작 일시
연동 소스의 유형
연동 소스 소프트 삭제 플래그
연동 소스 설명
이 페이지가 도움이 되었나요?
⌘I
연동 소스 수정
curl --request PATCH \
--url https://your_a2_service/api/developer/integration/sources/{source_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"interval_hours": 12,
"name": "S3 상품 적재 (수정)"
}
'import requests
url = "https://your_a2_service/api/developer/integration/sources/{source_id}"
payload = {
"interval_hours": 12,
"name": "S3 상품 적재 (수정)"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({interval_hours: 12, name: 'S3 상품 적재 (수정)'})
};
fetch('https://your_a2_service/api/developer/integration/sources/{source_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://your_a2_service/api/developer/integration/sources/{source_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([
'interval_hours' => 12,
'name' => 'S3 상품 적재 (수정)'
]),
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://your_a2_service/api/developer/integration/sources/{source_id}"
payload := strings.NewReader("{\n \"interval_hours\": 12,\n \"name\": \"S3 상품 적재 (수정)\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://your_a2_service/api/developer/integration/sources/{source_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"interval_hours\": 12,\n \"name\": \"S3 상품 적재 (수정)\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/api/developer/integration/sources/{source_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"interval_hours\": 12,\n \"name\": \"S3 상품 적재 (수정)\"\n}"
response = http.request(request)
puts response.read_body{
"config": {
"data_source": {
"access_key": "<string>",
"bucket": "<string>",
"log_format": "<string>",
"path": "<string>",
"prefix": "<string>",
"region": "<string>",
"secret_key": "<string>",
"source_type": "<string>"
},
"name_rules": {}
},
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"interval_hours": 123,
"name": "<string>",
"start_datetime": "2023-11-07T05:31:56Z",
"type": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"deleted": false,
"description": "<string>",
"no": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}