AUTHENTICATED
scope can execute createPost
mutation.
The current API user will be set as an author. A content such as a learning path or a certificate can be shared.
If the provided content doesn’t relate to the current API user, it will be skipped, and a post will be created only with the text.
Mutation has a single required incoming argument - data
that represents PostCreationInput
object:
Parameter | Type | Description |
---|---|---|
text | String | Required. The post body text. Available HTML tags are: <a> , <p> , <br> . Any other tag will be trimmed. |
sharedContent | PostSharedContentInput | Optional. Contains the data related to the content that is going to be shared in the post (learning path or a certificate). See the table below for more information. |
PostSharedContentInput
Parameter | Type | Description |
---|---|---|
contentId | ID | Required. ID of the shared content (a learning path or a certificate). |
contentType | PostSharedContentType | Required. Contains the type of the shared content. Available options: LEARNING_PATH or CERTIFICATE . |
getPaginatedUserCertificates
query.
To get the list of learning paths (trainings) available for sharing, the getTrainingsForSharing
query should be called.
Post
object. Detailed description and the full list of available properties can be found here.