---
updatedAt: 2026-08-24T09:14:57.000Z
agentTools:
  projectIndex: https://developers.vibe.co/llms.txt
---

# Replace the creatives attached to a strategy

**Scopes:**
`campaigns:write`
<br>*Rate limits*:<br>Burst: `5/s`<br>Steady: `120/m`


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/strategies/{strategy_id}/creatives": {
      "put": {
        "operationId": "replaceStrategyCreatives",
        "parameters": [
          {
            "name": "strategy_id",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "account_id",
            "required": false,
            "in": "query",
            "description": "Required only for embedded apps.",
            "schema": {
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaceStrategyCreatives"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreativeList"
                }
              }
            }
          },
          "400": {
            "description": "Bad request error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "missingApiKey": {
                    "summary": "Missing API key",
                    "value": {
                      "error": {
                        "type": "validation",
                        "message": "Missing API Key",
                        "status": 400,
                        "detail": null,
                        "request_id": "req_8f3a4b2c",
                        "doc_url": null
                      }
                    }
                  },
                  "validationError": {
                    "summary": "Validation error",
                    "value": {
                      "error": {
                        "type": "validation",
                        "message": "Validation error",
                        "status": 400,
                        "detail": {
                          "validation": [
                            "id must be a string"
                          ]
                        },
                        "request_id": "req_8f3a4b2c",
                        "doc_url": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "invalidApiKey": {
                    "summary": "Invalid API key",
                    "value": {
                      "error": {
                        "type": "invalid_token",
                        "message": "Unauthorized",
                        "status": 401,
                        "detail": null,
                        "request_id": "req_8f3a4b2c",
                        "doc_url": "https://developers.vibe.co/errors/invalid-token"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Insufficient scope error response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "insufficientScope": {
                    "summary": "Missing required scope",
                    "value": {
                      "error": {
                        "type": "insufficient_scope",
                        "message": "Missing required scope",
                        "status": 403,
                        "detail": {
                          "required": "campaigns:write",
                          "granted": [
                            "test"
                          ]
                        },
                        "request_id": "req_8f3a4b2c",
                        "doc_url": "https://developers.vibe.co/reference/oauth2token"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Strategy not found"
          },
          "422": {
            "description": "Validation failed (e.g. creative not owned by the strategy advertiser)"
          }
        },
        "summary": "Replace the creatives attached to a strategy",
        "tags": [
          "Strategies"
        ],
        "x-rate-limit": {
          "rps": 5,
          "rpm": 120
        },
        "x-scopes": [
          "campaigns:write"
        ],
        "description": "**Scopes:**\n`campaigns:write`\n<br>*Rate limits*:<br>Burst: `5/s`<br>Steady: `120/m`\n"
      }
    }
  },
  "info": {
    "title": "Vibe Public API",
    "description": "Vibe Public API revision 2026-06-01",
    "version": "2026-06-01",
    "contact": {}
  },
  "tags": [
    {
      "name": "Strategies",
      "description": "A Strategy is the executable unit under a Campaign. It carries the budget, the schedule, the targeting object, and the creatives Vibe will deliver.\n\nA strategy has no publication state of its own. Publishing its campaign does not change the strategy's `active` state; use the `PAUSE` and `ACTIVATE` actions to toggle its delivery. A strategy can only be deleted while its campaign is still in `DRAFT`.\n\n> 💡 **Developer note**\n>\n> Replace a strategy's creative associations to swap them atomically — that endpoint replaces the full set in one call. Do not loop over per-creative attach/detach endpoints."
    }
  ],
  "servers": [
    {
      "url": "https://api.vibe.co",
      "description": "Production API"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      }
    },
    "schemas": {
      "ErrorDetail": {
        "type": "object",
        "properties": {
          "required": {
            "type": "string",
            "example": "audiences:write"
          },
          "granted": {
            "example": [
              "audiences:read",
              "reporting:read"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "required",
          "granted"
        ]
      },
      "ApiError": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "insufficient_scope",
              "invalid_token",
              "validation",
              "internal_error"
            ]
          },
          "message": {
            "type": "string"
          },
          "status": {
            "type": "number",
            "example": 403
          },
          "detail": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ErrorDetail"
              }
            ]
          },
          "request_id": {
            "type": "string",
            "example": "req_8f3a4b2c"
          },
          "doc_url": {
            "type": "string",
            "example": "https://developers.vibe.co/reference/oauth2token",
            "nullable": true
          }
        },
        "required": [
          "type",
          "message",
          "status",
          "request_id"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ApiError"
          }
        },
        "required": [
          "error"
        ]
      },
      "CreativeType": {
        "type": "string",
        "enum": [
          "VIDEO",
          "VAST"
        ]
      },
      "CreativeApprovalStatus": {
        "type": "string",
        "enum": [
          "PROCESSING",
          "PENDING_REVIEW",
          "AUTHORIZED",
          "BLOCKED"
        ]
      },
      "Creative": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "advertiser_id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CreativeType"
              }
            ]
          },
          "asset_url": {
            "type": "string",
            "nullable": true,
            "format": "uri",
            "description": "Vibe-hosted URL, populated after processing for VIDEO creatives"
          },
          "vast_tag_url": {
            "type": "string",
            "nullable": true,
            "format": "uri"
          },
          "approval_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CreativeApprovalStatus"
              }
            ]
          },
          "approval_details": {
            "type": "string",
            "nullable": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "advertiser_id",
          "name",
          "type",
          "asset_url",
          "vast_tag_url",
          "approval_status",
          "approval_details",
          "created_at",
          "updated_at"
        ]
      },
      "CreativeList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Creative"
            }
          },
          "total": {
            "type": "number",
            "description": "Total number of creatives matching the filters"
          },
          "limit": {
            "type": "number",
            "description": "Maximum number of items returned"
          },
          "offset": {
            "type": "number",
            "description": "Number of items skipped"
          }
        },
        "required": [
          "data",
          "total",
          "limit",
          "offset"
        ]
      },
      "ReplaceStrategyCreatives": {
        "type": "object",
        "properties": {
          "creative_ids": {
            "maxItems": 5000,
            "description": "Full list of creatives to attach. Replaces any current attachments.",
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "required": [
          "creative_ids"
        ]
      }
    }
  },
  "security": [
    {
      "bearer": []
    }
  ]
}
```