Facebook Pixel

Edit Content in Plan

Updates a piece of copy in a content plan



Authorization 🔒

Pass your API Key as a Bearer Token.

Request Query Parameters

This endpoint has no request query parameters.

Request Body Parameters

The request body for this endpoint is a JSON payload with the following keys:

Key Description Type Example
line1Line 1 of copyrequiredString"I'm changing the copy now"
line2Line 2 of copyString"It's so easy!"

Here's an example of the body parameters represented as a JSON object.

    "line1": "I'm changing the copy now",
    "line2": "It's so easy!"

Example API calls

Command Line (curl)

curl -X PUT "https://nichesss.com/api/content-plans/<CONTENT_PLAN_ID>/<CONTENT_ID>" -H "Content-type: application/json" -H "Authorization: Bearer <YOUR_API_KEY>" -d "{\"line1\":\"I'm changing the copy now\",\"line2\":\"It's so easy!\"}"


fetch('https://nichesss.com/api/content-plans/<CONTENT_PLAN_ID>/<CONTENT_ID>', {
    method: 'PUT',
    headers: {
        'Content-type': 'application/json',
        'Authorization': 'Bearer <YOUR_API_KEY>',
    body: JSON.stringify({"line1":"I'm changing the copy now","line2":"It's so easy!"})
.then((response) => response.json())
.then((data) => console.log(data));


import requests

url = 'https://nichesss.com/api/content-plans/<CONTENT_PLAN_ID>/<CONTENT_ID>'
payload = {"line1":"I'm changing the copy now","line2":"It's so easy!"}
headers = {'Content-type': 'application/json', 'Authorization': 'Bearer <YOUR_API_KEY>'}

response = requests.put(url, json=payload, headers=headers)
data = response.json()



$api_key = '<YOUR_API_KEY>';
$request_url = 'https://nichesss.com/api/content-plans/<CONTENT_PLAN_ID>/<CONTENT_ID>';

$request_options = array(
    'http' => array(
        'method' => 'PUT',
        'header' => 'Content-type: application/json' . "\r\n" .
                    'Authorization: Bearer ' . $api_key . "\r\n",
        'content' => '{"line1":"I\'m changing the copy now","line2":"It\'s so easy!"}'

$request_context = stream_context_create($request_options);
$request_result = file_get_contents($request_url, false, $request_context);
$data = json_decode($request_result);

echo $data;


require 'net/http'
require 'json'

uri = URI('https://nichesss.com/api/content-plans/<CONTENT_PLAN_ID>/<CONTENT_ID>')

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Put.new(uri.request_uri)
request['Content-type'] = 'application/json'
request['Authorization'] = 'Bearer <YOUR_API_KEY>'
request.body = {"line1":"I'm changing the copy now","line2":"It's so easy!"}.to_json

response = http.request(request)

puts JSON.parse(response.body)

Sample Response

All responses from the API are JSON. You won't get the copy back immediately. We recommended you use webhooks to get your copy back, or follow the queue uri and wait.

    "success": true,
    "message": "Successfully updated your content.",
    "content_plan_id": "DfXVp4dXz",
    "content_id": "2165"
all endpoints (20)