Skip to main content
PUT
/
v1
/
portal-content
/
{contentId}
curl -X PUT \
  'https://api.appcharge.com/v1/portal-content/507f1f77bcf86cd799439011' \
  -H 'Content-Type: application/json' \
  -H 'x-publisher-token: <x-publisher-token>' \
  -d '{
    "title": "New Game: Jelly Soda",
    "state": "visible",
    "labels": ["tutorial", "beginner", "featured"]
  }'
{
  "id": "507f1f77bcf86cd799439011",
  "title": "New Game: Jelly Soda",
  "subTitle": "Everything you need to know",
  "bodyText": "This is the main content body with detailed information...",
  "headerImage": "https://cdn.example.com/images/header.jpg",
  "thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
  "labels": ["tutorial", "beginner", "featured"],
  "state": "visible",
  "contentType": "article",
  "slug": "welcome-to-our-game",
  "visibility": "public",
  "createdAt": "2025-10-15T10:30:00.000Z",
  "updatedAt": "2025-10-20T14:45:00.000Z",
  "translations": [
    {
      "isoCode": "fr-FR",
      "title": "Bienvenue dans notre jeu",
      "subTitle": "Tout ce que vous devez savoir",
      "bodyText": "Ceci est le contenu principal de l'article en français...",
      "headerImage": "https://cdn.example.com/images/header-fr.jpg",
      "thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
      "labels": ["tutoriel", "débutant"]
    }
  ],
  "pages": [
    {
      "id": "6850249eb5bd5c59b9bab7e2",
      "pageName": "FAQs"
    },
    {
      "id": "692eb70d0293e07ab4895518",
      "pageName": "Events"
    }
  ]
}
curl -X PUT \
  'https://api.appcharge.com/v1/portal-content/507f1f77bcf86cd799439011' \
  -H 'Content-Type: application/json' \
  -H 'x-publisher-token: <x-publisher-token>' \
  -d '{
    "title": "New Game: Jelly Soda",
    "state": "visible",
    "labels": ["tutorial", "beginner", "featured"]
  }'
{
  "id": "507f1f77bcf86cd799439011",
  "title": "New Game: Jelly Soda",
  "subTitle": "Everything you need to know",
  "bodyText": "This is the main content body with detailed information...",
  "headerImage": "https://cdn.example.com/images/header.jpg",
  "thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
  "labels": ["tutorial", "beginner", "featured"],
  "state": "visible",
  "contentType": "article",
  "slug": "welcome-to-our-game",
  "visibility": "public",
  "createdAt": "2025-10-15T10:30:00.000Z",
  "updatedAt": "2025-10-20T14:45:00.000Z",
  "translations": [
    {
      "isoCode": "fr-FR",
      "title": "Bienvenue dans notre jeu",
      "subTitle": "Tout ce que vous devez savoir",
      "bodyText": "Ceci est le contenu principal de l'article en français...",
      "headerImage": "https://cdn.example.com/images/header-fr.jpg",
      "thumbnailImage": "https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg",
      "labels": ["tutoriel", "débutant"]
    }
  ],
  "pages": [
    {
      "id": "6850249eb5bd5c59b9bab7e2",
      "pageName": "FAQs"
    },
    {
      "id": "692eb70d0293e07ab4895518",
      "pageName": "Events"
    }
  ]
}

Headers

x-publisher-token
string
required

Publisher token.

Path Parameters

contentId
string
required

Content ID.

Example:

"507f1f77bcf86cd799439011"

Body

application/json
title
string

Content title.

Example:

"Welcome to Our Game - Updated"

subTitle
string

Content description.

bodyText
string

Content body text.

headerImage
string

Content header image URL.

thumbnailImage
string

Content thumbnail image URL.

labels
string[]

List of labels associated with the content.

Example:
["tutorial", "beginner", "featured"]
state
enum<string>
default:visible

Current state of the content.

Available options:
visible,
hidden,
scheduled
Example:

"visible"

contentType
enum<string>

Type: article or news.

Available options:
article,
news
publishDate
string<date-time>

Content publish date. Use for scheduling content.

pages
string[]

List of content translations.

Note: You must first add the language in the Publisher Dashboard before adding its translation.

slug
string

Content slug. If not provided, this value is auto-generated.

visibility
enum<string>
default:public

Content visibility level.

Available options:
public,
private
Example:

"public"

translations
object[]

List of content translations.

Note: You must first add the language in the Publisher Dashboard before adding its translation.

Response

Content updated successfully.

id
string

Content ID.

Example:

"507f1f77bcf86cd799439011"

title
string

Content title.

Example:

"Welcome to Our Game"

subTitle
string

Content description.

Example:

"Everything you need to know"

bodyText
string

Content body text.

Example:

"This is the main content body with detailed information..."

headerImage
string

Content header image URL.

Example:

"https://cdn.example.com/images/header.jpg"

thumbnailImage
string

Content thumbnail image URL.

Example:

"https://media.appcharge.com/media/25cb4861ec8924a6b69a0f59/book-shelf1920.jpg"

labels
string[]

List of labels associated with the content.

Example:
["tutorial", "beginner"]
state
enum<string>
default:hidden

Current state of the content.

Available options:
visible,
hidden,
scheduled
Example:

"hidden"

contentType
enum<string>

Content type.

Available options:
article,
news
Example:

"article"

publishDate
string<date-time>

Content publish date. Use for scheduling content.

Example:

"2025-10-20T00:00:00.000Z"

slug
string

Content slug. If not provided, this value is auto-generated.

Example:

"welcome-to-our-game"

visibility
enum<string>
default:public

Content visibility level.

Available options:
public,
private
Example:

"public"

createdAt
string<date-time>

Created date.

Example:

"2025-10-15T10:30:00.000Z"

updatedAt
string<date-time>

Updated date.

Example:

"2025-10-19T14:20:00.000Z"

translations
object[]

List of content translations.

pages
object[]

List of pages where this content appears.

Example:
[
{
"id": "68b0249eb5bd5c59b9bab7e2",
"pageName": "FAQs"
},
{
"id": "692eb70d0293e07ab4895518",
"pageName": "Events"
}
]