@@ -265,8 +265,6 @@ paths:
265
265
$ref : ' #/components/schemas/configurationObject'
266
266
' 401 ' :
267
267
$ref : ' #/components/responses/Unauthorized'
268
- ' 404 ' :
269
- $ref : ' #/components/responses/ConfigurationNotFound'
270
268
' 500 ' :
271
269
$ref : ' #/components/responses/InternalServerError'
272
270
put :
@@ -399,10 +397,10 @@ paths:
399
397
type : string
400
398
required :
401
399
- users
402
- ' 400 ' :
403
- $ref : ' #/components/responses/BadRequest-2'
404
400
' 401 ' :
405
401
$ref : ' #/components/responses/Unauthorized'
402
+ ' 422 ' :
403
+ $ref : ' #/components/responses/GenericUnprocessableEntity'
406
404
' 500 ' :
407
405
$ref : ' #/components/responses/InternalServerError'
408
406
/2/users/{userID} :
@@ -426,11 +424,11 @@ paths:
426
424
schema :
427
425
$ref : ' #/components/schemas/user'
428
426
' 400 ' :
429
- $ref : ' #/components/responses/BadRequest-2 '
427
+ $ref : ' #/components/responses/BadUserID '
430
428
' 401 ' :
431
429
$ref : ' #/components/responses/Unauthorized'
432
430
' 404 ' :
433
- $ref : ' #/components/responses/UserNotFound '
431
+ $ref : ' #/components/responses/GenericNotFound '
434
432
' 422 ' :
435
433
$ref : ' #/components/responses/InvalidUserID'
436
434
' 500 ' :
@@ -467,11 +465,9 @@ paths:
467
465
deletedAt :
468
466
type : string
469
467
' 400 ' :
470
- $ref : ' #/components/responses/BadRequest-2 '
468
+ $ref : ' #/components/responses/BadUserID '
471
469
' 401 ' :
472
470
$ref : ' #/components/responses/Unauthorized'
473
- ' 404 ' :
474
- $ref : ' #/components/responses/UserNotFound'
475
471
' 422 ' :
476
472
$ref : ' #/components/responses/InvalidUserID'
477
473
' 500 ' :
@@ -736,6 +732,8 @@ components:
736
732
type : array
737
733
items :
738
734
$ref : ' #/components/schemas/errorCodes'
735
+ lastUpdatedAt :
736
+ type : string
739
737
configurationObject :
740
738
type : object
741
739
properties :
@@ -787,15 +785,57 @@ components:
787
785
- personalzationReRanking
788
786
- profileType
789
787
- status
790
- BaseResponse :
788
+ unauthorized :
789
+ type : integer
790
+ description : HTTP status code for an authorization error.
791
+ enum :
792
+ - 401
793
+ ErrorMessages_unauthorized :
794
+ type : string
795
+ description : Details about the response, such as error messages.
796
+ enum :
797
+ - Unauthorized
798
+ ErrorResponses_unauthorized :
791
799
type : object
792
800
properties :
793
801
status :
794
- type : integer
795
- description : HTTP status code.
802
+ $ref : ' #/components/schemas/unauthorized'
796
803
message :
797
- type : string
798
- description : Details about the response, such as error messages.
804
+ $ref : ' #/components/schemas/ErrorMessages_unauthorized'
805
+ internalServerError :
806
+ type : integer
807
+ description : HTTP status code for an internal server error.
808
+ enum :
809
+ - 500
810
+ ErrorMessages_internalServerError :
811
+ type : string
812
+ description : Details about the response, such as error messages.
813
+ enum :
814
+ - Internal Server Error
815
+ ErrorResponses_internalServerError :
816
+ type : object
817
+ properties :
818
+ status :
819
+ $ref : ' #/components/schemas/internalServerError'
820
+ message :
821
+ $ref : ' #/components/schemas/ErrorMessages_internalServerError'
822
+ badRequest :
823
+ type : integer
824
+ description : HTTP status code for a bad request error.
825
+ enum :
826
+ - 400
827
+ ErrorMessages_badRequest :
828
+ type : string
829
+ description : Details about the response, such as error messages.
830
+ enum :
831
+ - Invalid request body
832
+ ErrorResponses_badRequest :
833
+ type : object
834
+ properties :
835
+ status :
836
+ $ref : ' #/components/schemas/badRequest'
837
+ message :
838
+ $ref : ' #/components/schemas/ErrorMessages_badRequest'
799
839
user :
800
840
type : object
801
841
properties :
@@ -834,6 +874,70 @@ components:
834
874
- userID
835
875
- affinities
836
876
- lastUpdatedAt
877
+ unprocessableEntity :
878
+ type : integer
879
+ description : HTTP status code for an unprocessable entity error.
880
+ enum :
881
+ - 422
882
+ genericUnprocessableEntity :
883
+ type : string
884
+ description : Details about the response, such as error messages.
885
+ enum :
886
+ - Unprocessable Entity
887
+ ErrorResponses_genericUnprocessableEntity :
888
+ type : object
889
+ properties :
890
+ status :
891
+ $ref : ' #/components/schemas/unprocessableEntity'
892
+ message :
893
+ $ref : ' #/components/schemas/genericUnprocessableEntity'
894
+ badUserID :
895
+ type : string
896
+ description : Details about the response, such as error messages.
897
+ enum :
898
+ - Invalid userID format
899
+ ErrorResponses_badUserID :
900
+ type : object
901
+ properties :
902
+ status :
903
+ $ref : ' #/components/schemas/badRequest'
904
+ message :
905
+ $ref : ' #/components/schemas/badUserID'
906
+ notFound :
907
+ type : integer
908
+ description : HTTP status code for a not found error.
909
+ enum :
910
+ - 404
911
+ genericNotFound :
912
+ type : string
913
+ description : Details about the response, such as error messages.
914
+ enum :
915
+ - Not Found
916
+ ErrorResponses_genericNotFound :
917
+ type : object
918
+ properties :
919
+ status :
920
+ $ref : ' #/components/schemas/notFound'
921
+ message :
922
+ $ref : ' #/components/schemas/genericNotFound'
923
+ invalidUserID :
924
+ type : string
925
+ description : Details about the response, such as error messages.
926
+ enum :
927
+ - UserID must contain only alphanumeric
928
+ - equal
929
+ - plus
930
+ - slash
931
+ - hyphen
932
+ - or underscore characters
933
+ - and be between 1 and 129 characters long
934
+ ErrorResponses_invalidUserID :
935
+ type : object
936
+ properties :
937
+ status :
938
+ $ref : ' #/components/schemas/unprocessableEntity'
939
+ message :
940
+ $ref : ' #/components/schemas/invalidUserID'
837
941
responses :
838
942
BadRequest :
839
943
description : Bad request or request arguments.
@@ -864,37 +968,43 @@ components:
864
968
content :
865
969
application/json :
866
970
schema :
867
- $ref : ' #/components/schemas/BaseResponse'
868
- ConfigurationNotFound :
869
- description : Configuration not found.
870
- content :
871
- application/json :
872
- schema :
873
- $ref : ' #/components/schemas/BaseResponse'
971
+ $ref : ' #/components/schemas/ErrorResponses_unauthorized'
874
972
InternalServerError :
875
973
description : Internal server error.
876
974
content :
877
975
application/json :
878
976
schema :
879
- $ref : ' #/components/schemas/BaseResponse '
977
+ $ref : ' #/components/schemas/ErrorResponses_internalServerError '
880
978
BadRequest-2 :
881
979
description : Bad request.
882
980
content :
883
981
application/json :
884
982
schema :
885
- $ref : ' #/components/schemas/BaseResponse'
886
- UserNotFound :
887
- description : User not found.
983
+ $ref : ' #/components/schemas/ErrorResponses_badRequest'
984
+ GenericUnprocessableEntity :
985
+ description : Unprocessable entity.
986
+ content :
987
+ application/json :
988
+ schema :
989
+ $ref : ' #/components/schemas/ErrorResponses_genericUnprocessableEntity'
990
+ BadUserID :
991
+ description : Bad user ID.
992
+ content :
993
+ application/json :
994
+ schema :
995
+ $ref : ' #/components/schemas/ErrorResponses_badUserID'
996
+ GenericNotFound :
997
+ description : Not found.
888
998
content :
889
999
application/json :
890
1000
schema :
891
- $ref : ' #/components/schemas/BaseResponse '
1001
+ $ref : ' #/components/schemas/ErrorResponses_genericNotFound '
892
1002
InvalidUserID :
893
1003
description : Invalid user ID format.
894
1004
content :
895
1005
application/json :
896
1006
schema :
897
- $ref : ' #/components/schemas/BaseResponse '
1007
+ $ref : ' #/components/schemas/ErrorResponses_invalidUserID '
898
1008
x-tagGroups :
899
1009
- name : Advanced Personalization
900
1010
tags :
0 commit comments