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

URL: /docs/reference/channels/upgradeChannelProfile

```json
{"openapi":"3.0.3","info":{"title":"Postdot API","description":"The HTTP API for the lightweight, self-hosted Postdot publication orchestrator.","version":"0.1.0"},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Postdot API key","description":"A user-owned Postdot API key sent as `Authorization: Bearer <token>`. Its project scope is limited by the creator’s current access."},"sessionCookie":{"type":"apiKey","in":"cookie","name":"better-auth.session_token","description":"The Better Auth email/password session cookie used by the web application."}},"schemas":{}},"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"tags":[{"name":"System","description":"Service health and runtime information."},{"name":"Access","description":"Instance membership and invitations."},{"name":"Projects","description":"Project lifecycle and access."},{"name":"Channels","description":"Project publication destinations."},{"name":"Posts","description":"Source posts and publication creation."},{"name":"Publications","description":"Publication workflow operations."},{"name":"Taxonomy","description":"Project categories and publication tags."},{"name":"Media","description":"Project media assets and uploads."},{"name":"Settings","description":"Instance-level runtime configuration."},{"name":"Audit","description":"Project audit history."},{"name":"Notifications","description":"Signed-in user notification inboxes with optional project context."},{"name":"Analytics","description":"Provider-neutral publication and execution analytics."},{"name":"Provider Analytics","description":"Persisted provider-owned metric observations."},{"name":"Webhooks","description":"Project webhook subscriptions and delivery history."}],"paths":{"/api/projects/{projectId}/channels/{channelId}/profile/upgrade":{"post":{"operationId":"upgradeChannelProfile","summary":"Upgrade a channel to the current shipped profile preset","description":"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.","tags":["Channels"],"parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"channelId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"enum":["linkedin","bluesky","mastodon","discord","telegram","facebook","instagram","devto","x","youtube"],"description":"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."}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"profile":{"enum":["linkedin","bluesky","mastodon","discord","telegram","facebook","instagram","devto","x","youtube"],"description":"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."}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"profile":{"enum":["linkedin","bluesky","mastodon","discord","telegram","facebook","instagram","devto","x","youtube"],"description":"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."}}}}}},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"type":"object","required":["upgraded","channel","profile","assessment","shippedPreset"],"properties":{"upgraded":{"type":"boolean"},"channel":{"allOf":[{"type":"object","required":["id","name","profileVersionId","state","archivedAt","revision","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"profileVersionId":{"type":"string"},"state":{"enum":["active","archived"]},"archivedAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"websiteUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageSource":{"anyOf":[{"type":"string","const":"upload"},{"type":"string","const":"url"},{"type":"string","const":"favicon"},{"type":"null"}]},"executionMode":{"enum":["automatic","manual"]},"revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},{"type":"object","required":["projectId","profileId"],"properties":{"projectId":{"type":"string","minLength":1},"profileId":{"type":"string","minLength":1}}}]},"profile":{"type":"object","required":["id","projectId","channelId","profileId","version","origin","state","revision","profile","createdByActorId","createdAt","updatedAt"],"properties":{"id":{"type":"string","minLength":1},"projectId":{"type":"string","minLength":1},"channelId":{"type":"string","minLength":1},"profileId":{"type":"string","minLength":1},"version":{"type":"integer","minimum":1},"origin":{"type":"string","enum":["built_in","custom"]},"state":{"type":"string","enum":["draft","active","superseded","disabled"]},"revision":{"type":"integer","minimum":1},"profile":{"type":"object","patternProperties":{"^.*$":{}}},"createdByActorId":{"type":"string","minLength":1},"createdAt":{"type":"integer","minimum":0},"updatedAt":{"type":"integer","minimum":0}}},"assessment":{"anyOf":[{"type":"object","required":["currentProfileVersion","proposedProfileVersion","changes","workingDrafts","pendingTargets","hasReviewRequired"],"properties":{"currentProfileVersion":{"type":"integer","minimum":1},"proposedProfileVersion":{"type":"integer","minimum":1},"changes":{"type":"array","items":{"type":"object","required":["kind","path","code","message"],"properties":{"kind":{"anyOf":[{"type":"string","const":"schema"},{"type":"string","const":"binding"},{"type":"string","const":"capability"},{"type":"string","const":"execution"}]},"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"}}}},"workingDrafts":{"type":"array","items":{"type":"object","required":["id","kind","state","issues"],"properties":{"id":{"type":"string","minLength":1},"kind":{"anyOf":[{"type":"string","const":"working_draft"},{"type":"string","const":"pending_target"}]},"state":{"anyOf":[{"type":"string","const":"compatible"},{"type":"string","const":"review_required"}]},"issues":{"type":"array","items":{"type":"object","required":["path","code","message","severity","source"],"properties":{"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"severity":{"anyOf":[{"type":"string","const":"error"},{"type":"string","const":"warning"}]},"source":{"anyOf":[{"type":"string","const":"schema"},{"type":"string","const":"schema_policy"},{"type":"string","const":"field_binding"},{"type":"string","const":"capability"},{"type":"string","const":"domain"},{"type":"string","const":"module"}]}}}}}}},"pendingTargets":{"type":"array","items":{"type":"object","required":["id","kind","state","issues"],"properties":{"id":{"type":"string","minLength":1},"kind":{"anyOf":[{"type":"string","const":"working_draft"},{"type":"string","const":"pending_target"}]},"state":{"anyOf":[{"type":"string","const":"compatible"},{"type":"string","const":"review_required"}]},"issues":{"type":"array","items":{"type":"object","required":["path","code","message","severity","source"],"properties":{"path":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"severity":{"anyOf":[{"type":"string","const":"error"},{"type":"string","const":"warning"}]},"source":{"anyOf":[{"type":"string","const":"schema"},{"type":"string","const":"schema_policy"},{"type":"string","const":"field_binding"},{"type":"string","const":"capability"},{"type":"string","const":"domain"},{"type":"string","const":"module"}]}}}}}}},"hasReviewRequired":{"type":"boolean"}}},{"type":"null"}]},"shippedPreset":{"type":"object","required":["id","version"],"properties":{"id":{"type":"string","minLength":1},"version":{"type":"integer","minimum":1}}}}}}}},"400":{"description":"Response for status 400","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"confirmation":{"type":"string"},"warnings":{"type":"array","items":{"type":"object","required":["channelId","rule","period","maximum","count"],"properties":{"channelId":{"type":"string"},"rule":{"type":"string","enum":["daily_max","weekly_max"]},"period":{"type":"string"},"maximum":{"type":"integer"},"count":{"type":"integer"}}}},"code":{"type":"string"},"message":{"type":"string"},"publicationIds":{"type":"array","items":{"type":"string"}}}}}}}}},"401":{"description":"Response for status 401","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"confirmation":{"type":"string"},"warnings":{"type":"array","items":{"type":"object","required":["channelId","rule","period","maximum","count"],"properties":{"channelId":{"type":"string"},"rule":{"type":"string","enum":["daily_max","weekly_max"]},"period":{"type":"string"},"maximum":{"type":"integer"},"count":{"type":"integer"}}}},"code":{"type":"string"},"message":{"type":"string"},"publicationIds":{"type":"array","items":{"type":"string"}}}}}}}}},"403":{"description":"Response for status 403","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"confirmation":{"type":"string"},"warnings":{"type":"array","items":{"type":"object","required":["channelId","rule","period","maximum","count"],"properties":{"channelId":{"type":"string"},"rule":{"type":"string","enum":["daily_max","weekly_max"]},"period":{"type":"string"},"maximum":{"type":"integer"},"count":{"type":"integer"}}}},"code":{"type":"string"},"message":{"type":"string"},"publicationIds":{"type":"array","items":{"type":"string"}}}}}}}}},"404":{"description":"Response for status 404","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"confirmation":{"type":"string"},"warnings":{"type":"array","items":{"type":"object","required":["channelId","rule","period","maximum","count"],"properties":{"channelId":{"type":"string"},"rule":{"type":"string","enum":["daily_max","weekly_max"]},"period":{"type":"string"},"maximum":{"type":"integer"},"count":{"type":"integer"}}}},"code":{"type":"string"},"message":{"type":"string"},"publicationIds":{"type":"array","items":{"type":"string"}}}}}}}}},"409":{"description":"Response for status 409","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"confirmation":{"type":"string"},"warnings":{"type":"array","items":{"type":"object","required":["channelId","rule","period","maximum","count"],"properties":{"channelId":{"type":"string"},"rule":{"type":"string","enum":["daily_max","weekly_max"]},"period":{"type":"string"},"maximum":{"type":"integer"},"count":{"type":"integer"}}}},"code":{"type":"string"},"message":{"type":"string"},"publicationIds":{"type":"array","items":{"type":"string"}}}}}}}}}}}}},"servers":[{"url":"https://postdot.example","description":"Replace with your Postdot instance origin."}]}
```
