@@ -2131,6 +2131,88 @@ paths:
21312131 schema :
21322132 $ref : ' #/components/schemas/LearningResourceRelationship'
21332133 description : ' '
2134+ /api/v1/learning_resources/{id}/learning_paths/ :
2135+ patch :
2136+ operationId : learning_resources_learning_paths_partial_update
2137+ description : Set Learning Path Relationships on a given Learning Resource.
2138+ summary : Set Learning Path Relationships
2139+ parameters :
2140+ - in : path
2141+ name : id
2142+ schema :
2143+ type : integer
2144+ description : id of the learning resource
2145+ required : true
2146+ - in : query
2147+ name : learning_path_id
2148+ schema :
2149+ type : array
2150+ items :
2151+ type : integer
2152+ description : id of the parent learning path
2153+ tags :
2154+ - learning_resources
2155+ requestBody :
2156+ content :
2157+ application/json :
2158+ schema :
2159+ $ref : ' #/components/schemas/PatchedLearningResourceRelationshipRequest'
2160+ application/x-www-form-urlencoded :
2161+ schema :
2162+ $ref : ' #/components/schemas/PatchedLearningResourceRelationshipRequest'
2163+ multipart/form-data :
2164+ schema :
2165+ $ref : ' #/components/schemas/PatchedLearningResourceRelationshipRequest'
2166+ responses :
2167+ ' 200 ' :
2168+ content :
2169+ application/json :
2170+ schema :
2171+ type : array
2172+ items :
2173+ $ref : ' #/components/schemas/LearningResourceRelationship'
2174+ description : ' '
2175+ /api/v1/learning_resources/{id}/userlists/ :
2176+ patch :
2177+ operationId : learning_resources_userlists_partial_update
2178+ description : Set User List Relationships on a given Learning Resource.
2179+ summary : Set User List Relationships
2180+ parameters :
2181+ - in : path
2182+ name : id
2183+ schema :
2184+ type : integer
2185+ description : id of the learning resource
2186+ required : true
2187+ - in : query
2188+ name : userlist_id
2189+ schema :
2190+ type : array
2191+ items :
2192+ type : integer
2193+ description : id of the parent user list
2194+ tags :
2195+ - learning_resources
2196+ requestBody :
2197+ content :
2198+ application/json :
2199+ schema :
2200+ $ref : ' #/components/schemas/PatchedUserListRelationshipRequest'
2201+ application/x-www-form-urlencoded :
2202+ schema :
2203+ $ref : ' #/components/schemas/PatchedUserListRelationshipRequest'
2204+ multipart/form-data :
2205+ schema :
2206+ $ref : ' #/components/schemas/PatchedUserListRelationshipRequest'
2207+ responses :
2208+ ' 200 ' :
2209+ content :
2210+ application/json :
2211+ schema :
2212+ type : array
2213+ items :
2214+ $ref : ' #/components/schemas/UserListRelationship'
2215+ description : ' '
21342216 /api/v1/learning_resources_search/ :
21352217 get :
21362218 operationId : learning_resources_search_retrieve
@@ -9547,6 +9629,20 @@ components:
95479629 completeness :
95489630 type : number
95499631 format : double
9632+ PatchedLearningResourceRelationshipRequest :
9633+ type : object
9634+ description : CRUD serializer for LearningResourceRelationship
9635+ properties :
9636+ position :
9637+ type : integer
9638+ maximum : 2147483647
9639+ minimum : 0
9640+ relation_type :
9641+ $ref : ' #/components/schemas/RelationTypeEnum'
9642+ parent :
9643+ type : integer
9644+ child :
9645+ type : integer
95509646 PatchedUserListRelationshipRequest :
95519647 type : object
95529648 description : Serializer for UserListRelationship model
0 commit comments