Skip to content
Letterhead Letterhead Letterhead Help Center
Admin Tools

Change a channel's slug

POST
/api/v3/channels/{channelSlug}/actions/update-slug
curl --request POST \
--url https://api.tryletterhead.com/api/v3/channels/example/actions/update-slug \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form api=true \
--form slug=example

Change the URL slug a channel is addressed by. Requires a company administrator key for the channel’s own company.

v3 endpoints expect a company API key.

channelSlug
required
string

The newsletter’s channel identifier (slug), before the change.

Media type multipart/form-data
object
api
required

When set to true, this endpoint will accept authorization with your API Key.

string
Example
true
slug
required

New slug. Letters, numbers, and hyphens only.

string

202 Accepted. No response body.

404 Not Found — no channel matches channelSlug for this company.

Media type application/json
object
data
Array<object>
object
items
Array<object>
object
message
string
total
integer
Example
{
"data": [],
"items": [],
"message": "Channel not found",
"total": 0
}

409 Conflict — another channel already uses this slug.

Media type application/json
object
data
Array<object>
object
items
Array<object>
object
message
string
total
integer
Example
{
"data": [],
"items": [],
"message": "A channel with this slug already exists.",
"total": 0
}

Still can’t find what you need? Contact support.