Update a Post

WordPress

Action

Updates the data of an entry from its ID.


Information provided

When executed, this operation delivers the following data, which can be used in the same automatic task.

  • Tags

  • Post Id {{post_id}}

  • Post URL {{post_url}}


Common Errors


HTTP Internal error code 28

WordPress did not respond within the set time limit for the request. If this error occurs only occasionally, it's possible that the server is temporarily overloaded or experiencing delays, resulting in slower response times and potential timeouts in requests.

Error: rest_cannot_edit. Lo siento, no tienes permisos para editar esta entrada.

The 'rest_cannot_edit' error in WordPress can occur for two reasons.

  • 1. Insufficient permissions for user.
    One of the reasons is related to user permissions. The type of user selected to access the API does not have permission to edit entries on the page. For example, the 'Subscriber' user will not have permission to edit entries, while the 'Editor' or 'Administrator' users will have permission.

    To resolve this, change the user type in your WordPress admin panel to one with sufficient permissions.

  • 2. Incomplete .htaccess file.
    Another reason why the 'rest_cannot_create' error may appear in WordPress is due to incorrect configuration of the .htaccess file, which may be blocking REST API requests. To resolve this problem, edit the .htaccess file on your WordPress server and check that the following lines are present to enable the authorization header in the WordPress REST API:

    RewriteEngine On
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]


    To edit the .htaccess file, you can access it through your web server control panel or via an FTP client. Make sure to back up the file before making any changes.

  • 3. The username does not match the name of the application.
    When creating the application password, indicate the same name as the WordPress username.

Write us

By email or by Telegram.
Monday to Friday from 7 a.m. to 1 p.m. (Spain).

Let's talk

Choose day and time.
We share the screen and answer all your questions.