소재
소재 수정
PATCH
/
api
/
manager
/
creatives
/
{crid}
소재 수정
curl --request PATCH \
--url https://your_a2_service/api/manager/creatives/{crid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "메인 배너 소재 (수정)",
"status": "active"
}
'import requests
url = "https://your_a2_service/api/manager/creatives/{crid}"
payload = {
"name": "메인 배너 소재 (수정)",
"status": "active"
}
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({name: '메인 배너 소재 (수정)', status: 'active'})
};
fetch('https://your_a2_service/api/manager/creatives/{crid}', 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/manager/creatives/{crid}",
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([
'name' => '메인 배너 소재 (수정)',
'status' => 'active'
]),
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/manager/creatives/{crid}"
payload := strings.NewReader("{\n \"name\": \"메인 배너 소재 (수정)\",\n \"status\": \"active\"\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/manager/creatives/{crid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"메인 배너 소재 (수정)\",\n \"status\": \"active\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/api/manager/creatives/{crid}")
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 \"name\": \"메인 배너 소재 (수정)\",\n \"status\": \"active\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"height": 1,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "banner",
"updated_at": "2023-11-07T05:31:56Z",
"width": 1,
"advertiser_domain": "<string>",
"advertiser_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"banner": {
"ext": {
"alt": "<string>",
"impression_tracking_url": "<string>",
"show_ad_badge": true
},
"img": "<string>",
"link": {
"url": "<string>",
"ext": null,
"trkr": [
"<string>"
],
"urlfb": "<string>"
}
},
"description": "<string>",
"end_date": "2023-11-07T05:31:56Z",
"ext": {},
"native": {
"asset": [
{
"data": {
"value": "<string>",
"ext": null,
"len": 123,
"type": 1
},
"ext": null,
"id": 123,
"image": {
"url": "<string>",
"ext": null,
"h": 1,
"type": 1,
"w": 1
},
"link": {
"url": "<string>",
"ext": null,
"trkr": [
"<string>"
],
"urlfb": "<string>"
},
"req": 0,
"title": {
"text": "<string>",
"ext": null,
"len": 1
},
"video": {
"adm": "<string>",
"curl": "<string>",
"ext": null
}
}
],
"ext": null,
"link": {
"url": "<string>",
"ext": null,
"trkr": [
"<string>"
],
"urlfb": "<string>"
}
},
"no": 123,
"start_date": "2023-11-07T05:31:56Z",
"status": "inactive",
"video": {
"adm": "<string>",
"api": [
32767
],
"ctype": 32767,
"curl": "<string>",
"dur": 1,
"ext": null,
"mime": [
"<string>"
]
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}인증
Bearer 인증. 액세스 토큰을 Authorization: Bearer <token> 헤더로 전달합니다.
경로 매개변수
본문
application/json
PATCH 시 모든 필드는 선택입니다.
쓰기/입력용 DTO — write 시점에만 URL 스킴을 검증한다.
Show child attributes
Show child attributes
필수 범위:
x >= 0쓰기/입력용 DTO — write 시점에만 URL 스킴을 검증한다.
Show child attributes
Show child attributes
사용 가능한 옵션:
inactive, active 사용 가능한 옵션:
banner, video, native Show child attributes
Show child attributes
필수 범위:
x >= 0응답
성공 응답
소재 높이 (픽셀).
필수 범위:
x >= 0소재 고유 식별자 (UUID v7).
소재 이름.
소재를 생성한 관리자/운영자 사용자 ID.
소재 유형 (예: "banner", "video", "native").
사용 가능한 옵션:
banner, video, native 소재 너비 (픽셀).
필수 범위:
x >= 0이 소재를 사용하는 광고주 도메인.
이 소재를 사용하는 광고주 ID.
읽기/응답용 DTO — 저장된 AdCOM Banner를 그대로 노출. 검증 없음.
Show child attributes
Show child attributes
소재의 선택적 설명.
소재 확장 데이터
네이티브 소재 콘텐츠.
Show child attributes
Show child attributes
소재 상태.
사용 가능한 옵션:
inactive, active Show child attributes
Show child attributes
이 페이지가 도움이 되었나요?
⌘I
소재 수정
curl --request PATCH \
--url https://your_a2_service/api/manager/creatives/{crid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "메인 배너 소재 (수정)",
"status": "active"
}
'import requests
url = "https://your_a2_service/api/manager/creatives/{crid}"
payload = {
"name": "메인 배너 소재 (수정)",
"status": "active"
}
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({name: '메인 배너 소재 (수정)', status: 'active'})
};
fetch('https://your_a2_service/api/manager/creatives/{crid}', 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/manager/creatives/{crid}",
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([
'name' => '메인 배너 소재 (수정)',
'status' => 'active'
]),
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/manager/creatives/{crid}"
payload := strings.NewReader("{\n \"name\": \"메인 배너 소재 (수정)\",\n \"status\": \"active\"\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/manager/creatives/{crid}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"메인 배너 소재 (수정)\",\n \"status\": \"active\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/api/manager/creatives/{crid}")
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 \"name\": \"메인 배너 소재 (수정)\",\n \"status\": \"active\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"height": 1,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "banner",
"updated_at": "2023-11-07T05:31:56Z",
"width": 1,
"advertiser_domain": "<string>",
"advertiser_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"banner": {
"ext": {
"alt": "<string>",
"impression_tracking_url": "<string>",
"show_ad_badge": true
},
"img": "<string>",
"link": {
"url": "<string>",
"ext": null,
"trkr": [
"<string>"
],
"urlfb": "<string>"
}
},
"description": "<string>",
"end_date": "2023-11-07T05:31:56Z",
"ext": {},
"native": {
"asset": [
{
"data": {
"value": "<string>",
"ext": null,
"len": 123,
"type": 1
},
"ext": null,
"id": 123,
"image": {
"url": "<string>",
"ext": null,
"h": 1,
"type": 1,
"w": 1
},
"link": {
"url": "<string>",
"ext": null,
"trkr": [
"<string>"
],
"urlfb": "<string>"
},
"req": 0,
"title": {
"text": "<string>",
"ext": null,
"len": 1
},
"video": {
"adm": "<string>",
"curl": "<string>",
"ext": null
}
}
],
"ext": null,
"link": {
"url": "<string>",
"ext": null,
"trkr": [
"<string>"
],
"urlfb": "<string>"
}
},
"no": 123,
"start_date": "2023-11-07T05:31:56Z",
"status": "inactive",
"video": {
"adm": "<string>",
"api": [
32767
],
"ctype": 32767,
"curl": "<string>",
"dur": 1,
"ext": null,
"mime": [
"<string>"
]
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}