Update draft
Replaces the draft's ads (and optionally viewType / gridFormData). Send the full list of ads — this is a replace, not a merge. Answers 404 for a draft that was launched or deleted, or that belongs to another organization.
Authentication
authentication Create an API key from the Adnova dashboard (Account integrations). Pass the key value in the api-key request header on every call.
In: header
Path Parameters
Draft id from Create a draft or List drafts.
1 <= lengthHeader Parameters
Workspace the request operates in. Get it from List workspaces.
1 <= lengthOrganization context (required on every endpoint). For lookup endpoints the org is derived from the ad account in the URL, so any org id you have access to is accepted.
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://api.adnova.ai/ad-launcher/v1/meta/drafts/string" \ -H "x-workspace-id: string" \ -H "x-org-id: string" \ -H "Content-Type: application/json" \ -d '{ "ads": [ { "adName": "Hero Carousel — Spring Sale (v2)", "adSets": [ "123456789012345" ], "creativeDetails": { "groupType": "carousel", "creatives": [ { "_id": "01H8YA...", "cardTitle": "Spring Sale — 50% Off", "webLink": "https://example.com/spring-sale" } ] }, "adProfiles": { "facebook_page_id": "123456789012345" }, "cta": "SHOP_NOW", "webLink": "https://example.com/spring-sale" } ] }'{
"error": {
"code": "string",
"message": "string"
},
"message": "string"
}{
"error": {
"code": "string",
"message": "string"
},
"message": "string"
}{
"error": {
"code": "string",
"message": "string"
},
"message": "string"
}{
"error": {
"code": "string",
"message": "string"
},
"message": "string"
}{
"error": {
"code": "string",
"message": "string"
},
"message": "string"
}{
"error": {
"code": "string",
"message": "string"
},
"message": "string"
}