Skip to main content
PATCH
cURL

Authorizations

Authorization
string
header
required

An access token from the OAuth flow (eo_at_...). It lasts one hour; refresh it with the refresh token. See Authentication.

Path Parameters

id
string<uuid>
required

The article's ID.

Body

application/json
title
string

One line, trimmed, no invisible characters and no <.

Required string length: 1 - 255
slug
string

Letters a-z and A-Z, digits and dashes. Unique among the store's articles (409 slug_taken).

Maximum string length: 255
Pattern: ^[a-zA-Z0-9-]+$
description
string

Plain text, trimmed. Line breaks and tabs are kept; < and invisible characters are refused.

Required string length: 1 - 1000
content
string

HTML, up to 51,200 bytes as sent (rule max). Valid UTF-8 without NUL characters (rule text). Unsafe HTML is removed before it is saved; content that cleaning leaves empty is refused (rule required).

meta_description
string

One line of plain text, trimmed, no invisible characters and no <. May be empty.

Maximum string length: 1000
thumbnail
string

An https URL with an ASCII host, without credentials or a fragment, and without spaces, quotes, <, >, backslashes or backticks. "" removes the thumbnail.

Maximum string length: 2048
tags
string[]

Replaces the article's tags.

Maximum array length: 20

One line, trimmed, no invisible characters and no <.

Required string length: 1 - 50
published
boolean
category_ids
string<uuid>[]

Article categories of the store (rule article_category otherwise). Replaces the article's categories.

Maximum array length: 20

Response

The article, with its content.

article
object
required