Update generated text fields

post /text/Generate/text

This method updates field values for a record. It allows users to edit existing generated texts, mark them as published or reviewed, and submit them back to the system.

Requirements

Authentication Required
Bearer access_token
Request Headers
Authorization: Bearer access_token
Parameter Name Type Description
type string, required The type of content being updated. Possible values: Product, Category.
storeId string, required Identifier for the specific store where the content belongs.
language string, required Language code (e.g., de for German).
recordId string, required A unique identifier for the record or product in the user's system.
ipAddress string, required IP address of the client/browser if you wish to record it.
fields array of objects, required

An array of field objects to be updated:

  • field (string, required): The field to be updated (e.g., page description, product description).
  • textId (string, required): The unique identifier of the text generated by the system.
  • value (string, required): The updated text value.
  • publish (boolean, optional): Set to true to mark the text as published.
  • reviewed (boolean, optional): Set to true to mark the text as reviewed.

Example API Request

//https://api-eu.writetext.ai/text/generate/text

Response

200
400
404
500
//The text field has been successfully updated.
//If the request is invalid or contains incorrect parameters
//If the specified record or text ID cannot be found.
//The server encountered an error when processing the request.