@@ -342,8 +342,10 @@ head:
342
342
body :
343
343
application/vnd.ibexa.api.UserSegmentList+xml :
344
344
type : UserSegmentList
345
+ example : !include examples/user/users/user_id/segments/UserSegmentList.xml.example
345
346
application/vnd.ibexa.api.UserSegmentList+json :
346
347
type : UserSegmentListWrapper
348
+ example : !include examples/user/users/user_id/segments/UserSegmentList.json.example
347
349
404 :
348
350
description : Error - the user doesn't exist.
349
351
post :
@@ -355,10 +357,31 @@ head:
355
357
example : |
356
358
application/vnd.ibexa.api.UserSegmentAssignInput+xml
357
359
application/vnd.ibexa.api.UserSegmentAssignInput+json
360
+ body :
361
+ application/vnd.ibexa.api.UserSegmentAssignInput+xml :
362
+ type : UserSegmentAssignInput
363
+ example : !include examples/user/users/user_id/segments/UserSegmentAssignInput.xml.example
364
+ application/vnd.ibexa.api.UserSegmentAssignInput+json :
365
+ type : UserSegmentAssignInputWrapper
366
+ example : !include examples/user/users/user_id/segments/UserSegmentAssignInput.json.example
367
+ responses :
368
+ 204 :
369
+ description : No Content - segments assigned to user.
370
+ 401 :
371
+ description : Error - the requesting user is not authorized to assign this segment to the given user.
372
+ 404 :
373
+ description : Error - the user doesn't exist.
358
374
/{segmentIdentifier} :
359
375
delete :
360
376
displayName : Unassign Segment from User
361
377
description : The Segment designated by its identifier is unassigned from the User given by ID.
378
+ responses :
379
+ 204 :
380
+ description : No Content - segments unassigned from user.
381
+ 401 :
382
+ description : Error - the requesting user is not authorized to unassign this segment from the given user.
383
+ 404 :
384
+ description : Error - the segment or the user doesn't exist.
362
385
/drafts :
363
386
get :
364
387
displayName : Load user drafts
0 commit comments