Skip to content

Commit 0a83e58

Browse files
author
Mr Alexandre ELISÉ
authored
Abide to the way Joomla wants Http PATCH payload
When using PATCH, articletext MUST be splitted in two parts (introtext and fulltext) or use at least just introtext in order to work properly
1 parent a7e4c2d commit 0a83e58

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/general-concept/webservices.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ $articleId = 1; // The Article ID of a specific Article
140140
$data = [
141141
'id' => $articleId,
142142
'title' => 'How to add an article via the Joomla 4 API?',
143-
'articletext' => 'Use the HTTP POST method at the /content/articles endpoint.',
143+
'introtext' => 'When using PATCH, articletext MUST be splitted in two parts or use at least just introtext in order to work properly',
144+
'fulltext' => 'MORE CONTENT if you wish',
144145
];
145146

146147
$dataString = json_encode($data);
@@ -324,7 +325,8 @@ $articleId = 1; // The Article ID of a specific Article
324325
$data = [
325326
'id' => $articleId,
326327
'title' => 'How to add an article via the Joomla 4 API?',
327-
'articletext' => 'Use the HTTP POST method at the /content/articles endpoint.',
328+
'introtext' => 'When using PATCH, articletext MUST be splitted in two parts or use at least just introtext in order to work properly',
329+
'fulltext' => 'MORE CONTENT if you wish',
328330
];
329331

330332
$dataString = json_encode($data);

0 commit comments

Comments
 (0)