Channels
Upgrade a channel to the current shipped profile preset
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.
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 <= length- body
profile?unknownGive a channel published by hand with generic content rules the built-in profile of this platform. The channel stays published by hand; drafts and scheduled publications keep their text as the first message. Omit to upgrade a built-in channel to its current shipped preset.
Value in
"linkedin""bluesky""mastodon""discord""telegram""facebook""instagram""devto""x""youtube"Response for status 200
application/json- response
upgraded*booleanchannel*profile*assessment*|nullshippedPreset*curl -X POST 'https://postdot.example/api/projects/string/channels/string/profile/upgrade' \
-H 'Content-Type: application/json' \
-d '{}'Example Response
{
"upgraded": true,
"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"
},
"profile": {
"id": "string",
"projectId": "string",
"channelId": "string",
"profileId": "string",
"version": 1,
"origin": "built_in",
"state": "draft",
"revision": 1,
"profile": {},
"createdByActorId": "string",
"createdAt": 0,
"updatedAt": 0
},
"assessment": {
"currentProfileVersion": 1,
"proposedProfileVersion": 1,
"changes": [
{
"kind": "schema",
"path": "string",
"code": "string",
"message": "string"
}
],
"workingDrafts": [
{
"id": "string",
"kind": "working_draft",
"state": "compatible",
"issues": [
{
"path": "string",
"code": "string",
"message": "string",
"severity": "error",
"source": "schema"
}
]
}
],
"pendingTargets": [
{
"id": "string",
"kind": "working_draft",
"state": "compatible",
"issues": [
{
"path": "string",
"code": "string",
"message": "string",
"severity": "error",
"source": "schema"
}
]
}
],
"hasReviewRequired": true
},
"shippedPreset": {
"id": "string",
"version": 1
}
}