AUTHENTICATED scope can execute createPost mutation.
The current API user will be set as an author. A content such as a started or passed learning path, an acquired certificate or an earned badge 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:
PostSharedContentInput object
The list of certificates that are available for sharing can be retrieved by calling
getPaginatedUserCertificates query.
Only public trainings that have been started or passed by the current API user can be shared.
To get the list of learning paths (trainings) available for sharing, the getTrainingsForSharing query should be called.
Also, any badge that has been earned by the current API user can be shared. To get the list of the available badges, use query getBadges.
UploadedFileInput object
Represents an input data to upload a new file through the API.
An example of a post creation
Post object. Detailed description and the full list of available properties can be found here.