Channels
Upload a channel identity image
POST
header
AuthorizationBearer <Postdot API key>A user-owned Postdot API key sent as Authorization: Bearer <token>. Its project scope is limited by the creator’s current access.
projectId*stringLength
1 <= lengthchannelId*stringLength
1 <= lengthexpectedRevision?integerRange
1 <= value- body
base64*stringBase64-encoded raster image bytes (maximum decoded size 2 MB).
Length
4 <= length <= 2796204Response for status 200
application/json- response
channel*warning?string|nullcurl -X POST 'https://postdot.example/api/projects/string/channels/string/image' \
-H 'Content-Type: application/json' \
-d '{
"base64": "string"
}'Example Response
{
"channel": {
"id": "string",
"name": "string",
"profileVersionId": "string",
"state": "active",
"archivedAt": -9007199254740991,
"websiteUrl": "string",
"imageUrl": "string",
"imageSource": "upload",
"executionMode": "automatic",
"revision": -9007199254740991,
"createdAt": -9007199254740991,
"updatedAt": -9007199254740991,
"projectId": "string",
"profileId": "string"
},
"warning": "string"
}Was this page helpful?
Upgrade a channel to the current shipped profile preset POST
Without a body, upgrades a built-in channel to its current shipped preset. With `profile`, gives a channel published by hand with generic content rules the built-in profile of that platform: it keeps being published by hand, and its drafts and scheduled publications keep their text as the first message.
Use the channel website favicon as its identity image POST
Next Page