Skip to Content
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
/api/projects/{projectId}/channels/{channelId}/profile/upgrade

Authorization

headerAuthorizationBearer <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.

Path Parameters

projectId*string
Length1 <= length
channelId*string
Length1 <= length

Request Body

  1. body
profile?unknown

Give 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 Body

Response for status 200

application/json
  1. response
upgraded*boolean
channel*
profile*
assessment*|null
shippedPreset*
Example Request
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
  }
}

Was this page helpful?