Coorpacademy Content API

Manages the Coorpacademy content repository per brand — external courses and external contents, skills and custom skills, certifications and certification snapshots, custom playlists, bulk external content ingestion, video scripts/subtitles, notifications, and consumption ("consommation") counters. 39 paths / 53 operations, 63 component schemas. Key-gated via an `authorization` header.

OpenAPI Specification

coorpacademy-content-openapi.json Raw ↑
{"openapi":"3.0.0","info":{"description":"API to manage CoorpAcademy content","version":"2.276.0","title":"Content API"},"servers":[{"url":"/api/v2"},{"url":"http://localhost:3700/api/v2"},{"url":"https://content-staging.coorpacademy.com/api/v2"},{"url":"https://content.coorpacademy.com/api/v2"}],"components":{"securitySchemes":{"token":{"type":"apiKey","name":"authorization","in":"header"}},"schemas":{"Meta":{"type":"object","required":["createdAt","updatedAt"],"properties":{"createdAt":{"type":"string","format":"date-time","example":"2021-10-11T14:54:52.368Z"},"updatedAt":{"type":"string","format":"date-time","example":"2021-10-11T14:54:52.368Z"}}},"BulkExternalContentMeta":{"type":"object","required":["modifiedBy"],"properties":{"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"modifiedBy":{"type":"string"},"createdBy":{"type":"string"},"disableLocalesFallback":{"type":"boolean"},"taggedNewUntil":{"type":"string"}}},"MetaVersion":{"type":"object","required":["createdBy","modifiedBy"],"properties":{"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"modifiedBy":{"type":"string"},"createdBy":{"type":"string"},"taggedNewUntil":{"type":"string","format":"date-time"},"isoCore":{"type":"boolean"},"coreBranch":{"type":"string","description":"External Course's reference that belongs the current external content"}}},"ExternalContent":{"type":"object","properties":{"parent":{"type":"string","description":"External Course's reference that belongs the current external content"},"structure":{"type":"object","properties":{"meta":{"$ref":"#/components/schemas/MetaVersion"},"ref":{"type":"string","description":"identifier"},"universalRef":{"type":"string","description":"identifier"},"externalRef":{"type":"string","description":"identifier on external partner"},"app_token":{"type":"string","description":"app token (for 7shape courses)"},"hideCompleteButton":{"type":"boolean"},"type":{"type":"string"},"order":{"type":"number"},"stars":{"type":"number"},"duration":{"type":"number"},"src":{"type":"object","properties":{"mimeType":{"type":"string"},"url":{"type":"string"}}}}},"version":{"type":"string"},"locales":{"type":"object"}},"example":{"structure":{"meta":{"createdAt":"2016-02-09T10:31:57.702Z","updatedAt":"2019-12-13T10:50:42.668Z","isoCore":false,"modifiedBy":"silouone","createdBy":"LaurenceMD","externalCourses":["ext_dis_41LQRYbi"]},"hideCompleteButton":false,"app_token":"86fb63f94a2615b40c8fa0a7bc1c40c2","ref":"ext_cont_41-G-7RtWo","universalRef":"ext_cont_41-G-7RtWo","type":"scorm","order":1,"stars":10,"duration":20,"src":{"mimeType":"application/zip","url":"url"},"version":"1"},"locales":{"en":{"url":"https://s3-eu-west-1.amazonaws.com/scorm/solar_system_en.zip"},"fr":{"url":"https://s3-eu-west-1.amazonaws.com/scorm/solar_system_fr.zip"}}}},"RepositoryExternalContents":{"type":"object","example":{"ext_dis_41LQRYbi":[{"structure":{"meta":{"createdAt":"2016-02-09T10:31:57.702Z","updatedAt":"2019-12-13T10:50:42.668Z","isoCore":false,"coreBranch":null,"modifiedBy":"silouone","createdBy":"LaurenceMD","externalCourses":["ext_dis_41LQRYbi"]},"ref":"ext_cont_41-G-7RtWo","universalRef":"ext_cont_41-G-7RtWo","type":"scorm","order":1,"src":{"mimeType":"application/zip","url":"url"},"version":"1"},"locales":{"en":{"url":"https://s3-eu-west-1.amazonaws.com/scorm/solar_system_en.zip"},"fr":{"url":"https://s3-eu-west-1.amazonaws.com/scorm/solar_system_fr.zip"}}}]}},"ExternalCourse":{"type":"object","properties":{"_deleted":{"type":"boolean"},"structure":{"type":"object","properties":{"meta":{"$ref":"#/components/schemas/MetaVersion"},"ref":{"type":"string","description":"course identifier"},"universalRef":{"type":"string","description":"identifier"},"hidden":{"type":"boolean"},"name":{"type":"string"},"position":{"type":"number"},"partners":{"type":"array","items":{"type":"string"}},"skills":{"type":"array","items":{"type":"string"}},"thematiques":{"type":"array","items":{"type":"string"}},"version":{"type":"string"},"cover":{"type":"object","properties":{"description":{"type":"string","description":"Course desription"},"poster":{"type":["string","null"]},"resource":{"type":["string","null"],"description":"Course video"},"media":{"type":["object","null"],"properties":{"mediaUrl":{"type":"string","description":"Media url"},"mimeType":{"type":"string","description":"Media mimeType"},"type":{"type":"string","description":"Media type"}}}}},"disableLocalesFallback":{"type":"boolean"}}},"locales":{"type":"object"}},"example":{"structure":{"ref":"ext_dis_41LQRYbi","universalRef":"ext_dis_41LQRYbi","hidden":false,"name":"name","position":0,"partners":[],"acquiredSkills":["skill_VyP8vXl5We","skill_Ey6Iw7lqZg","skill_4JePwQgcbe"],"skills":["skill_Ekp8mtR3H"],"thematiques":[],"partnershipType":"custom","disableLocalesFallback":false,"states":{"fr":{"edition":"draft"},"en":{"edition":"validate"}},"meta":{"createdAt":"2016-02-09T10:31:57.702Z","updatedAt":"2019-12-13T10:50:42.668Z","isoCore":false,"coreBranch":null,"modifiedBy":"silouone","createdBy":"LaurenceMD"},"version":"1","cover":{"description":"description","poster":"med_413YKSsqQ","resource":"med_413YKSsqQ "}},"locales":{"en":{"name":"Solar System","description":"Course description","skill_4JePwQgcbe":"Explain what are the key missions of data scientists and data engineers","skill_Ey6Iw7lqZg":"Describe how data science empowers businesses","skill_VyP8vXl5We":"List the differences between data scientists and data engineers"},"fr":{"name":"Système solaire","description":"Description de cours","skill_4JePwQgcbe":"Expliquer quelles sont les missions clés des data scientists et des data engineers","skill_Ey6Iw7lqZg":"Saisir l'importance de la science des données pour les entreprises","skill_VyP8vXl5We":"Citer les différences entre les data scientists et les data engineers"}}}},"SkillStructure":{"type":"object","required":["ref","name"],"properties":{"ref":{"type":"string","description":"Object structure"},"type":{"type":"string","description":"Type object. In this case is skill"},"name":{"type":"string","description":"Translation key for name"},"meta":{"$ref":"#/components/schemas/Meta"}}},"SkillResponse":{"type":"object","required":["structure","locales"],"properties":{"structure":{"$ref":"#/components/schemas/SkillStructure"},"type":{"type":"string"},"locales":{"type":"object"}},"example":{"structure":{"ref":"skill_001","type":"skill","name":"name"},"type":"skill","locales":{"en":{"name":"Communication"},"es":{"name":"Communicación"},"fr":{"name":"Communication"}}}},"SkillLocales":{"type":"object"},"SkillBodyRequest":{"type":"object","properties":{"structure":{"$ref":"#/components/schemas/SkillStructure"},"locales":{"$ref":"#/components/schemas/SkillLocales"}},"example":{"structure":{"ref":"skill_001","name":"name"},"locales":{"fr":{"name":"Communication"},"en":{"name":"Communication"},"es":{"name":"Comunicación"}}}},"ScriptStructure":{"type":"object","properties":{"ref":{"type":"string","description":"subtitleRef"},"states":{"type":"object","description":"States of publication, transcription, progression transcription and edition by lang","additionalProperties":{"type":"object","properties":{"published":{"type":"boolean","description":"States of the publication : true or false"},"original":{"type":"boolean","description":"Authenticity criteria of the script (original if created by uploading a file on cockpit): true or false"},"edition":{"type":"string","description":"States of the edition value : draft or validate"},"state":{"type":"string","description":"state of the generation of subtitle : Success, Error, Pending"},"progression":{"type":"number","description":"% of progression of the generation of the subtitle"}}}},"meta":{"$ref":"#/components/schemas/Meta"}}},"ScriptBodyRequest":{"type":"object","properties":{"structure":{"$ref":"#/components/schemas/ScriptStructure"},"locales":{"$ref":"#/components/schemas/ScriptLocales"},"videoId":{"type":"string","description":"id of the video"},"repository":{"type":"string","description":"repository of the script"}},"example":{"structure":{"ref":"ref_subtitle_01","states":{"fr":{"published":false,"edition":"validate","original":true,"authot":{"state":"success","progression":100}},"en":{"published":true,"edition":"validate","original":true,"authot":{"state":"success","progression":100}},"es":{"published":false,"edition":"validate","original":true,"authot":{"state":"success","progression":100}}}},"videoId":"videoId","repository":"repo-core","locales":{"fr":{"scriptUrl":"url1","srtUrl":"srtUrl","jwTrackId":"id_track_fr"},"en":{"scriptUrl":"url2","srtUrl":"srtUrl","jwTrackId":"id_track_en"},"es":{"scriptUrl":"url3","srtUrl":"srtUrl","jwTrackId":"id_track_es"}}}},"ScriptBodyRequestPut":{"type":"object","properties":{"structure":{"$ref":"#/components/schemas/ScriptStructure"},"locales":{"$ref":"#/components/schemas/ScriptLocales"},"videoId":{"type":"string","description":"id of the video"},"repository":{"type":"string","description":"repository of the video"}},"example":{"locales":{"en":{"scriptUrl":"string","srtUrl":"string","jwTrackId":"id_track_en"}},"structure":{"states":{"en":{"edition":"validate","published":true,"orignal":true,"authot":{"state":"success","progression":100}}}}}},"ScriptLocales":{"type":"object","properties":{"scriptUrl":{"type":"string","description":"Script url on aws s3"},"srtUrl":{"type":"string","description":"Srt url on aws s3"},"jwTrackId":{"type":"string","description":"Track key on jw player"}}},"ScriptResponse":{"type":"object","required":["structure","locales","videoId","repository"],"properties":{"structure":{"$ref":"#/components/schemas/ScriptStructure"},"locales":{"$ref":"#/components/schemas/ScriptLocales"},"videoId":{"type":"string","description":"id of the video"},"repository":{"type":"string","description":"repository of the video"}},"example":{"structure":{"ref":"sub_123","states":{"en":{"edition":"validate","published":true,"original":true,"authot":{"state":"success","progression":100}},"fr":{"edition":"validate","published":true,"original":true,"authot":{"state":"success","progression":100}}}},"videoId":"videoId","repository":"repo-core","locales":{"en":{"scriptUrl":"srtUrl","srtUrl":"strUrl","jwTrackId":"id_track_en"},"es":{"scriptUrl":"srtUrl","srtUrl":"strUrl","jwTrackId":"id_track_es"},"fr":{"scriptUrl":"srtUrl","srtUrl":"strUrl","jwTrackId":"id_track_fr"}}}},"NotificationBodyRequest":{"type":"object","properties":{"name":{"type":"string","description":"name of the notifications. This name will be used as cookie name"},"type":{"type":"string","description":"type of notification"},"active":{"type":"boolean","description":"whether the notification is active or not"},"message":{"type":"string","description":"message of notification"},"link":{"type":"string","description":"link to be used as CTA of the notification"}},"example":{"name":"new_feature_subtitles","type":"feature","active":true,"message":"New feature subtitles online. Click on button to see the demo!","link":"https://video.com/feature/new"}},"NotificationBodyRequestPut":{"type":"object","properties":{"type":{"type":"string","description":"type of notification"},"active":{"type":"boolean","description":"whether the notification is active or not"},"message":{"type":"string","description":"message of notification"},"link":{"type":"string","description":"link to be used as CTA of the notification"}},"example":{"type":"feature","active":true,"message":"New feature subtitles online. Click on button to see the demo!","link":"https://video.com/feature/new"}},"Notification":{"type":"object","required":["name","type","active","message"],"properties":{"name":{"type":"string","description":"name (id) of the notifications. This name will be used as cookie name"},"type":{"type":"string","description":"type of notification"},"active":{"type":"boolean","description":"whether the notification is active or not"},"message":{"type":"string","description":"message of notification"},"link":{"type":"string","description":"link to be used as CTA of the notification"}},"example":{"name":"new_feature_subtitles","type":"feature","active":true,"message":"New feature subtitles online. Click on button to see the demo!","link":"https://video.com/feature/new"}},"AddLocaleBody":{"type":"object","required":["from","to","username"],"properties":{"from":{"type":"string","description":"source locale"},"to":{"type":"string","description":"destination locale"},"username":{"type":"string","description":"github user"}},"example":{"from":"en","to":"pt_BR","username":"jomaora"}},"CertificationConditionItemsDecoder":{"type":"object","properties":{"type":{"type":"string"},"engine":{"type":"string"},"ref":{"type":"string"}}},"CertificationCondition":{"type":"object","properties":{"type":{"type":"string"},"items":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/CertificationConditionItemsDecoder"}}},"nbDone":{"type":"number"},"badge":{"type":"string"},"level":{"type":"string"}}},"DiplomaRewards":{"type":["null","object"],"properties":{"logo_url":{"type":["string","null"]},"signature_url":{"type":["string","null"]}}},"ResourceRewards":{"type":["null","object"],"required":["label","file_uri"],"properties":{"label":{"type":"string"},"file_uri":{"type":"string"}}},"StarsRewards":{"type":["null","object"],"required":["value","groups"],"properties":{"value":{"type":"number"},"groups":{"type":"array","items":{"type":"string"}}}},"CertificationRewards":{"type":"object","properties":{"diploma":{"$ref":"#/components/schemas/DiplomaRewards"},"resource":{"$ref":"#/components/schemas/ResourceRewards"},"stars":{"$ref":"#/components/schemas/StarsRewards"}}},"CertificationLocales":{"type":"object","properties":{"title":{"type":["string","null"]},"description":{"type":["string","null"]},"rewards":{"type":"object","properties":{"diploma":{"type":"object","properties":{"signature_url":{"type":"string"},"logo_url":{"type":"string"}}},"resource":{"type":"object","properties":{"label":{"type":"string"},"file_uri":{"type":"string"}}},"stars":{"type":"object","properties":{"value":{"type":"number"},"groups":{"type":"array","items":{"type":"string"}}}}}}}},"CertificationMeta":{"type":"object","required":["modifiedBy"],"properties":{"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"modifiedBy":{"type":"string"},"createdBy":{"type":"string"}}},"CertificationStructureDiff":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"condition":{"$ref":"#/components/schemas/CertificationCondition"},"rewards":{"$ref":"#/components/schemas/CertificationRewards"},"groups":{"type":"array","items":{"type":"string"}},"populations":{"type":"array","items":{"type":"string"}},"svg":{"type":["string","null"]},"updated":{"type":"boolean"}}},"CertificationStructureSnapshot":{"type":"object","required":["title"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"defaultLocale":{"type":"string"},"condition":{"$ref":"#/components/schemas/CertificationCondition"},"rewards":{"$ref":"#/components/schemas/CertificationRewards"},"groups":{"type":"array","items":{"type":"string"}},"populations":{"type":"array","items":{"type":"string"}},"svg":{"type":"string"},"updated":{"type":"boolean"}}},"CertificationDiff":{"type":"object","required":["ref","repository","version","meta"],"properties":{"repository":{"type":"string"},"ref":{"type":"string"},"version":{"type":"number"},"locales":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CertificationLocales"}},"meta":{"$ref":"#/components/schemas/CertificationMeta"},"state":{"type":"string"},"structure":{"$ref":"#/components/schemas/CertificationStructureDiff"}}},"CertificationSnapshot":{"type":"object","required":["ref","repository","version","meta","state","structure"],"properties":{"repository":{"type":"string"},"ref":{"type":"string"},"version":{"type":"number"},"locales":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CertificationLocales"}},"meta":{"$ref":"#/components/schemas/CertificationMeta"},"state":{"type":"string"},"structure":{"$ref":"#/components/schemas/CertificationStructureSnapshot"}}},"CertificationStructureEdition":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"condition":{"$ref":"#/components/schemas/CertificationCondition"},"rewards":{"$ref":"#/components/schemas/CertificationRewards"},"defaultLocale":{"type":"string"},"groups":{"type":"array","items":{"type":"string"}},"populations":{"type":"array","items":{"type":"string"}},"svg":{"type":"string"},"updated":{"type":"boolean"}}},"CertificationEdition":{"type":"object","required":["ref","repository","version","meta"],"properties":{"repository":{"type":"string"},"ref":{"type":"string"},"version":{"type":"number"},"locales":{"additionalProperties":{"$ref":"#/components/schemas/CertificationLocales"}},"meta":{"$ref":"#/components/schemas/CertificationMeta"},"state":{"type":"string"},"structure":{"$ref":"#/components/schemas/CertificationStructureEdition"}},"example":{"ref":"cert_kIIm6bPa00","repository":"content-core@cockpitRecette-core","version":1,"meta":{"createdAt":"2016-02-09T10:31:57.702Z","updatedAt":"2019-12-13T10:50:42.668Z","modifiedBy":"silouone","createdBy":"stefano"},"structure":{"title":"title","description":"description","populations":["pop1","pop2"],"defaultLocale":"en"},"locales":{"en":{"title":"title","description":"description"},"fr":{"title":"title","description":"description"},"es":{"title":"title","description":"description"}}}},"CertificationConsommationPayload":{"type":"object","properties":{"structure":{"$ref":"#/components/schemas/CertificationStructureSnapshot"},"locales":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CertificationLocales"}}}},"CertificationConsommationOrderMap":{"type":"number"},"CertificationConsommation":{"type":"object","properties":{"ongoing":{"type":"boolean"},"ref":{"type":"string"},"repository":{"type":"string"},"version":{"type":"number"},"payload":{"$ref":"#/components/schemas/CertificationConsommationPayload"},"order_":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/CertificationConsommationOrderMap"}}}}},"CustomPlaylistLocales":{"type":"object","properties":{"title":{"type":["string","null"]},"description":{"type":["string","null"]}}},"CustomPlaylistMeta":{"type":"object","required":["modifiedBy"],"properties":{"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"modifiedBy":{"type":"string"},"createdBy":{"type":"string"}}},"CustomPlaylistItemMap":{"type":"object","properties":{"type":{"type":"string"},"engine":{"type":"string"},"ref":{"type":"string"}}},"CustomPlaylistStructureEdition":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"defaultLocale":{"type":"string"},"items":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/CustomPlaylistItemMap"}}},"populations":{"type":"array","items":{"type":"string"}}}},"CustomPlaylistEdition":{"type":"object","required":["ref","repository","version","meta"],"properties":{"repository":{"type":"string"},"ref":{"type":"string"},"version":{"type":"number"},"locales":{"additionalProperties":{"$ref":"#/components/schemas/CustomPlaylistLocales"}},"meta":{"$ref":"#/components/schemas/CustomPlaylistMeta"},"state":{"type":"string"},"structure":{"$ref":"#/components/schemas/CustomPlaylistStructureEdition"}},"example":{"ref":"cplaylist_kIIm6bPa00","repository":"content-core@cockpitRecette-core","version":1,"meta":{"createdAt":"2016-02-09T10:31:57.702Z","updatedAt":"2019-12-13T10:50:42.668Z","modifiedBy":"silouone","createdBy":"stefano"},"structure":{"title":"title","description":"description","populations":["pop1","pop2"],"defaultLocale":"en","items":{"dis_N12Qn2u8I":{"engine":"learner","ref":"dis_N12Qn2u8I","type":"level","position":1}}},"locales":{"en":{"title":"title","description":"description"},"fr":{"title":"title","description":"description"},"es":{"title":"title","description":"description"}}}},"CustomPlaylistConsommationPayload":{"type":"object","properties":{"structure":{"$ref":"#/components/schemas/CustomPlaylistStructureEdition"},"locales":{"additionalProperties":{"$ref":"#/components/schemas/CustomPlaylistLocales"}}}},"CustomPlaylistConsommation":{"type":"object","properties":{"ongoing":{"type":"boolean"},"ref":{"type":"string"},"repository":{"type":"string"},"version":{"type":"number"},"payload":{"$ref":"#/components/schemas/CustomPlaylistConsommationPayload"}},"example":{"ref":"cplaylist_kIIm6bPa00","repository":"content-core@cockpitRecette-core","version":1,"state":"draft","meta":{"createdAt":"2016-02-09T10:31:57.702Z","updatedAt":"2019-12-13T10:50:42.668Z","modifiedBy":"silouone","createdBy":"stefano"},"defaultLocale":"en","payload":{"populations":["pop1","pop2"],"title":"title","description":"description","items":{"dis_N12Qn2u8I":{"engine":"learner","ref":"dis_N12Qn2u8I","type":"level"}},"locales":{"en":{"title":"title","description":"description"},"fr":{"title":"title","description":"description"},"es":{"title":"title","description":"description"}}}}},"Error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"errors":{"type":"array","items":{"type":"object"}},"success":{"type":"boolean"},"status":{"type":"integer","format":"int32"},"message":{"type":"string"}}},"ErrorCSV":{"type":"object","properties":{"column":{"type":"string","description":"column of the errorCSV"},"errorCode":{"type":"string","description":"errorCode of the errorCSV"},"description":{"type":"string","description":"description of the errorCSV"}}},"ErrorResource":{"type":"object","properties":{"type":{"type":"string","description":"type of the error resource"},"fileName":{"type":"string","description":"name of the error resource"}}},"ExternalContentForBulk":{"type":"object","properties":{"duration":{"type":"number","description":"duration of the external content"},"cover":{"type":"object","properties":{"mimeType":{"type":"string","description":"mimeType of the cover"},"type":{"type":"string","description":"type of the cover"},"url":{"type":"string","description":"url of the cover"}}},"skills":{"type":"array","items":{"type":"string"},"description":"skills of the external content"},"partners":{"type":"array","items":{"type":"string"},"description":"partners of the external content"},"thematiques":{"type":"array","items":{"type":"string"},"description":"thematiques of the external content"},"disableLocalesFallback":{"type":"boolean","description":"disableLocalesFallback of the external content"},"lang":{"type":"string","description":"language of the external content"},"state":{"type":"string","description":"state of the external content"},"url":{"type":"string","description":"url of the external content"},"externalRef":{"type":"string","description":"external ref of the external content"},"mode":{"type":"string","description":"mode of the external content"},"title":{"type":"string","description":"title of the external content"},"fileName":{"type":"string","description":"file name of the external content"},"description":{"type":"string","description":"description of the external content"},"errorResource":{"$ref":"#/components/schemas/ErrorResource"},"errorCSV":{"$ref":"#/components/schemas/ErrorCSV"}}},"BulkExternalContent":{"type":"object","properties":{"ref":{"type":"string","description":"ref of the bulk external content"},"repository":{"type":"string","description":"repository of the bulk external content"},"states":{"type":"string","description":"state of the bulk external content"},"progress":{"type":"number","description":"progress of the bulk external content"},"metadata":{"$ref":"#/components/schemas/BulkExternalContentMeta"},"externalContentList":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ExternalContentForBulk"}},"resourceUrl":{"type":"string","description":"resourceUrl of the bulk external content"},"metadataUrl":{"type":"string","description":"metadataUrl of the bulk external content"}},"example":{"ref":"ref","repository":"content-core@cockpitRecette-core","states":"pending","progress":50,"metadata":{"createdAt":"2021-10-11T14:54:52.368Z","updatedAt":"2021-10-11T14:54:52.368Z","modifiedBy":"ouiza","createdBy":"ouiza","disableLocalesFallback":true},"externalContentList":{"key1":{"duration":"10","cover":{"mimeType":"image/jpeg","type":"img","url":"url"},"skills":["skill0","skill1"],"partners":["partner0","partner1"],"mode":"mode","title":"title","fileName":"fileName","description":"description","errorResource":{"key1":{"type":"error1","fileName":"fileName"}},"errorCSV":{"key1":{"column":"column","errorCode":"errorCode","description":"description"}}}},"resourceUrl":"","metadataUrl":""}},"BulkExternalContentInitialUpsert":{"type":"object","properties":{"ref":{"type":"string","description":"ref of the bulk external content"},"repository":{"type":"string","description":"repository of the bulk external content"},"state":{"type":"string","enum":["pending"],"description":"state of the bulk external content"},"totalExpectedItems":{"type":"number","description":"number of bulk items"},"bulkTitle":{"type":"string","description":"title of the bulk"},"metadata":{"$ref":"#/components/schemas/BulkExternalContentMeta"}},"required":["ref","repository","state","totalExpectedItems"],"example":{"ref":"extBulk_zIaDGjAXDA","repository":"content-core@cockpitRecette-core","state":"pending","totalExpectedItems":15,"bulkTitle":"bulk title","metadata":{"createdAt":"2021-10-11T14:54:52.368Z","updatedAt":"2021-10-11T14:54:52.368Z","modifiedBy":"ouiza","createdBy":"ouiza","disableLocalesFallback":true}}},"BulkExternalContentUpsert":{"type":"object","properties":{"ref":{"type":"string","description":"ref of the bulk external content"},"repository":{"type":"string","description":"repository of the bulk external content"},"metadata":{"$ref":"#/components/schemas/BulkExternalContentMeta"},"externalContentList":{"$ref":"#/components/schemas/ExternalContentForBulk"},"resourceUrl":{"type":"string","description":"resourceUrl of the bulk external content"},"metadataUrl":{"type":"string","description":"metadataUrl of the bulk external content"}},"required":["ref","repository","externalContentList"],"example":{"ref":"extBulk_zIaDGjAXDA","repository":"content-core@cockpitRecette-core","metadata":{"createdAt":"2021-10-11T14:54:52.368Z","updatedAt":"2021-10-11T14:54:52.368Z","modifiedBy":"ouiza","createdBy":"ouiza","disableLocalesFallback":true},"externalContentList":{"key1":{"duration":10,"cover":{"mimeType":"image/jpeg","type":"img","url":"url"},"skills":["skill0","skill1"],"partners":["partner0","partner1"],"thematiques":["thematique0","thematique1"],"acquiredSkills":[],"disableLocalesFallback":false,"modifiedBy":"ouiza","createdBy":"ouiza","lang":"fr","state":"state","url":"url","mode":"mode","title":"title","fileName":"fileName","partnershipType":"partnershipType","description":"description","externalRef":"externalRef","version":"version","errorResource":{"key1":{"type":"error1","fileName":"fileName"}},"errorCSV":{"key1":{"column":"column","errorCode":"errorCode","description":"description"}}}},"resourceUrl":"","metadataUrl":""}},"BulkExternalContentStateUpsert":{"type":"object","properties":{"ref":{"type":"string","description":"ref of the bulk external content"},"repository":{"type":"string","description":"repository of the bulk external content"},"state":{"type":"string","enum":["saved","deleted"],"description":"state of the bulk external content"},"metadata":{"$ref":"#/components/schemas/BulkExternalContentMeta"}},"required":["ref","repository","state"],"example":{"ref":"extBulk_zIaDGjAXDA","repository":"content-core@cockpitRecette-core","states":"saved","metadata":{"modifiedBy":"ouiza"}}},"BulkExternalContentUpsertResponse":{"type":"object","properties":{"ref":{"type":"string","description":"ref of the bulk external content"},"repository":{"type":"string","description":"repository of the bulk external content"},"state":{"type":"string","description":"state of the bulk external content"},"totalExpectedItems":{"type":"number","description":"number of bulk items"},"totalProcessedItems":{"type":"number","description":"number of bulk items processed"},"bulkTitle":{"type":"string","description":"title of the bulk"},"progress":{"type":"number","description":"progress of the bulk external content"},"metadata":{"$ref":"#/components/schemas/BulkExternalContentMeta"},"externalContentList":{"$ref":"#/components/schemas/ExternalContentForBulk"},"resourceUrl":{"type":"string","description":"resourceUrl of the bulk external content"},"metadataUrl":{"type":"string","description":"metadataUrl of the bulk external content"}},"example":{"ref":"extBulk_zIaDGjAXDA","repository":"content-core@cockpitRecette-core","states":"pending","progress":50,"metadata":{"createdAt":"2021-10-11T14:54:52.368Z","updatedAt":"2021-10-11T14:54:52.368Z","modifiedBy":"ouiza","createdBy":"ouiza","disableLocalesFallback":true},"externalContentList":{"key1":{"duration":10,"cover":{"mimeType":"image/jpeg","type":"img","url":"url"},"skills":["skill0","skill1"],"partners":["partner0","partner1"],"thematiques":["thematique0","thematique1"],"disableLocalesFallback":false,"modifiedBy":"ouiza","createdBy":"ouiza","lang":"fr","state":"state","url":"url","mode":"mode","title":"title","fileName":"fileName","partnershipType":"partnershipType","description":"description","externalRef":"externalRef","version":"version","errorResource":{"key1":{"type":"error1","fileName":"fileName"}},"errorCSV":{"key1":{"column":"column","errorCode":"errorCode","description":"description"}}}},"resourceUrl":"","metadataUrl":""}},"CustomSkillConsommation":{"type":"object","required":["ref","repository","version","meta","state","defaultLocale","payload"],"properties":{"repository":{"type":"string"},"ref":{"type":"string"},"version":{"type":"number"},"state":{"enum":["published","deleted","archived","draft"]},"defaultLocale":{"type":"string","example":"en"},"meta":{"$ref":"#/components/schemas/CustomSkillMeta"},"payload":{"$ref":"#/components/schemas/CustomSkillConsommationPayload"}}},"CustomSkillConsommationBodyUpsert":{"type":"object","required":["ref","repository","meta","state"],"properties":{"repository":{"type":"string"},"ref":{"type":"string"},"version":{"type":"number"},"state":{"enum":["published","deleted","archived","draft"]},"defaultLocale":{"type":"string","example":"en"},"meta":{"$ref":"#/components/schemas/CustomSkillMeta"},"payload":{"$ref":"#/components/schemas/CustomSkillConsommationPayload"}}},"CustomSkillConsommationPayload":{"type":"object","required":["title","description"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"items":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/CustomSkillItems"}},"icon":{"type":"object","properties":{"color":{"type":"string"},"name":{"type":"string"}}},"locales":{"type":"object","additionalProperties":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"}}}}}},"CustomSkillItems":{"type":"object","properties":{"type":{"type":"string"},"ref":{"type":"string"}}},"CustomSkillMeta":{"type":"object","required":["modifiedBy"],"properties":{"modifiedBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"updatedAt":{"type":"string","format":"date-time"}}},"CustomSkillEdition":{"type":"object","required":["repository","version"],"properties":{"repository":{"type":"string"},"ref":{"type":"string"},"version":{"type":"number"},"locales":{"type":"object","properties":{"lang":{"$ref":"#/components/schemas/CustomSkillLocalesMap"}}},"meta":{"$ref":"#/components/schemas/CustomSkillMeta"},"state":{"type":"string"},"structure":{"$ref":"#/components/schemas/CustomSkillStructureEdition"}}},"CustomSkillStructureEdition":{"type":"object","properties":{"title":{"type":"string","example":"title"},"description":{"type":"string","example":"description"},"defaultLocale":{"type":"string","example":"en"},"icon":{"type":"object","$ref":"#/components/schemas/CustomSkillIcon"},"items":{"type":"object","properties":{"ref":{"$ref":"#/components/schemas/CustomSkillItemMap"}}}}},"CustomSkillIcon":{"type":"object","properties":{"color":{"type":"string","example":"#FFFFFF"},"name":{"type":"string","example":"white"}}},"CustomSkillItemMap":{"type":"object","properties":{"type":{"type":"string","example":"type"},"ref":{"type":"string","example":"ref"}}},"CustomSkillLocalesMap":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"}}},"ConsommationContentCount":{"type":"object","properties":{"_id":{"type":"string","enum":["published","archived","draft"]},"count":{"type":

# --- truncated at 32 KB (91 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/coorpacademy/refs/heads/main/openapi/coorpacademy-content-openapi.json