{
  "nodes": [
    {
      "id": "1cb100ae-108b-43ab-8430-f3ecfc7de76a",
      "name": "Settings",
      "type": "n8n-nodes-base.set",
      "position": [
        208,
        320
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "080b234c-a753-409d-9d2d-3322678a01f2",
              "name": "wordpress URL",
              "type": "string",
              "value": "https://example.com/"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "0f8b25b7-bc5e-4c17-b821-81536741a97c",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -16,
        320
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5401ea77-65f7-4448-ad15-8a8756bc1b39",
      "name": "HTTP Request - Update Yoast Meta",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        448,
        320
      ],
      "parameters": {
        "url": "={{ $json[\"wordpress URL\"] }}wp-json/yoast-api/v1/update-meta",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "predefinedCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "post_id",
              "value": "519"
            },
            {
              "name": "yoast_title",
              "value": "Demo SEO Title"
            },
            {
              "name": "yoast_description",
              "value": "Demo SEO Description"
            }
          ]
        },
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "name": "<your credential>"
        }
      },
      "retryOnFail": true,
      "typeVersion": 4.2
    },
    {
      "id": "e1d716b0-abc7-4436-a28e-3ea44e4e0acc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 592,
        "height": 288,
        "content": "## Yoast SEO Update\n\nThis workflow updates the **SEO Title** and **Meta Description** of a post via a request to a custom API endpoint.\n\n**Prerequisites:**\n* The provided custom plugin must be installed and active on the WordPress site.\n\n**Configuration:**\n* The `post_id` of the post to be modified is set manually in the **HTTP Request - Update Yoast Meta** node.\n* The WordPress site URL is set in the **Settings** node."
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Settings": {
      "main": [
        [
          {
            "node": "HTTP Request - Update Yoast Meta",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}