---
search:
  tags:
    - Article Endpoints
    - PUT
seo:
  description: >-
    Step 2 of 5 (optional) — Upload a cover image… Reference for the PUT
    /x/articles/{article_id}/cover endpoint in the Referencia de la API REST de
    TwexAPI API.
sidebar:
  badge: PUT
  label: '[Step 2/5] Upload and set article cover image (optional)'
title: '[Step 2/5] Upload and set article cover image (optional)'
type: openapi-operation
---
**Step 2 of 5 (optional)** — Upload a cover image and attach it to the draft.

- `article_id`: obtained from Step 1
- `cover_image`: an `https://` URL or a local file path

This step can be skipped if you don't need a cover image.

<Operation source="es-api-reference" id="article-update-cover-x-articles-article-id-cover-put" />
