Skip to main content

Content Management Events 0.0.1 documentation

Published Messages (contentManagement)

The service publishes one of these messages below.

contentManagementArticleCreated

Message is sent when article is created. Contains fields from and the following payload.

Example value
{
"payload": {
"articleCreated": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"title": "string",
"rawContent": "string",
"htmlContent": "string",
"slug": "string",
"status": "PUBLISHED",
"topicId": "string",
"metaTitle": "string",
"metaDescription": "string",
"namespace": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
},
"clientId": "string",
"name": "string",
"namespace": "string",
"version": 0,
"timestamp": "2019-08-24T14:15:22Z"
}

payload

NameTypeDescription
articleCreatedobject-
payload.articleCreated
NameTypeDescription
idstring (uuid)article id
titlestringarticle title
rawContentstringarticle content in raw format
htmlContentstringarticle content in HTML format
slugstringarticle slug
statusstringarticle published status
topicIdstringarticle topic id
metaTitlestringarticle meta title
metaDescriptionstringarticle meta description
namespacestringnamespace
createdAtstring (date-time)article creation date
updatedAtstring (date-time)article updated date

contentManagementArticleUpdated

Message is sent when article is updated. Contains fields from and the following payload.

Example value
{
"payload": {
"articleUpdated": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"title": "string",
"rawContent": "string",
"htmlContent": "string",
"slug": "string",
"status": "PUBLISHED",
"topicId": "string",
"metaTitle": "string",
"metaDescription": "string",
"namespace": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
},
"clientId": "string",
"name": "string",
"namespace": "string",
"version": 0,
"timestamp": "2019-08-24T14:15:22Z"
}

payload

NameTypeDescription
articleUpdatedobject-
payload.articleUpdated
NameTypeDescription
idstring (uuid)article id
titlestringarticle title
rawContentstringarticle content in raw format
htmlContentstringarticle content in HTML format
slugstringarticle slug
statusstringarticle published status
topicIdstringarticle topic id
metaTitlestringarticle meta title
metaDescriptionstringarticle meta description
namespacestringnamespace
createdAtstring (date-time)article creation date
updatedAtstring (date-time)article updated date

contentManagementArticleDeleted

Message is sent when article is deleted. Contains fields from and the following payload.

Example value
{
"payload": {
"articleDeleted": {
"id": "string",
"namespace": "string",
"title": "string",
"slug": "string"
}
},
"clientId": "string",
"name": "string",
"namespace": "string",
"version": 0,
"timestamp": "2019-08-24T14:15:22Z"
}

payload

NameTypeDescription
articleDeletedobject-
payload.articleDeleted
NameTypeDescription
idstringarticle id
namespacestringnamespace
titlestringarticle title
slugstringarticle slug

contentManagementTopicCreated

Message is sent when topic is created. Contains fields from and the following payload.

Example value
{
"payload": {
"topicCreated": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"slug": "string",
"status": "VISIBLE",
"icon": "string",
"displayOrder": 0,
"namespace": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
},
"clientId": "string",
"name": "string",
"namespace": "string",
"version": 0,
"timestamp": "2019-08-24T14:15:22Z"
}

payload

NameTypeDescription
topicCreatedobject-
payload.topicCreated
NameTypeDescription
idstring (uuid)topic id
namestringtopic name
slugstringtopic slug
statusstringtopic visibility status
iconstringtopic icon
displayOrderintegertopic display order
namespacestringnamespace
createdAtstring (date-time)topic creation date
updatedAtstring (date-time)topic updated date

contentManagementTopicUpdated

Message is sent when topic is updated. Contains fields from and the following payload.

Example value
{
"payload": {
"topicUpdated": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"slug": "string",
"status": "VISIBLE",
"icon": "string",
"displayOrder": 0,
"namespace": "string",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
},
"clientId": "string",
"name": "string",
"namespace": "string",
"version": 0,
"timestamp": "2019-08-24T14:15:22Z"
}

payload

NameTypeDescription
topicUpdatedobject-
payload.topicUpdated
NameTypeDescription
idstring (uuid)topic id
namestringtopic name
slugstringtopic slug
statusstringtopic visibility status
iconstringtopic icon
displayOrderintegertopic display order
namespacestringnamespace
createdAtstring (date-time)topic creation date
updatedAtstring (date-time)topic updated date

contentManagementTopicDeleted

Message is sent when topic is deleted. Contains fields from and the following payload.

Example value
{
"payload": {
"topicDeleted": {
"id": "string",
"namespace": "string",
"name": "string",
"slug": "string"
}
},
"clientId": "string",
"name": "string",
"namespace": "string",
"version": 0,
"timestamp": "2019-08-24T14:15:22Z"
}

payload

NameTypeDescription
topicDeletedobject-
payload.topicDeleted
NameTypeDescription
idstringtopic id
namespacestringnamespace
namestringtopic name
slugstringtopic slug

contentManagementSupportEmailSent

Message is sent on support email sent event. Contains fields from and the following payload.

Example value
{
"payload": {
"supportEmailSent": {
"subject": "string",
"displayName": "string",
"fromPlayerEmail": "user@example.com",
"toAdminEmail": "user@example.com",
"templateIdAdmin": "string",
"templateIdPlayer": "string"
}
},
"clientId": "string",
"name": "string",
"namespace": "string",
"version": 0,
"timestamp": "2019-08-24T14:15:22Z"
}

payload

NameTypeDescription
supportEmailSentobject-
payload.supportEmailSent
NameTypeDescription
subjectstringemail subject
displayNamestringemail display name
fromPlayerEmailstring (email)player email address
toAdminEmailstring (email)admin email address
templateIdAdminstringadmin template id
templateIdPlayerstringplayer template id

Schemas