POST

Translate Draft


Creates a draft post in the specified language by copying an existing draft post or published post.

The created draft post contains the source draft's title, rich content, excerpt, cover and hero images, hashtags, pricing plan IDs, preview text paragraph, and commenting and featured settings. Tags, related posts, SEO data, and the slug aren't copied. Category IDs are replaced with the IDs of the categories' translations in the specified language. Categories that have no translation in that language are omitted.

The created draft post shares the source's translationId and keeps the source's memberId. If the source doesn't have a translationId yet, one is generated and assigned to both the source and the created draft post.

The source keeps its status. The created draft post is always unpublished. To publish it, call Update Draft Post with action set to UPDATE_PUBLISH.

Translating a post to its own language, or to a language that already exists in the same translation group, fails with an ALREADY_EXISTS error. The specified language isn't checked against the site's Multilingual languages.

To change the language of an existing draft post instead of creating a copy, call Update Draft Post Language.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permission Scopes
Manage Blog
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/blog/v3/multilingual/draft/{postId}

Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?