@@ -265,8 +265,6 @@ paths:
265265 $ref : ' #/components/schemas/configurationObject'
266266 ' 401 ' :
267267 $ref : ' #/components/responses/Unauthorized'
268- ' 404 ' :
269- $ref : ' #/components/responses/ConfigurationNotFound'
270268 ' 500 ' :
271269 $ref : ' #/components/responses/InternalServerError'
272270 put :
@@ -399,10 +397,10 @@ paths:
399397 type : string
400398 required :
401399 - users
402- ' 400 ' :
403- $ref : ' #/components/responses/BadRequest-2'
404400 ' 401 ' :
405401 $ref : ' #/components/responses/Unauthorized'
402+ ' 422 ' :
403+ $ref : ' #/components/responses/GenericUnprocessableEntity'
406404 ' 500 ' :
407405 $ref : ' #/components/responses/InternalServerError'
408406 /2/users/{userID} :
@@ -426,11 +424,11 @@ paths:
426424 schema :
427425 $ref : ' #/components/schemas/user'
428426 ' 400 ' :
429- $ref : ' #/components/responses/BadRequest-2 '
427+ $ref : ' #/components/responses/BadUserID '
430428 ' 401 ' :
431429 $ref : ' #/components/responses/Unauthorized'
432430 ' 404 ' :
433- $ref : ' #/components/responses/UserNotFound '
431+ $ref : ' #/components/responses/GenericNotFound '
434432 ' 422 ' :
435433 $ref : ' #/components/responses/InvalidUserID'
436434 ' 500 ' :
@@ -467,11 +465,9 @@ paths:
467465 deletedAt :
468466 type : string
469467 ' 400 ' :
470- $ref : ' #/components/responses/BadRequest-2 '
468+ $ref : ' #/components/responses/BadUserID '
471469 ' 401 ' :
472470 $ref : ' #/components/responses/Unauthorized'
473- ' 404 ' :
474- $ref : ' #/components/responses/UserNotFound'
475471 ' 422 ' :
476472 $ref : ' #/components/responses/InvalidUserID'
477473 ' 500 ' :
@@ -736,6 +732,8 @@ components:
736732 type : array
737733 items :
738734 $ref : ' #/components/schemas/errorCodes'
735+ lastUpdatedAt :
736+ type : string
739737 configurationObject :
740738 type : object
741739 properties :
@@ -787,15 +785,57 @@ components:
787785 - personalzationReRanking
788786 - profileType
789787 - 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 :
791799 type : object
792800 properties :
793801 status :
794- type : integer
795- description : HTTP status code.
802+ $ref : ' #/components/schemas/unauthorized'
796803 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'
799839 user :
800840 type : object
801841 properties :
@@ -834,6 +874,70 @@ components:
834874 - userID
835875 - affinities
836876 - 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'
837941 responses :
838942 BadRequest :
839943 description : Bad request or request arguments.
@@ -864,37 +968,43 @@ components:
864968 content :
865969 application/json :
866970 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'
874972 InternalServerError :
875973 description : Internal server error.
876974 content :
877975 application/json :
878976 schema :
879- $ref : ' #/components/schemas/BaseResponse '
977+ $ref : ' #/components/schemas/ErrorResponses_internalServerError '
880978 BadRequest-2 :
881979 description : Bad request.
882980 content :
883981 application/json :
884982 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.
888998 content :
889999 application/json :
8901000 schema :
891- $ref : ' #/components/schemas/BaseResponse '
1001+ $ref : ' #/components/schemas/ErrorResponses_genericNotFound '
8921002 InvalidUserID :
8931003 description : Invalid user ID format.
8941004 content :
8951005 application/json :
8961006 schema :
897- $ref : ' #/components/schemas/BaseResponse '
1007+ $ref : ' #/components/schemas/ErrorResponses_invalidUserID '
8981008x-tagGroups :
8991009 - name : Advanced Personalization
9001010 tags :
0 commit comments