{"openapi":"3.0.1","info":{"title":"Keycloak management","description":"To manage keycloak user\n <b><h1>Deprecated endpoints:</h1></b><table border=\"1px;\"><tr><th style=\"text-align: center; vertical-align: middle;\"><b><h3>Uri</b></h3></th><th><b>Method</b></th><th><b><h3>Since</h3></b></th><th><b><h3>End of life</h3></b></th></tr></table>","version":"1-apps"},"servers":[{"url":"api.test.bluestonepim.com/keycloak-mgmt-v3"}],"tags":[{"name":"Address","description":"To manage address."},{"name":"Client Settings","description":"To manage client setting."},{"name":"Configuration","description":"To manage default configuration."},{"name":"Customer attributes","description":"To get customer attributes."},{"name":"Customer groups","description":"To manage customers groups."},{"name":"Customer permissions","description":"To manage customer permissions."},{"name":"Customer profiles","description":"To manage customers profiles."},{"name":"Roles","description":"To manage customers roles."},{"name":"Customer users","description":"To manage customer users."},{"name":"Identity","description":"To manage SSO identity."},{"name":"Impersonation","description":"To manage customer impersonation."},{"name":"Labels","description":"To manage labels."},{"name":"SSO","description":"To manage basic SSO profile setup."},{"name":"Realm Settings","description":"To manage realm setting."},{"name":"Simple","description":"To get simple response."},{"name":"Synchronization","description":"Resource synchronization."}],"paths":{"/addresses/customerProfile":{"post":{"tags":["Address"],"summary":"Link an address to profile.","operationId":"addAddressToProfile","requestBody":{"description":"Profile address request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileAddressRequest"}}},"required":true},"responses":{"200":{"description":"Linked address to profile"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Address"],"summary":"Remove address link from profile.","operationId":"removeAddressToProfile","requestBody":{"description":"Profile address request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileAddressRequest"}}}},"responses":{"200":{"description":"RemoveAddress relation of addresses and profile"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"500":{"description":"Internal server error"}},"security":[{"oauth2":[]}]}},"/addresses/user":{"post":{"tags":["Address"],"summary":"Link an address to user.","operationId":"addUserToProfile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAddressRequest"}}},"required":true},"responses":{"200":{"description":"Linked address to user"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Address"],"summary":"Unlink an address from user.","operationId":"removeUserToProfile","requestBody":{"description":"User address request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAddressRequest"}}}},"responses":{"200":{"description":"Unlinked address from user"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"500":{"description":"Internal server error"}},"security":[{"oauth2":[]}]}},"/addresses":{"get":{"tags":["Address"],"summary":"Get address list.","operationId":"getAddressList","parameters":[{"name":"query","in":"query","description":"Search addresses by address name and type.","schema":{"type":"string"}},{"name":"type","in":"query","description":"Return only addresses in the given type.","schema":{"type":"string","enum":["BILLING","SHIPPING","VISITATION"]}},{"name":"addressName","in":"query","description":"Return only addresses in the given name.","schema":{"type":"string"}},{"name":"postalCode","in":"query","description":"Return only addresses in the given postal code.","schema":{"type":"string"}},{"name":"city","in":"query","description":"Return only addresses in the given city.","schema":{"type":"string"}},{"name":"country","in":"query","description":"Return only addresses in the given country.","schema":{"type":"string"}},{"name":"active","in":"query","description":"Return only addresses in the given status.","schema":{"type":"boolean"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"Addresses described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAddressResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]},"post":{"tags":["Address"],"summary":"Create an address.","operationId":"createAddress","requestBody":{"description":"Update address request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAddressRequest"}}},"required":true},"responses":{"200":{"description":"Addresses created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/addresses/{id}/labels":{"get":{"tags":["Address"],"summary":"Get labels from specific address.","operationId":"getLabelsByAddressId","parameters":[{"name":"id","in":"path","description":"Address Id.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"sortField","in":"query","description":"Label sorting field.","schema":{"title":"sortField","type":"string","enum":["name","id"]}},{"name":"sortDirection","in":"query","description":"Label sorting direction.","schema":{"title":"sortDirection","type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"Address labels described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLabelResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]},"post":{"tags":["Address"],"summary":"Link label to address","operationId":"createLabelRelationByAddressId","parameters":[{"name":"id","in":"path","description":"Address Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Label relation data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelRelationDataRequest"}}},"required":true},"responses":{"201":{"description":"Link labels to address success, return added labels detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLabelResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Address"],"summary":"Unlink labels from address.","operationId":"deleteLabelRelationByAddressId","parameters":[{"name":"id","in":"path","description":"Address Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Label relation data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelRelationDataRequest"}}}},"responses":{"200":{"description":"Unlink labels from address success"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/addresses/{id}":{"get":{"tags":["Address"],"summary":"Get address list.","operationId":"getAddressByAddressId","parameters":[{"name":"id","in":"path","description":"Address Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Address described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]},"put":{"tags":["Address"],"summary":"Update an address.","operationId":"updateAddress","parameters":[{"name":"id","in":"path","description":"Address Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Update address request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAddressRequest"}}},"required":true},"responses":{"200":{"description":"Addresses updated"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Address"],"summary":"Delete an address.","operationId":"deleteAddress","parameters":[{"name":"id","in":"path","description":"Address Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Addresses deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/addresses/{id}/profiles":{"get":{"tags":["Address"],"summary":"Get profile list linked to address.","operationId":"getProfileByAddressId","parameters":[{"name":"id","in":"path","description":"Address Id.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"search","in":"query","description":"Search text.","schema":{"type":"string"}},{"name":"sortField","in":"query","description":"Sort profile field.","schema":{"type":"string","enum":["name","number"]}},{"name":"sortDirection","in":"query","description":"Sort profile direction.","schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"Profile listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProfileResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/addresses/{id}/users":{"get":{"tags":["Address"],"summary":"Get user list linked to address.","operationId":"getUserByAddressId","parameters":[{"name":"id","in":"path","description":"Address Id.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"search","in":"query","description":"Search text.","schema":{"type":"string"}},{"name":"sortField","in":"query","description":"Sort profile field.","schema":{"type":"string","enum":["username","firstname","lastname","email"]}},{"name":"sortDirection","in":"query","description":"Sort profile direction.","schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"User listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerUserResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/addresses/labels/map":{"post":{"tags":["Address"],"summary":"Get labels mapping from specific address.","operationId":"searchLabelsByAddressIds","requestBody":{"description":"List by Id request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListByIdsRequest"}}},"required":true},"responses":{"200":{"description":"Address labels described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapLabelResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/addresses/validate":{"post":{"tags":["Address"],"summary":"Validate address list regarding to user and profile.","operationId":"validateAddressListByUserAndProfile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateUserProfileAddressRequest"}}},"required":true},"responses":{"200":{"description":"List of Valid address Id","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateProfileUserAddressResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/settings/client/frontend":{"get":{"tags":["Client Settings"],"summary":"Get frontend client settings.","operationId":"getClientSetting","responses":{"200":{"description":"Settings described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientSettings"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden"}},"security":[{"oauth2":[]}]},"put":{"tags":["Client Settings"],"summary":"Update frontend client settings.","operationId":"updateClientSetting","requestBody":{"description":"Client request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientSettings"}}},"required":true},"responses":{"200":{"description":"Client settings updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RealmSettings"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden"}},"security":[{"oauth2":[]}]}},"/configuration":{"get":{"tags":["Configuration"],"summary":"Get default configuration.","operationId":"getConfiguration","parameters":[{"name":"scope","in":"query","description":"Scope.","schema":{"type":"string"}}],"responses":{"200":{"description":"Get default config success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDefaultConfigurationResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Cannot get default config"}},"security":[{"oauth2":[]}]}},"/customerAttributes":{"post":{"tags":["Customer attributes"],"summary":"List customer attributes.","operationId":"listCustomerAttributes","parameters":[{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"includeGroup","in":"query","schema":{"title":"Is include group.","type":"boolean"}},{"name":"includeProfile","in":"query","schema":{"title":"Is include profile.","type":"boolean"}},{"name":"includeUser","in":"query","schema":{"title":"Is include user.","type":"boolean"}},{"name":"query","in":"query","schema":{"title":"Query text","type":"string","default":""}}],"responses":{"200":{"description":"List customer attributes success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerAttributeResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/customerAttributes/query":{"post":{"tags":["Customer attributes"],"summary":"List customer attributes value by query.","operationId":"listCustomerAttributesByQuery","requestBody":{"description":"Get customer attribute request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetCustomerAttributeRequest"}}},"required":true},"responses":{"200":{"description":"Query customer attributes success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerAttributeResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/customerGroups":{"get":{"tags":["Customer groups"],"summary":"Get customer group list.","operationId":"getCustomerGroupList","parameters":[{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"query","in":"query","description":"Return only groups that contain the given name.","schema":{"type":"string"}},{"name":"number","in":"query","description":"Return only groups that contain the given number.","schema":{"type":"string"}},{"name":"profileId","in":"query","description":"Return only groups that linked to the profile id.","schema":{"type":"string"}},{"name":"maxProfile","in":"query","description":"Maximum profile.","schema":{"type":"integer","format":"int32","default":0}},{"name":"sortField","in":"query","description":"Sort customer group field.","schema":{"type":"string","enum":["name","number"]}},{"name":"sortDirection","in":"query","description":"Sort customer group direction.","schema":{"type":"string","enum":["asc","desc"]}},{"name":"attributes","in":"query","description":"Attribute filters, provided as repeated query params in the format attributes=key=value (e.g. attributes=key-a=a-val&attributes=key-b=b-val).","style":"form","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Customer group described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerGroupResponse"}},"application/full+json":{"schema":{"$ref":"#/components/schemas/ListCustomerGroupResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]},"post":{"tags":["Customer groups"],"summary":"Create customer group.","operationId":"createCustomerGroup","requestBody":{"description":"Group data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupDataRequest"}}},"required":true},"responses":{"201":{"description":"Customer group created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerGroupInfo"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/customerGroups/{id}/attributes":{"put":{"tags":["Customer groups"],"summary":"Update customer group attributes.","operationId":"updateCustomerGroupAttribute","parameters":[{"name":"id","in":"path","description":"Group Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Customer group attribute data","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"Attributes updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileAttributeRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"post":{"tags":["Customer groups"],"summary":"Create customer group attributes.","operationId":"createCustomerGroupAttribute","parameters":[{"name":"id","in":"path","description":"Group Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Customer group attribute data.","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"Attributes created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileAttributeRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Customer groups"],"summary":"Delete customer group attribute.","operationId":"deleteCustomerGroupAttribute","parameters":[{"name":"id","in":"path","description":"Group Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiNamesRequest"}}},"required":true},"responses":{"200":{"description":"Customer group attribute deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/customerGroups/{id}/customerPermissions":{"get":{"tags":["Customer groups"],"summary":"Get group permissions.","operationId":"getCustomerGroupPermissions","parameters":[{"name":"id","in":"path","description":"Group Id.","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","description":"Permission type.","schema":{"type":"string","enum":["NON_RESOURCE","PRODUCT","CATEGORY"]}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"Group with Permissions described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPermissionRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Group not found"}},"security":[{"oauth2":[]}]},"post":{"tags":["Customer groups"],"summary":"Create customer group permission.","operationId":"createCustomerGroupPermission","parameters":[{"name":"id","in":"path","description":"Group Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Customer group permission request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerGroupPermissionRequest"}}}},"responses":{"200":{"description":"Associated group internal role with internal permission","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindRolePermissionResponseList"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Customer groups"],"summary":"Delete customer group permission.","operationId":"deleteCustomerGroupPermission","parameters":[{"name":"id","in":"path","description":"Group Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Customer group permission request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerGroupPermissionRequest"}}}},"responses":{"204":{"description":"Customer group permission deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/customerGroups/{id}":{"get":{"tags":["Customer groups"],"summary":"Get specific customer group.","operationId":"getCustomerGroupById","parameters":[{"name":"id","in":"path","description":"Group Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Customer group described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerGroupInfo"}},"application/full+json":{"schema":{"$ref":"#/components/schemas/CustomerGroupInfo"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]},"put":{"tags":["Customer groups"],"summary":"Update customer group.","operationId":"updateCustomerGroup","parameters":[{"name":"id","in":"path","description":"Group Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Group data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupDataRequest"}}},"required":true},"responses":{"200":{"description":"Customer group updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerGroupInfo"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Customer groups"],"summary":"Delete customer group.","operationId":"deleteCustomerGroup","parameters":[{"name":"id","in":"path","description":"Group Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"customer group deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/customerGroups/{id}/roles":{"get":{"tags":["Customer groups"],"summary":"Get customer group's roles.","operationId":"getCustomerGroupRoles","parameters":[{"name":"id","in":"path","description":"Customer group Id.","required":true,"schema":{"type":"string"}},{"name":"sort","in":"query","description":"Flag to use sorting by role name","schema":{"type":"boolean","default":false}},{"name":"includeInternalRole","in":"query","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"CustomerGroup's roles described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerRole"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/customerGroups/default":{"get":{"tags":["Customer groups"],"summary":"Get a default customer group.","operationId":"getDefaultGroup","responses":{"200":{"description":"A default customer group described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerGroupInfo"}},"application/full+json":{"schema":{"$ref":"#/components/schemas/CustomerGroupInfo"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No default customer group defined"}},"security":[{"oauth2":[]}]}},"/customerGroups/{id}/profiles":{"get":{"tags":["Customer groups"],"summary":"Get customer profile for a given group.","operationId":"getGroupProfiles","parameters":[{"name":"id","in":"path","description":"Group Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProfileRepresentation"}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/customerGroups/{id}/internalRole":{"get":{"tags":["Customer groups"],"summary":"Get customer group internal role.","operationId":"getResourceAndNonResourceRoleId","parameters":[{"name":"id","in":"path","description":"Group Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get customer group role success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerGroupRole"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Customer group role not found"},"500":{"description":"Internal server error"}},"security":[{"oauth2":[]}]}},"/customerGroups/list/by-ids":{"post":{"tags":["Customer groups"],"summary":"List customer group by ids.","operationId":"listCustomerGroupByIds","requestBody":{"description":"List of customer group Id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListByIdsRequest"}}},"required":true},"responses":{"200":{"description":"List customer group success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerGroupResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Customer group not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/customerGroups/migrate":{"post":{"tags":["Customer groups"],"summary":"Migrate role to resource and non resource role.","operationId":"migrateCustomerGroupRole","requestBody":{"description":"Migrate customer group role request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrateCustomerGroupRoleRequest"}}},"required":true},"responses":{"200":{"description":"Customer group are migrated"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"},"500":{"description":"Can not migrate customer group"}},"security":[{"oauth2":[]}]}},"/customerGroups/{id}/profiles/list":{"get":{"tags":["Customer groups"],"summary":"Get customer profile for a given group.","operationId":"searchGroupProfiles","parameters":[{"name":"id","in":"path","description":"Group Id.","required":true,"schema":{"type":"string"}},{"name":"query","in":"query","description":"Search profiles by name and number.","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProfileResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/customerGroups/default/{groupId}":{"put":{"tags":["Customer groups"],"summary":"Set a default customer group.","operationId":"setDefaultGroup","parameters":[{"name":"groupId","in":"path","description":"Group Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"A default customer group updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerGroupInfo"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Incorrect group Id"},"500":{"description":"Internal server error"}},"security":[{"oauth2":[]}]}},"/customerPermissions/{id}":{"get":{"tags":["Customer permissions"],"summary":"Get specific customer permission.","operationId":"getCustomerPermissionByPermissionId","parameters":[{"name":"id","in":"path","description":"Permission Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"customer permission described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerPermissionInfo"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]},"patch":{"tags":["Customer permissions"],"summary":"Patch customer permission.","operationId":"patchCustomerPermission","parameters":[{"name":"id","in":"path","description":"Permission Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchCustomerPermission"}}},"required":true},"responses":{"200":{"description":"Patch permission successfully"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/customerPermissions":{"get":{"tags":["Customer permissions"],"summary":"Get permission list.","operationId":"getCustomerPermissionList","parameters":[{"name":"name","in":"query","description":"Name.","schema":{"type":"string"}},{"name":"page","in":"query","description":"Page number.","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","description":"Number of item per page.","schema":{"type":"integer","format":"int32","default":20}},{"name":"type","in":"query","description":"Permission type.","schema":{"type":"string","enum":["NON_RESOURCE","PRODUCT","CATEGORY"]}}],"responses":{"200":{"description":"Permission described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerPermissionInfo"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/customerProfiles":{"get":{"tags":["Customer profiles"],"summary":"Get customer profile list.","operationId":"getCustomerProfileList","parameters":[{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"query","in":"query","description":"Search profiles by name, number and email.","schema":{"type":"string"}},{"name":"name","in":"query","description":"Return only profiles that contain the given name.","schema":{"type":"string"}},{"name":"number","in":"query","description":"Return only profiles that contain the given number.","schema":{"type":"string"}},{"name":"groupId","in":"query","description":"Return only profiles under the specific group id. By sending 0, return only profiles which don't associate to any groups.","schema":{"type":"string"}},{"name":"excludeAddresses","in":"query","description":"Exclude address data from the response.","schema":{"type":"boolean"}},{"name":"excludeUsers","in":"query","description":"Exclude user data from the response.","schema":{"type":"boolean"}},{"name":"excludeGroups","in":"query","description":"Exclude group data from the response.","schema":{"type":"boolean"}},{"name":"excludeGroupAttributes","in":"query","description":"Exclude group's attributes from the response.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"customer profile described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerProfileResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid argument"}},"security":[{"oauth2":[]}]},"post":{"tags":["Customer profiles"],"summary":"Create customer profile.","operationId":"createCustomerProfile","requestBody":{"description":"Customer profile data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerProfileDataRequest"}}},"required":true},"responses":{"201":{"description":"Customer profile created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/customerProfiles/{id}/attributes":{"get":{"tags":["Customer profiles"],"summary":"Get customer profile attributes list.","operationId":"getCustomerProfileAttributeList","parameters":[{"name":"id","in":"path","description":"Profile Id.","required":true,"schema":{"type":"string"}},{"name":"query","in":"query","description":"Query text.","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"Customer group described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProfileAttributeResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]},"put":{"tags":["Customer profiles"],"summary":"Update profile attributes.","operationId":"updateCustomerProfileAttribute","parameters":[{"name":"id","in":"path","description":"Profile Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Profile attributes request.","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"profile attributes updated"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"post":{"tags":["Customer profiles"],"summary":"Create profile attributes.","operationId":"createCustomerProfileAttribute","parameters":[{"name":"id","in":"path","description":"Profile Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Profile attributes request.","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"Profile attributes created"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Customer profiles"],"summary":"Delete profile attributes.","operationId":"deleteCustomerProfileAttributesByNames","parameters":[{"name":"id","in":"path","description":"Profile Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiNamesRequest"}}},"required":true},"responses":{"200":{"description":"Profile attributes deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/customerProfiles/group":{"post":{"tags":["Customer profiles"],"summary":"Create group-profile relationship.","operationId":"createGroupProfile","requestBody":{"description":"Customer profile group request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerProfileGroupRequest"}}},"required":true},"responses":{"200":{"description":"group-profile relationship created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Customer profiles"],"summary":"Delete group-profile relationship.","operationId":"deleteGroupProfile","requestBody":{"description":"Customer profile group request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerProfileGroupRequest"}}},"required":true},"responses":{"200":{"description":"Group-profile relationship deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/customerProfiles/{id}/labels":{"get":{"tags":["Customer profiles"],"summary":"Get specific customer profile label.","operationId":"getLabelsByCustomerProfileId","parameters":[{"name":"id","in":"path","description":"Customer profile Id.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"sortField","in":"query","description":"Label sorting field.","schema":{"title":"sortField","type":"string","enum":["name","id"]}},{"name":"sortDirection","in":"query","description":"Label sorting direction.","schema":{"title":"sortDirection","type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"Customer profile labels described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLabelResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]},"post":{"tags":["Customer profiles"],"summary":"Link label to customer profile.","operationId":"createLabelRelationByCustomerProfileId","parameters":[{"name":"id","in":"path","description":"Customer profile Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Lable relate data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelRelationDataRequest"}}},"required":true},"responses":{"200":{"description":"Link labels to customer profile success, return added labels detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLabelResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Customer profiles"],"summary":"Unlink labels from customer profile.","operationId":"deleteLabelRelationByCustomerProfileId","parameters":[{"name":"id","in":"path","description":"Customer profile Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Label relation data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelRelationDataRequest"}}},"required":true},"responses":{"204":{"description":"Unlink labels to customer profile success"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/customerProfiles/responsible":{"post":{"tags":["Customer profiles"],"summary":"Create User Responsible profile relations.","operationId":"createResponsibleProfileRelationship","requestBody":{"description":"Responsible user profile request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsibleUserProfileRequest"}}},"required":true},"responses":{"200":{"description":"Create user responsible profile success"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"},"500":{"description":"Create user responsible profile fail"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Customer profiles"],"summary":"Delete User Responsible profile relations.","operationId":"deleteResponsibleProfileRelationship","requestBody":{"description":"Responsible user profile request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsibleUserProfileRequest"}}},"required":true},"responses":{"200":{"description":"Delete user responsible profile success"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Responsible profile not found"},"422":{"description":"Unprocessable entity"},"500":{"description":"Delete user responsible profile fail"}},"security":[{"oauth2":[]}]}},"/customerProfiles/attester":{"post":{"tags":["Customer profiles"],"summary":"Create user attester relation to profile.","operationId":"createUserAttesterProfileRelation","requestBody":{"description":"Attester user request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttesterUserRequest"}}},"required":true},"responses":{"200":{"description":"Create user attester relation success"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"},"500":{"description":"Create user attester relation fail"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Customer profiles"],"summary":"Delete user Attester profile relations.","operationId":"deleteUserAttesterProfileRelation","requestBody":{"description":"Attester user request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttesterUserRequest"}}},"required":true},"responses":{"200":{"description":"Delete user attester profile success"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Profile not found"},"422":{"description":"Unprocessable entity"},"500":{"description":"Delete user attester profile fail"}},"security":[{"oauth2":[]}]}},"/customerProfiles/user":{"post":{"tags":["Customer profiles"],"summary":"Create user-profile relationship.","operationId":"createUserProfileRelationship","requestBody":{"description":"Customer profile user request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerProfileUserRequest"}}},"required":true},"responses":{"200":{"description":"user-profile relationship created"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"},"500":{"description":"Internal server error"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Customer profiles"],"summary":"Delete user-profile relationship.","operationId":"deleteUserProfileRelationship","requestBody":{"description":"Customer profile user request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerProfileUserRequest"}}},"required":true},"responses":{"200":{"description":"User-profile relationship deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"},"500":{"description":"Internal server error"}},"security":[{"oauth2":[]}]}},"/customerProfiles/{id}":{"get":{"tags":["Customer profiles"],"summary":"Get specific customer profile.","operationId":"getCustomerProfileById","parameters":[{"name":"id","in":"path","description":"Customer profile Id.","required":true,"schema":{"type":"string"}},{"name":"excludeAddresses","in":"query","description":"Is exclude address.","schema":{"type":"boolean"}},{"name":"excludeUsers","in":"query","description":"Is exclude user.","schema":{"type":"boolean"}},{"name":"excludeGroups","in":"query","description":"Is exclude group.","schema":{"type":"boolean"}},{"name":"excludeGroupAttributes","in":"query","description":"Is exclude group attribute.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Customer profile described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]},"put":{"tags":["Customer profiles"],"summary":"Update customer profile.","operationId":"updateCustomerProfile","parameters":[{"name":"id","in":"path","description":"Customer profile Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Update customer profile request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomerProfileRequest"}}},"required":true},"responses":{"200":{"description":"Customer profile updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Customer profiles"],"summary":"Delete customer profile.","operationId":"deleteCustomerProfile","parameters":[{"name":"id","in":"path","description":"Customer profile Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Customer profile deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/customerProfiles/attester/{profileId}/{userId}":{"get":{"tags":["Customer profiles"],"summary":"Get attesters in profile by user Id.","operationId":"getAttestersInProfileByUserId","parameters":[{"name":"profileId","in":"path","description":"Profile Id.","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List attester success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAttestersInProfileResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/customerProfiles/{id}/attributes/{name}":{"get":{"tags":["Customer profiles"],"summary":"Get specific profile attribute.","operationId":"getCustomerProfileAttributeByProfileIdAndAttributeName","parameters":[{"name":"id","in":"path","description":"Profile Id.","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","description":"Attribute name.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"profile attribute described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileAttributeRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/customerProfiles/attributes/distinctValues":{"get":{"tags":["Customer profiles"],"summary":"Get distinct values of profile attribute.","operationId":"getDistinctCustomerProfileAttributeValues","parameters":[{"name":"attributeName","in":"query","description":"Attribute name.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of distinct attribute values"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Attribute not found"}},"security":[{"oauth2":[]}]}},"/customerProfiles/{id}/addresses":{"get":{"tags":["Customer profiles"],"summary":"Get profile's address list.","operationId":"getProfileAddressListByProfileId","parameters":[{"name":"id","in":"path","description":"Customer profile id.","required":true,"schema":{"type":"string"}},{"name":"includeLabels","in":"query","description":"Is include labels.","schema":{"type":"boolean"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"search","in":"query","description":"Search text.","schema":{"type":"string"}},{"name":"type","in":"query","description":"Address type.","schema":{"type":"string"}}],"responses":{"200":{"description":"Address listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProfileAddressResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/customerProfiles/{id}/groups":{"get":{"tags":["Customer profiles"],"summary":"Get profile's group list.","operationId":"getProfileGroupListByProfileId","parameters":[{"name":"id","in":"path","description":"Customer profile Id.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"Groups listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerGroupResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/customerProfiles/{id}/users":{"get":{"tags":["Customer profiles"],"summary":"Get profile's user list.","operationId":"getProfileUserListByProfileId","parameters":[{"name":"id","in":"path","description":"Customer profile Id.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"search","in":"query","description":"Search text.","schema":{"type":"string"}}],"responses":{"200":{"description":"User listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerUserResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/customerProfiles/responsible/{id}":{"get":{"tags":["Customer profiles"],"summary":"Get user responsible profile relations by profile Id.","operationId":"getResponsibleProfileRelationship","parameters":[{"name":"id","in":"path","description":"Profile Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get user responsible success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponsibleInfo"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"User responsible not found"},"500":{"description":"Get user responsible fail"}},"security":[{"oauth2":[]}]}},"/customerProfiles/attester/user/{profileId}/{attesterId}":{"get":{"tags":["Customer profiles"],"summary":"Get users that link to attester Id in profile.","operationId":"getUsersInProfileByAttesterId","parameters":[{"name":"profileId","in":"path","description":"Profile Id.","required":true,"schema":{"type":"string"}},{"name":"attesterId","in":"path","description":"Attester Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List users success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUsersInProfileFromAttesterResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/customerProfiles/list":{"post":{"tags":["Customer profiles"],"summary":"List customer profile by filter.","operationId":"listCustomerProfileByAttributeFilters","requestBody":{"description":"List of customer profile with filter request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerProfileWithFilterRequest"}}},"required":true},"responses":{"200":{"description":"List customer profile success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerProfileResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"customer profile not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/customerProfiles/responsible/list":{"get":{"tags":["Customer profiles"],"summary":"List User Responsible profile relations.","operationId":"listResponsibleProfileRelationship","parameters":[{"name":"userId","in":"query","description":"User Id.","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"List user responsible profile success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUserResponsibleProfileResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"List user responsible profile fail"}},"security":[{"oauth2":[]}]}},"/roles/{roleId}/customerGroups":{"post":{"tags":["Roles"],"summary":"Create role-customerGroup relationship.","operationId":"bindClientRoleCustomerGroup","parameters":[{"name":"roleId","in":"path","description":"Role Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Customer group request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerGroupRequest"}}},"required":true},"responses":{"200":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"409":{"description":"relation already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleRepresentation"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/roles/{roleId}/users":{"post":{"tags":["Roles"],"summary":"Create role-user relationship.","operationId":"bindClientRoleUser","parameters":[{"name":"roleId","in":"path","description":"Role Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Role user request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleUserRequest"}}},"required":true},"responses":{"200":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"409":{"description":"relation already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleRepresentation"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/roles/{roleId}/customerPermissions":{"get":{"tags":["Roles"],"summary":"Get role permissions.","operationId":"getCustomerRolePermissions","parameters":[{"name":"roleId","in":"path","description":"Role Id.","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","description":"Permission type.","schema":{"type":"string","enum":["NON_RESOURCE","PRODUCT","CATEGORY"]}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"Role Permissions described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPermissionRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Role not found"}},"security":[{"oauth2":[]}]},"post":{"tags":["Roles"],"summary":"Create role-permission relationship.","operationId":"bindCustomerPermission","parameters":[{"name":"roleId","in":"path","description":"Role Id.","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","description":"Permission type.","schema":{"type":"string","enum":["NON_RESOURCE","PRODUCT","CATEGORY"]}}],"requestBody":{"description":"Permission data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionDataRequest"}}},"required":true},"responses":{"200":{"description":"Processed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BindRolePermissionResponseList"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/roles":{"get":{"tags":["Roles"],"summary":"Get role list.","operationId":"getCustomerRoleList","parameters":[{"name":"roleName","in":"query","description":"Role name.","schema":{"type":"string","default":""}},{"name":"includeInternalRole","in":"query","description":"Is include internal role.","schema":{"type":"boolean","default":false}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"Roles described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerRole"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]},"post":{"tags":["Roles"],"summary":"Create role.","operationId":"createCustomerRole","requestBody":{"description":"Role data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleDataRequest"}}},"required":true},"responses":{"201":{"description":"Role created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerRole"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/roles/{roleId}":{"get":{"tags":["Roles"],"summary":"Get specific role.","operationId":"getCustomerRoleByRoleId","parameters":[{"name":"roleId","in":"path","description":"Role Id.","required":true,"schema":{"type":"string"}},{"name":"excludeCustomerPermissions","in":"query","description":"Is exclude customer permission.","schema":{"type":"boolean","default":false}},{"name":"excludeUsers","in":"query","description":"Is exclude user.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Customer role described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerRoleInfo"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]},"put":{"tags":["Roles"],"summary":"Update role.","operationId":"updateCustomerRole","parameters":[{"name":"roleId","in":"path","description":"Role Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Update role data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRoleDataRequest"}}},"required":true},"responses":{"200":{"description":"Role updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerRole"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Role not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Roles"],"summary":"Delete role.","operationId":"deleteCustomerRole","parameters":[{"name":"roleId","in":"path","required":true,"schema":{"type":"string","description":"Role Id."}}],"responses":{"204":{"description":"Role deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/roles/{roleId}/customerGroups/{customerGroupId}":{"delete":{"tags":["Roles"],"summary":"Remove role-customerGroup relationship.","operationId":"unbindClientRoleCustomerGroup","parameters":[{"name":"roleId","in":"path","description":"Role Id.","required":true,"schema":{"type":"string"}},{"name":"customerGroupId","in":"path","description":"Customer group Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/roles/{roleId}/users/{userId}":{"delete":{"tags":["Roles"],"summary":"Remove role-user relationship.","operationId":"unbindClientRoleUser","parameters":[{"name":"roleId","in":"path","description":"Role Id.","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Role deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/roles/{roleId}/customerPermissions/{permissionId}":{"delete":{"tags":["Roles"],"summary":"Removes a role-permission relationship.","operationId":"unbindCustomerPermission","parameters":[{"name":"roleId","in":"path","description":"Role Id.","required":true,"schema":{"type":"string"}},{"name":"permissionId","in":"path","description":"Permission Id.","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","description":"Permission type.","schema":{"type":"string","enum":["NON_RESOURCE","PRODUCT","CATEGORY"]}}],"responses":{"200":{"description":"Deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/users":{"get":{"tags":["Customer users"],"summary":"Get user list.","operationId":"getUserList","parameters":[{"name":"query","in":"query","description":"Search users by username, name, email and mobile.","schema":{"type":"string"}},{"name":"username","in":"query","description":"Return a user by username. Other user info filters will be ignored.","schema":{"type":"string"}},{"name":"name","in":"query","description":"Return only users that contain the given name.","schema":{"type":"string"}},{"name":"number","in":"query","description":"Return only users that contain the given number.","schema":{"type":"string"}},{"name":"email","in":"query","description":"Return only users that contain the given email.","schema":{"type":"string"}},{"name":"mobile","in":"query","description":"Return only users that contain the given mobile.","schema":{"type":"string"}},{"name":"roleId","in":"query","description":"Role Id.","schema":{"type":"string"}},{"name":"profileId","in":"query","description":"Return only users under the profile id.","schema":{"type":"string"}},{"name":"includePermission","in":"query","description":"Include permission in the response.","schema":{"type":"boolean","default":false}},{"name":"permissionType","in":"query","description":"Get only permissions that are the given type.","schema":{"type":"string","enum":["product","category","non-resource"]}},{"name":"userStatus","in":"query","description":"User status.","schema":{"type":"string","enum":["active","archived"]}},{"name":"sort","in":"query","description":"Sort result by the given sort field and direction in format: 'sort:direction'. Sort{firstname,lastname,email}. Direction{asc,desc}. Support multiple sort fields using comma separated (example: ?sort=email:desc,firstname:asc).","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"User described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerUserResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]},"post":{"tags":["Customer users"],"summary":"Create customer user.","operationId":"createCustomerUser","requestBody":{"description":"Create user request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}},"required":true},"responses":{"201":{"description":"Customer user created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerUserRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Duplicate user name"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/users/{id}/labels":{"get":{"tags":["Customer users"],"summary":"Get labels from specific user.","operationId":"getLabelsByUserId","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"sortField","in":"query","description":"Label sorting field.","schema":{"title":"sortField","type":"string","enum":["name","id"]}},{"name":"sortDirection","in":"query","description":"Label sorting direction.","schema":{"title":"sortDirection","type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"User labels described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLabelResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]},"post":{"tags":["Customer users"],"summary":"Link label to user.","operationId":"createLabelRelationByUserId","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Create lable relation data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLabelRelationDataRequest"}}},"required":true},"responses":{"200":{"description":"Link labels to user success, return added labels detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLabelResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Customer users"],"summary":"Unlink labels from user.","operationId":"deleteLabelRelationByUserId","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Label relation data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelRelationDataRequest"}}}},"responses":{"200":{"description":"Unlink labels from success"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/users/{id}":{"get":{"tags":["Customer users"],"summary":"Get specific customer user.","operationId":"getUserByUserId","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}},{"name":"includePermission","in":"query","description":"Is include permission.","schema":{"type":"boolean","default":false}},{"name":"permissionType","in":"query","description":"Get only permissions that are the given type.","schema":{"type":"string","enum":["product","category","non-resource"]}}],"responses":{"200":{"description":"customer user described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerUserRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]},"put":{"tags":["Customer users"],"summary":"Update customer user.","operationId":"updateCustomerUser","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"User data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDataRequest"}}},"required":true},"responses":{"200":{"description":"Customer user updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerUserRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Customer users"],"summary":"Delete customer user.","operationId":"deleteCustomerUser","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Customer user deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/users/{id}/attributes":{"get":{"tags":["Customer users"],"summary":"Get user's attributes.","operationId":"getUserAttributes","parameters":[{"name":"sort","in":"query","description":"Flag to use sorting by attribute key","schema":{"type":"boolean","default":false}},{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User's attributes described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUserAttributeResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]},"put":{"tags":["Customer users"],"summary":"Update user attributes.","operationId":"updateUserAttribute","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"User attribute request.","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"Attributes updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUserAttributeResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Customer users"],"summary":"Delete customer user attributes.","operationId":"deleteUserAttributesByNames","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiNamesRequest"}}},"required":true},"responses":{"200":{"description":"Customer user attribute deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/users/forgetPassword":{"post":{"tags":["Customer users"],"summary":"Forget password.","operationId":"forgetPassword","parameters":[{"name":"tuid","in":"header","description":"Tuid.","schema":{"type":"string"}}],"requestBody":{"description":"Forget password request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Send forget password"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/users/{id}/addresses":{"get":{"tags":["Customer users"],"summary":"Get user's address.","operationId":"getUserAddressesByUserId","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"search","in":"query","description":"Search text.","schema":{"type":"string"}},{"name":"type","in":"query","description":"Type.","schema":{"type":"string"}}],"responses":{"200":{"description":"User's address described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAddressResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/users/search":{"post":{"tags":["Customer users"],"summary":"Search users by permission","operationId":"getUserByPermissionList","parameters":[{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"requestBody":{"description":"Search by permission request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchByPermissionRequest"}}},"required":true},"responses":{"200":{"description":"List user success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerUserWithPermissionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/users/{id}/permissions":{"get":{"tags":["Customer users"],"summary":"Get user permissions.","operationId":"getUserPermissions","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","description":"Permission type.","schema":{"type":"string","enum":["NON_RESOURCE","PRODUCT","CATEGORY"]}},{"name":"page","in":"query","description":"Page number.","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","description":"Number of item per page.","schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"Get user permissions success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomPermissionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/users/{id}/profiles":{"get":{"tags":["Customer users"],"summary":"Get user's profile.","operationId":"getUserProfilesByUserId","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}},{"name":"excludeUsers","in":"query","description":"Is exclude user.","schema":{"type":"boolean"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"search","in":"query","description":"Search text.","schema":{"type":"string"}}],"responses":{"200":{"description":"User's profile described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProfileResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/users/{id}/roles":{"get":{"tags":["Customer users"],"summary":"Get user's roles.","operationId":"getUserRoles","parameters":[{"name":"sort","in":"query","description":"Flag to use sorting by role name","schema":{"type":"boolean","default":false}},{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"User's roles described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerRole"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/users/required-actions":{"get":{"tags":["Customer users"],"summary":"List all required action for user.","operationId":"listRequiredActions","responses":{"200":{"description":"Required-action list","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RequireActionOption"}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/users/list/by-ids":{"post":{"tags":["Customer users"],"summary":"Get customer users by ids.","operationId":"listUserByUserIds","requestBody":{"description":"List by user Id request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListByUserIdsRequest"}}},"required":true},"responses":{"200":{"description":"Customer users described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCustomerUserByIdsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/users/logout":{"delete":{"tags":["Customer users"],"summary":"Logout from Keycloak.","operationId":"logout","requestBody":{"description":"Logout request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutRequest"}}},"required":true},"responses":{"200":{"description":"Logged out"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"},"500":{"description":"Internal server error"}},"security":[{"oauth2":[]}]}},"/users/{id}/update":{"post":{"tags":["Customer users"],"summary":"Secure update customer user.","operationId":"secureUpdateUser","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Secure user data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecureUserDataRequest"}}},"required":true},"responses":{"200":{"description":"customer user updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerUserRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Invalid current password"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/users/{id}/sendMail":{"post":{"tags":["Customer users"],"summary":"Send welcome email.","operationId":"sendWelcomeEmail","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Send mail request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMailRequest"}}}},"responses":{"200":{"description":"Mail sent"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/users/validateActionToken":{"get":{"tags":["Customer users"],"summary":"Validate login action token.","operationId":"validateActionToken","parameters":[{"name":"actionToken","in":"query","schema":{"title":"Action token.","type":"string"}}],"responses":{"200":{"description":"Validated"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/users/profiles/validate":{"post":{"tags":["Customer users"],"summary":"Validate user and profile by id.","operationId":"validateUserProfile","requestBody":{"description":"Validate user profile relation request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateUserProfileRelationRequest"}}},"required":true},"responses":{"200":{"description":"User is in this profile"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"User is not in this profile"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/sso/identity/profile/{profileId}":{"get":{"tags":["Identity"],"summary":"List of identity provider profile by profileId.","operationId":"getIdentityByProfileId","parameters":[{"name":"profileId","in":"path","description":"Profile Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"List identity provider profile success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityProviderProfileLink"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"500":{"description":"List identity provider profile error"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Identity"],"summary":"Delete identity profile by profile Id.","operationId":"deleteIdentityByProfileId","parameters":[{"name":"profileId","in":"path","description":"Profile Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Delete uidentity profile success"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Identity profile not found"},"500":{"description":"Delete identity profile fail"}},"security":[{"oauth2":[]}]}},"/sso/identity/all":{"get":{"tags":["Identity"],"summary":"List of identity provider.","operationId":"getAllIdentityProvider","responses":{"200":{"description":"List of identity provider success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListIdentityProvider"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"List of identity provider error"}},"security":[{"oauth2":[]}]}},"/sso/identity":{"get":{"tags":["Identity"],"summary":"List of identity provider profile relations.","operationId":"listIdentityProfileLink","parameters":[{"name":"enabled","in":"query","description":"Is enabled.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"List of identity provider success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListIdentityProviderWithProfileRelation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"List of identity provider fail"}},"security":[{"oauth2":[]}]},"put":{"tags":["Identity"],"summary":"Update identity provider profile relations.","operationId":"updateIdentityProfile","requestBody":{"description":"Identity request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityRequest"}}},"required":true},"responses":{"200":{"description":"Update identity provider profile relations success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityProviderProfileLink"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found identity provider profile relations"},"422":{"description":"Unprocessable entity"},"500":{"description":"Update identity provider profile relations fail"}},"security":[{"oauth2":[]}]},"post":{"tags":["Identity"],"summary":"Create identity provider profile relations.","operationId":"linkIdentityProfile","requestBody":{"description":"Identify request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityRequest"}}},"required":true},"responses":{"200":{"description":"Link identity provider with profile success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityProviderProfileLink"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Identity provider or profile not found"},"422":{"description":"Unprocessable entity"},"500":{"description":"link identity provider with profile fail"}},"security":[{"oauth2":[]}]}},"/impersonations/user/{id}/tokenExchange":{"get":{"tags":["Impersonation"],"summary":"Impersonate user get token exchange.","operationId":"getExchangeImpersonateUser","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}},{"name":"eventType","in":"query","schema":{"type":"string","enum":["IMPERSONATION","LOGIN"]}}],"responses":{"200":{"description":"Get token success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImpersonateToken"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"User not found"},"500":{"description":"Can not token exchange user"}},"security":[{"oauth2":[]}]}},"/impersonations/tokens/{id}":{"get":{"tags":["Impersonation"],"summary":"Get Impersonate token by Id.","operationId":"getTokenByImpersonateId","parameters":[{"name":"id","in":"path","description":"Impersonate Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Impersonate token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImpersonateToken"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Impersonate not found"},"500":{"description":"Internal error"}},"security":[{"oauth2":[]}]}},"/impersonations/user/{id}":{"get":{"tags":["Impersonation"],"summary":"Impersonate user.","operationId":"impersonateUser","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Attested user success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImpersonateResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden"},"500":{"description":"Can not attested user"}},"security":[{"oauth2":[]}]}},"/impersonations/user":{"get":{"tags":["Impersonation"],"summary":"List Impersonation","operationId":"listImpersonations","parameters":[{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"List impersonations success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListImpersonationResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Can not list impersonations"}},"security":[{"oauth2":[]}]}},"/labels/inProfile/{profileId}":{"post":{"tags":["Labels"],"summary":"Create label in specific profile.","operationId":"createLabelInProfile","parameters":[{"name":"profileId","in":"path","description":"Profile Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Lable of data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelDataRequest"}}},"required":true},"responses":{"201":{"description":"Label created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/labels/{id}":{"get":{"tags":["Labels"],"summary":"Get specific labels.","operationId":"getLabelById","parameters":[{"name":"id","in":"path","description":"Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Specific labels described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"put":{"tags":["Labels"],"summary":"Update specific label.","operationId":"updateLabel","parameters":[{"name":"id","in":"path","description":"Label Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Label of data request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelDataRequest"}}},"required":true},"responses":{"200":{"description":"Label updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Label not found"},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Labels"],"summary":"Delete label.","operationId":"deleteLabel","parameters":[{"name":"id","in":"path","description":"Label Id.","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Label deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/labels":{"get":{"tags":["Labels"],"summary":"Get label list.","operationId":"getLabelsList","parameters":[{"name":"labelName","in":"query","description":"Label name.","schema":{"type":"string","default":""}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"Label defined","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLabelResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/labels/searchDependsProfile":{"post":{"tags":["Labels"],"summary":"Get label list of profile which link to specific user or address.","operationId":"getLabelsListDependsProfileByRefId","parameters":[{"name":"labelName","in":"query","description":"Label name.","schema":{"type":"string","default":""}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"requestBody":{"description":"List of label depends profile request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLabelsDependsProfileRequest"}}},"required":true},"responses":{"200":{"description":"Label defined","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLabelResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/labels/inProfile":{"get":{"tags":["Labels"],"summary":"Get label list which link to the profile.","operationId":"getLabelsListInProfile","parameters":[{"name":"labelName","in":"query","description":"Lable name.","schema":{"type":"string","default":""}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"Label defined","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLabelResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/users/{id}/reset-password":{"put":{"tags":["Customer users"],"summary":"Reset user password.","operationId":"resetPassword","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Reset password request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Reset password successfully"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Old and new password can not blank"},"500":{"description":"Internal server error"}},"security":[{"oauth2":[]}]}},"/users/{id}/send-password-reset-email":{"put":{"tags":["Customer users"],"summary":"Send password reset email.","operationId":"sendResetPasswordEmail","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Email send successfully"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"500":{"description":"Internal Server Error"}},"security":[{"oauth2":[]}]}},"/users/{id}/update-password":{"put":{"tags":["Customer users"],"summary":"Update user password.","operationId":"updatePassword","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Update password request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Update password successfully"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"},"422":{"description":"Unprocessable entity"},"500":{"description":"Cannot update password"}},"security":[{"oauth2":[]}]}},"/sso/setup/automate":{"post":{"tags":["SSO"],"summary":"Async call to automatic sso setup.","operationId":"automateSSOSetup","requestBody":{"description":"Create identity provider request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIdentityProviderRequest"}}},"required":true},"responses":{"200":{"description":"Set up id is already created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupResponse"}}}},"201":{"description":"Set up id is created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"SSO and profile relation exists"},"422":{"description":"Invalid argument"}},"security":[{"oauth2":[]}]}},"/sso/setup/{id}":{"get":{"tags":["SSO"],"summary":"Get setup detail.","operationId":"getSetup","parameters":[{"name":"id","in":"path","description":"Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Setup found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Setup not found"}},"security":[{"oauth2":[]}]}},"/settings":{"get":{"tags":["Realm Settings"],"summary":"Get settings.","operationId":"getRealmSetting","responses":{"200":{"description":"Settings described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RealmSettings"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden"}},"security":[{"oauth2":[]}]},"put":{"tags":["Realm Settings"],"summary":"Update realm settings.","operationId":"updateRealmSetting","requestBody":{"description":"Realm setting.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RealmSettings"}}},"required":true},"responses":{"200":{"description":"Realm settings updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RealmSettings"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden"}},"security":[{"oauth2":[]}]}},"/simple/groups/{id}":{"get":{"tags":["Simple"],"summary":"Get specific customer group (simple response).","operationId":"getSimpleCustomerGroupById","parameters":[{"name":"id","in":"path","description":"Customer group Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Customer group described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleGroupRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/simple/groups/list":{"get":{"tags":["Simple"],"summary":"Get simple customer group list.","operationId":"getSimpleCustomerGroupList","parameters":[{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"query","in":"query","description":"Return only groups that contain the given name.","schema":{"type":"string"}},{"name":"number","in":"query","description":"Return only groups that contain the given number.","schema":{"type":"string"}},{"name":"profileId","in":"query","description":"Return only groups that linked to the profile id.","schema":{"type":"string"}},{"name":"sortField","in":"query","description":"Sort customer group field.","schema":{"type":"string","enum":["name","number"]}},{"name":"sortDirection","in":"query","description":"Sort customer group direction.","schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":"Customer group described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSimpleCustomerGroupResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/simple/groups/list/by-ids":{"post":{"tags":["Simple"],"summary":"Get simple customer group list by Id.","operationId":"getSimpleCustomerGroupsByIds","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiIdsRequest"}}},"required":true},"responses":{"200":{"description":"Customer groups described","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SimpleGroupRepresentation"}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/simple/profiles/{id}":{"get":{"tags":["Simple"],"summary":"Get specific customer profile (simple response).","operationId":"getSimpleCustomerProfileById","parameters":[{"name":"id","in":"path","description":"Customer profile Id.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Customer profile described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleProfileRepresentation"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}},"/simple/profiles/list/by-ids":{"post":{"tags":["Simple"],"summary":"Get simple customer profile list by id.","operationId":"getSimpleCustomerProfilesByIds","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiIdsRequest"}}},"required":true},"responses":{"200":{"description":"Customer profiles described","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SimpleProfileRepresentation"}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity"}},"security":[{"oauth2":[]}]}},"/simple/users/{id}":{"get":{"tags":["Simple"],"summary":"Get customer user by Id.","operationId":"getSimpleCustomerUserById","parameters":[{"name":"id","in":"path","description":"User Id.","required":true,"schema":{"type":"string"}},{"name":"includePermission","in":"query","description":"Is include premission.","schema":{"type":"boolean","default":false}},{"name":"permissionType","in":"query","description":"Get only permissions that are the given type","schema":{"type":"string","enum":["product","category","non-resource"]}}],"responses":{"200":{"description":"customer user described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleCustomerUserWithPermissions"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]}}},"components":{"schemas":{"ErrorResponse":{"type":"object","properties":{"status":{"title":"Error status code.","type":"integer","format":"int32"},"error":{"title":"General error description.","type":"string"},"errorDetails":{"title":"List of errors details.","type":"array","items":{"$ref":"#/components/schemas/ErrorDetails"}},"requestId":{"title":"Request ID used for logging.","type":"string"},"timestamp":{"title":"Error timestamp.","type":"integer","format":"int64"},"quotaLimitExceededDetails":{"title":"Additional entity id list related to error","type":"array","items":{"$ref":"#/components/schemas/QuotaLimitExceededDetails"}}}},"ErrorDetails":{"type":"object","properties":{"message":{"title":"Error message.","type":"string"},"field":{"title":"Error related field.","type":"string"},"rejectedValue":{"title":"Invalid value causing error.","type":"string"}}},"QuotaLimitExceededDetails":{"type":"object","properties":{"quota":{"title":"Quota name.","type":"string"},"message":{"title":"Quota limit message.","type":"string"},"limit":{"title":"Quota limit.","type":"integer","format":"int32"},"entityId":{"title":"Id of the entity that caused the quota limit to be exceeded.","type":"string","nullable":true},"entityType":{"title":"Type of the entity that caused the quota limit to be exceeded.","type":"string","nullable":true}}},"ProfileAddressRequest":{"type":"object","properties":{"addressId":{"title":"Address Id.","type":"string"},"profileId":{"title":"Profile Id.","type":"string"}}},"UserAddressRequest":{"type":"object","properties":{"addressId":{"title":"Address Id.","type":"string"},"userId":{"title":"User Id.","type":"string"}}},"AddressRepresentation":{"title":"Address representation.","type":"object","properties":{"active":{"title":"Is active.","type":"boolean"},"attention":{"title":"Attention.","type":"string"},"city":{"title":"City.","type":"string"},"country":{"title":"Country.","type":"string"},"email":{"title":"E-mail.","pattern":"^$|(?:[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])","type":"string"},"addressName":{"title":"Address name.","type":"string"},"houseExtension":{"title":"House extension.","type":"string"},"phone":{"title":"Phone number.","type":"string"},"postalCode":{"title":"Postal code.","type":"string"},"reference":{"title":"Reference.","type":"string"},"region":{"title":"Region.","type":"string"},"streetAddress":{"title":"Street address 1.","type":"string"},"streetAddress2":{"title":"Street address 2.","type":"string"},"streetNumber":{"title":"Street number.","type":"string"},"title":{"title":"Title.","type":"string"},"type":{"title":"Type.","type":"string","enum":["VISITATION","BILLING","SHIPPING"]},"id":{"title":"Id.","type":"string"},"labels":{"title":"List of label.","type":"array","items":{"type":"string"}}}},"UpdateAddressRequest":{"type":"object","properties":{"active":{"title":"Is active.","type":"boolean"},"attention":{"title":"Attention.","type":"string"},"city":{"title":"City.","type":"string"},"country":{"title":"Country.","type":"string"},"email":{"title":"E-mail.","pattern":"^$|(?:[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])","type":"string"},"addressName":{"title":"Address name.","type":"string"},"houseExtension":{"title":"House extension.","type":"string"},"phone":{"title":"Phone number.","type":"string"},"postalCode":{"title":"Postal code.","type":"string"},"reference":{"title":"Reference.","type":"string"},"region":{"title":"Region.","type":"string"},"streetAddress":{"title":"Street address 1.","type":"string"},"streetAddress2":{"title":"Street address 2.","type":"string"},"streetNumber":{"title":"Street number.","type":"string"},"title":{"title":"Title.","type":"string"},"type":{"title":"Type.","type":"string","enum":["VISITATION","BILLING","SHIPPING"]}}},"LabelResponse":{"type":"object","properties":{"id":{"title":"Id.","type":"string"},"name":{"title":"Name.","type":"string"}}},"ListLabelResponse":{"type":"object","properties":{"data":{"title":"List of label.","type":"array","items":{"$ref":"#/components/schemas/LabelResponse"}},"total":{"title":"Total.","type":"integer","format":"int64"}}},"LabelRelationDataRequest":{"type":"object","properties":{"labels":{"title":"List of label.","type":"array","items":{"type":"string"}}}},"ListAddressResponse":{"type":"object","properties":{"data":{"title":"List of address representation.","type":"array","items":{"$ref":"#/components/schemas/AddressRepresentation"}},"total":{"title":"Total.","type":"integer","format":"int64"}}},"Sort":{"type":"object","properties":{"sorts":{"type":"array","items":{"$ref":"#/components/schemas/SortType"}}}},"SortType":{"type":"object","properties":{"field":{"type":"string"},"direction":{"type":"string","enum":["ASCENDING","DESCENDING","META"]}}},"CategoryBasicResponse":{"title":"Category response.","type":"object","properties":{"assets":{"type":"array","description":"List of catalog or category's asset IDs.   **Example:**  ```    \"assets\": [      \"ff5975d7-c629-4a4c-8e11-ec3df61ec9ce\"   ] ```","items":{"type":"string","description":"List of catalog or category's asset IDs.   **Example:**  ```    \"assets\": [      \"ff5975d7-c629-4a4c-8e11-ec3df61ec9ce\"   ] ```"}},"description":{"type":"string","description":"Catalog or category's description."},"id":{"type":"string","description":"Catalog or category's ID. This value is randomly generated by PIM on creation of the catalog or category and is unique across all catalogs and categories.  **Example:** `634c26e14cedfd0001775e9f`"},"name":{"type":"string","description":"Catalog or category's name."},"number":{"type":"string","description":"Catalog or category's number."},"parentId":{"type":"string","description":"Category's parent ID.  **Example:** `634c26e14cedfd0001775e9a`"},"readOnly":{"type":"boolean","description":"The flag indicates whether the catalog or category is read-only for the currently logged in user in Bluestone PIM web application based on what policies are applied for the user.  **Note**: This flag is only relevant on calls to the endpoint performed from the the Bluestone PIM web application and not for calls done to the Management API (MAPI). The endpoint will always return `readOnly: false` when calling the endpoint via the Management API (MAPI)"}}},"CustomerUserRepresentation":{"type":"object","properties":{"id":{"title":"Id.","type":"string"},"username":{"title":"Username.","type":"string"},"firstName":{"title":"First name.","type":"string"},"lastName":{"title":"Lastname.","type":"string"},"email":{"title":"E-mail.","type":"string"},"emailVerified":{"title":"Is verified e-mail.","type":"boolean"},"status":{"title":"Status.","type":"string"},"attributes":{"type":"object","additionalProperties":{"type":"object"}},"permissions":{"title":"List of permission representation.","type":"array","items":{"$ref":"#/components/schemas/PermissionRepresentation"}},"modifiedBy":{"title":"Modified by.","type":"string"},"modifiedAt":{"title":"Modified at.","type":"string"},"createdBy":{"title":"Created by.","type":"string"},"createdAt":{"title":"Created at.","type":"string"},"requiredActions":{"title":"List of required action.","type":"array","items":{"type":"string"}}}},"GroupRepresentation":{"title":"Group representation.","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"attributes":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"realmRoles":{"type":"array","items":{"type":"string"}},"clientRoles":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"subGroups":{"type":"array","items":{"$ref":"#/components/schemas/GroupRepresentation"}},"access":{"type":"object","additionalProperties":{"type":"boolean"}}}},"ListProfileResponse":{"type":"object","properties":{"data":{"title":"List of profile representation.","type":"array","items":{"$ref":"#/components/schemas/ProfileRepresentation"}},"total":{"title":"Total.","type":"integer","format":"int64"}}},"PermissionRepresentation":{"title":"Permission representation.","type":"object","properties":{"id":{"title":"Id.","type":"string"},"name":{"title":"Name.","type":"string"},"description":{"title":"Description.","type":"string"},"localDescription":{"title":"Local description.","type":"string"},"permissionName":{"title":"Permission name.","type":"string"},"permissionNumber":{"title":"Permission number.","type":"string"},"resource":{"title":"Resource.","type":"string"},"logic":{"title":"Logic.","type":"string"},"scopes":{"title":"Scope.","uniqueItems":true,"type":"array","items":{"title":"Scope.","type":"string"}},"path":{"title":"List of category response.","type":"array","items":{"$ref":"#/components/schemas/CategoryBasicResponse"}}}},"ProfileRepresentation":{"title":"Profile representation","type":"object","properties":{"id":{"title":"Id.","type":"string"},"name":{"title":"Name.","type":"string"},"number":{"title":"Number.","type":"string"},"email":{"title":"E-mail.","type":"string"},"phone":{"title":"Phone number.","type":"string"},"groups":{"title":"List of group representation.","uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/GroupRepresentation"}},"users":{"title":"List of customer user representation.","uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/CustomerUserRepresentation"}},"attributes":{"type":"object","additionalProperties":{"type":"string"}},"addresses":{"title":"List of address representation.","type":"array","items":{"$ref":"#/components/schemas/AddressRepresentation"}},"userResponsible":{"$ref":"#/components/schemas/CustomerUserRepresentation"}}},"ListCustomerUserResponse":{"type":"object","properties":{"data":{"title":"List of customer user representation.","type":"array","items":{"$ref":"#/components/schemas/CustomerUserRepresentation"}},"total":{"title":"Total.","type":"integer","format":"int64"}}},"AddressLabelsResponse":{"title":"Address label.","type":"object","properties":{"id":{"title":"Id.","type":"string"},"labelIds":{"title":"List of Id.","type":"array","items":{"title":"List of Id.","type":"string"}}}},"MapLabelResponse":{"type":"object","properties":{"data":{"title":"List of address label.","type":"array","items":{"$ref":"#/components/schemas/AddressLabelsResponse"}}}},"ListByIdsRequest":{"required":["ids"],"type":"object","properties":{"ids":{"title":"List of Id.","type":"array","items":{"type":"string"}}}},"ValidateProfileUserAddressResponse":{"type":"object","properties":{"addressIds":{"title":"List of address Id.","type":"array","items":{"type":"string"}}}},"ValidateUserProfileAddressRequest":{"type":"object","properties":{"userId":{"title":"User Id.","type":"string"},"profileId":{"title":"Profile Id.","type":"string"},"addressIds":{"title":"List of address Id.","type":"array","items":{"type":"string"}}}},"ClientSettings":{"type":"object","properties":{"implicitFlowEnabled":{"title":"Is implicit flow enabled.","type":"boolean"},"redirectUrl":{"title":"List of redirect url.","type":"array","items":{"type":"string"}},"webOrigins":{"title":"List of web origin.","type":"array","items":{"type":"string"}}}},"AttributesConfig":{"title":"Attribute config.","type":"object","properties":{"siteUrl":{"title":"Site url.","type":"string"},"kcIframeUrl":{"title":"KC iframe url.","type":"string"},"emailRedirectUrl":{"title":"Email redirect url.","type":"string"},"emailOriginUrl":{"title":"Email origin url.","type":"string"},"shopName":{"title":"Shop name.","type":"string"},"contactEmail":{"title":"Contact e-mail.","type":"string"},"telephone":{"title":"Telephone number.","type":"string"},"webShopEmail":{"title":"Webshop e-mail.","type":"string"},"siteLogo":{"title":"Site logo.","type":"string"},"verifiedFromEmail":{"title":"Is verified e-mail.","type":"boolean"}}},"LoginConfig":{"title":"Login config.","type":"object","properties":{"rememberMe":{"title":"Is remember me.","type":"boolean"},"registrationAllowed":{"type":"boolean"},"editUserNameAllowed":{"type":"boolean"}}},"PasswordPolicyConfig":{"required":["minimumLength","passwordHistory"],"type":"object","properties":{"minimumLength":{"minimum":8,"type":"integer","format":"int32"},"passwordHistory":{"minimum":1,"type":"integer","format":"int32"},"notUsername":{"type":"boolean"},"passwordBlacklist":{"type":"boolean"},"upperCase":{"minimum":1,"type":"integer","format":"int32"},"lowerCase":{"minimum":1,"type":"integer","format":"int32"},"specialChars":{"minimum":1,"type":"integer","format":"int32"},"digits":{"minimum":1,"type":"integer","format":"int32"}}},"RealmSettings":{"required":["attributes","login","security","smtpServer"],"type":"object","properties":{"login":{"$ref":"#/components/schemas/LoginConfig"},"smtpServer":{"$ref":"#/components/schemas/SmtpConfig"},"security":{"$ref":"#/components/schemas/SecurityConfig"},"attributes":{"$ref":"#/components/schemas/AttributesConfig"}}},"SecurityConfig":{"title":"Security config.","type":"object","properties":{"passwordPolicy":{"$ref":"#/components/schemas/PasswordPolicyConfig"},"bruteForceProtected":{"type":"boolean"}}},"SmtpConfig":{"title":"Smtp server.","type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","format":"int32"},"from":{"pattern":"^$|(?:[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])","type":"string"},"verifiedFromEmail":{"type":"boolean"},"auth":{"type":"boolean"},"user":{"type":"string"},"password":{"type":"string"}}},"FieldsResponse":{"title":"Field.","type":"object","properties":{"name":{"title":"Name.","type":"string"},"title":{"title":"Title.","type":"string"},"values":{"title":"List of field.","type":"array","items":{"title":"List of field.","type":"string"}},"scope":{"title":"Scope.","type":"string"},"helpText":{"title":"Help text.","type":"string"},"type":{"title":"Type.","type":"string"},"defaultValue":{"title":"Default value.","type":"string"},"positive":{"title":"Is positive.","type":"boolean"},"required":{"title":"Is required.","type":"boolean"},"readonly":{"title":"Is read-only.","type":"boolean"},"hidden":{"title":"Is hidden.","type":"boolean"},"showTitle":{"title":"Is show title.","type":"boolean"},"selectValues":{"title":"List of select field configuration.","type":"array","items":{"$ref":"#/components/schemas/SelectFieldsConfiguration"}}}},"GetDefaultConfigurationResponse":{"type":"object","properties":{"fields":{"title":"List of field.","type":"array","items":{"$ref":"#/components/schemas/FieldsResponse"}},"oneGroupPerProfile":{"title":"Is one group per profile.","type":"boolean"},"bacp":{"type":"boolean"}}},"SelectFieldsConfiguration":{"title":"Select field configuration.","type":"object","properties":{"key":{"title":"Key.","type":"string"},"value":{"title":"Value.","type":"string"}}},"CustomerAttribute":{"title":"Customer attribute.","type":"object","properties":{"type":{"title":"Type.","type":"string"},"attributeKey":{"title":"Attribute key.","type":"string"},"attributeName":{"title":"Attribute name.","type":"string"},"description":{"title":"Description.","type":"string"}}},"ListCustomerAttributeResponse":{"type":"object","properties":{"data":{"title":"List of customer attribute.","type":"array","items":{"$ref":"#/components/schemas/CustomerAttribute"}},"total":{"title":"Total.","type":"integer","format":"int64"}}},"CustomerAttributeResponse":{"type":"object","properties":{"data":{"title":"Data of customer attribute.","type":"object","additionalProperties":{"title":"Data of customer attribute.","type":"string"}}}},"GetCustomerAttributeRequest":{"required":["customerGroupId","customerProfileId","mappingPaths","userId"],"type":"object","properties":{"customerGroupId":{"title":"Customer group Id.","type":"string"},"customerProfileId":{"title":"Customer profile Id.","type":"string"},"userId":{"title":"User Id.","type":"string"},"mappingPaths":{"title":"List of mapping path.","type":"array","items":{"type":"string"}}}},"CustomerGroupInfo":{"title":"Customer group info.","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"attributes":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"realmRoles":{"type":"array","items":{"type":"string"}},"clientRoles":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"subGroups":{"type":"array","items":{"$ref":"#/components/schemas/GroupRepresentation"}},"access":{"type":"object","additionalProperties":{"type":"boolean"}},"defaultGroup":{"title":"Is default group.","type":"boolean"},"profiles":{"title":"List of profile group.","type":"array","items":{"$ref":"#/components/schemas/ProfileGroupResponse"}}}},"ProfileGroupResponse":{"title":"Profile group response.","type":"object","properties":{"id":{"title":"Id.","type":"string"},"name":{"title":"Name.","type":"string"}}},"GroupDataRequest":{"required":["name"],"type":"object","properties":{"name":{"title":"Name.","type":"string"},"defaultGroup":{"title":"Is default group.","type":"boolean","example":false},"attributes":{"title":"Attribute mapping","type":"object","additionalProperties":{"title":"Attribute mapping","type":"string"}}}},"ProfileAttributeRepresentation":{"title":"Profile attribute representation.","type":"object","properties":{"key":{"title":"Key.","type":"string"},"value":{"title":"Value.","type":"string"}}},"BindRolePermissionResponse":{"type":"object","properties":{"permissionId":{"title":"Permission Id.","type":"string"},"code":{"title":"Code.","type":"integer","format":"int32"},"message":{"title":"Message.","type":"string"}}},"BindRolePermissionResponseList":{"type":"object","properties":{"data":{"title":"List of bind role permission response.","type":"array","items":{"$ref":"#/components/schemas/BindRolePermissionResponse"}}}},"CustomerGroupPermissionRequest":{"type":"object","properties":{"permissionType":{"title":"Permission type.","type":"string","enum":["NON_RESOURCE","PRODUCT","CATEGORY"]},"refId":{"title":"Ref Id.","type":"string"}}},"MultiNamesRequest":{"required":["names"],"type":"object","properties":{"names":{"title":"Set of name.","type":"array","items":{"type":"string"}}}},"ListCustomerGroupResponse":{"type":"object","properties":{"data":{"title":"List of customer group info.","type":"array","items":{"$ref":"#/components/schemas/CustomerGroupInfo"}},"total":{"title":"Total.","type":"integer","format":"int64"}}},"ListPermissionRepresentation":{"type":"object","properties":{"data":{"title":"List of permission representation.","type":"array","items":{"$ref":"#/components/schemas/PermissionRepresentation"}},"total":{"title":"Total.","type":"integer","format":"int64"}}},"CustomerRole":{"title":"Customer role.","type":"object","properties":{"id":{"title":"Id.","type":"string"},"name":{"title":"Name.","type":"string"},"description":{"title":"Description.","type":"string"}}},"ListCustomerRole":{"type":"object","properties":{"data":{"title":"ist of customer role.","type":"array","items":{"$ref":"#/components/schemas/CustomerRole"}},"total":{"title":"Total.","type":"integer","format":"int64"}}},"CustomerGroupRole":{"type":"object","properties":{"internalRoleId":{"title":"Internal role Id.","type":"string"}}},"MigrateCustomerGroupRoleRequest":{"required":["realmIds"],"type":"object","properties":{"realmIds":{"title":"List of realm Id.","type":"array","items":{"title":"List of realm Id.","type":"string"}}}},"CustomerPermissionInfo":{"title":"Customer permission info.","type":"object","properties":{"id":{"title":"Id.","type":"string"},"name":{"title":"Name.","type":"string"},"description":{"title":"Description.","type":"string"},"localDescription":{"title":"Local description.","type":"string"},"resource":{"title":"Resource.","type":"string"},"logic":{"title":"Logic.","type":"string"},"scopes":{"title":"List of scopes.","uniqueItems":true,"type":"array","items":{"title":"List of scopes.","type":"string"}},"roles":{"title":"List of customer role.","uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/CustomerRole"}}}},"ListCustomerPermissionInfo":{"type":"object","properties":{"data":{"title":"List of customer permission info.","type":"array","items":{"$ref":"#/components/schemas/CustomerPermissionInfo"}},"total":{"title":"Total.","type":"integer","format":"int64"}}},"PatchCustomerPermission":{"required":["localDescription"],"type":"object","properties":{"localDescription":{"type":"string"}}},"CustomerProfileDataRequest":{"title":"Customer profile data request.","required":["name"],"type":"object","properties":{"name":{"type":"string","description":"Name."},"email":{"title":"E-mail","pattern":"^$|(?:[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])","type":"string"},"phone":{"title":"Phone number.","type":"string"},"number":{"title":"Profile number.","type":"string"},"attributes":{"type":"object","additionalProperties":{"type":"string"}}}},"CustomerProfileGroupRequest":{"required":["groupId","profileId"],"type":"object","properties":{"profileId":{"type":"string","description":"Profile Id."},"groupId":{"type":"string","description":"Group Id."}}},"ResponsibleUserProfileRequest":{"required":["profileId","userId"],"type":"object","properties":{"profileId":{"title":"Profile Id.","type":"string"},"userId":{"title":"User Id","type":"string"}}},"AttesterUserRequest":{"type":"object","properties":{"userId":{"title":"User Id.","type":"string"},"attesterId":{"title":"Attester Id.","type":"string"},"profileId":{"title":"Profile Id.","type":"string"}}},"CustomerProfileUserRequest":{"required":["profileId","userId"],"type":"object","properties":{"profileId":{"type":"string","description":"Profile Id."},"userId":{"type":"string","description":"User Id."},"skipVerifyUser":{"type":"boolean","description":"Is skip verify user."}}},"ListAttestersInProfileResponse":{"type":"object","properties":{"data":{"title":"List of user profile representation.","type":"array","items":{"$ref":"#/components/schemas/UserProfileRepresentation"}},"total":{"title":"Number of total.","type":"integer","format":"int64"},"totalProfile":{"title":"Number of total profile.","type":"integer","format":"int64"}}},"UserProfileRepresentation":{"title":"User profile representation","type":"object","properties":{"userId":{"title":"User Id.","type":"string"},"username":{"title":"Username.","type":"string"},"firstName":{"title":"Firstname.","type":"string"},"lastName":{"title":"Lastname.","type":"string"},"email":{"title":"E-mail.","type":"string"},"profileId":{"title":"Profile Id.","type":"string"},"profileName":{"title":"Profile name.","type":"string"},"phoneNumber":{"title":"Phone number.","type":"string"},"userStatus":{"title":"User status.","type":"string"}}},"ListProfileAttributeResponse":{"type":"object","properties":{"data":{"title":"List of profile attribute representation.","type":"array","items":{"$ref":"#/components/schemas/ProfileAttributeRepresentation"}},"total":{"title":"Total.","type":"integer","format":"int64"}}},"ListCustomerProfileResponse":{"type":"object","properties":{"data":{"title":"List of profile representation.","type":"array","items":{"$ref":"#/components/schemas/ProfileRepresentation"}},"total":{"title":"Total.","type":"integer","format":"int64"}}},"ListProfileAddressResponse":{"type":"object","properties":{"data":{"title":"List of profile address representation.","type":"array","items":{"$ref":"#/components/schemas/ProfileAddressRepresentation"}},"total":{"title":"Total.","type":"integer","format":"int64"}}},"ProfileAddressRepresentation":{"title":"Profile address representation.","type":"object","properties":{"active":{"title":"Is active.","type":"boolean"},"attention":{"title":"Attention.","type":"string"},"city":{"title":"City.","type":"string"},"country":{"title":"Country.","type":"string"},"email":{"title":"E-mail.","pattern":"^$|(?:[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])","type":"string"},"addressName":{"title":"Address name.","type":"string"},"houseExtension":{"title":"House extension.","type":"string"},"phone":{"title":"Phone number.","type":"string"},"postalCode":{"title":"Postal code.","type":"string"},"reference":{"title":"Reference.","type":"string"},"region":{"title":"Region.","type":"string"},"streetAddress":{"title":"Street address 1.","type":"string"},"streetAddress2":{"title":"Street address 2.","type":"string"},"streetNumber":{"title":"Street number.","type":"string"},"title":{"title":"Title.","type":"string"},"type":{"title":"Type.","type":"string","enum":["VISITATION","BILLING","SHIPPING"]},"id":{"type":"string"},"labels":{"type":"array","items":{"$ref":"#/components/schemas/LabelResponse"}}}},"UserResponsibleInfo":{"type":"object","properties":{"id":{"title":"Id.","type":"string"},"username":{"title":"User name.","type":"string"},"firstName":{"title":"First name.","type":"string"},"lastName":{"title":"Last name.","type":"string"},"email":{"title":"E-mail.","type":"string"},"emailVerified":{"title":"E-mail verified.","type":"boolean"},"attributes":{"title":"Attributes mapping.","type":"object","additionalProperties":{"title":"Attributes mapping.","type":"array","items":{"title":"Attributes mapping.","type":"string"}}},"profiles":{"title":"List of profile representation.","type":"array","items":{"$ref":"#/components/schemas/ProfileRepresentation"}}}},"ListUsersInProfileFromAttesterResponse":{"type":"object","properties":{"data":{"title":"List of user profile representation.","type":"array","items":{"$ref":"#/components/schemas/UserProfileRepresentation"}},"total":{"title":"Number of total.","type":"integer","format":"int64"},"totalProfile":{"title":"Number of total profile.","type":"integer","format":"int64"}}},"AttributeFilter":{"title":"Attribute filter.","type":"object","properties":{"key":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["CONTAINS","EQUALS","NOT_EQUALS"]}}},"ListCustomerProfileWithFilterRequest":{"required":["page","pageSize"],"type":"object","properties":{"ids":{"title":"List of profile Id.","type":"array","items":{"type":"string"}},"attributeFilters":{"title":"List of attribute filter.","type":"array","items":{"$ref":"#/components/schemas/AttributeFilter"}},"userId":{"title":"User Id.","type":"string"},"groupId":{"title":"Group Id.","type":"string"},"page":{"type":"integer","description":"Page number.","format":"int32","example":0},"pageSize":{"title":"Number of item per page.","type":"integer","format":"int32","example":50}}},"ListUserResponsibleProfileResponse":{"type":"object","properties":{"data":{"title":"List of user responsible profile representation.","type":"array","items":{"$ref":"#/components/schemas/UserResponsibleProfileRepresentation"}},"total":{"title":"Number of total.","type":"integer","format":"int64"}}},"UserResponsibleProfileRepresentation":{"title":"User responsible profile representation.","type":"object","properties":{"profileId":{"type":"string"},"userId":{"type":"string"},"modifiedAt":{"type":"string"},"modifiedBy":{"type":"string"}}},"UpdateCustomerProfileRequest":{"type":"object","properties":{"name":{"type":"string","description":"Name."},"email":{"pattern":"^$|(?:[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])","type":"string","description":"E-mail."},"phone":{"type":"string","description":"Phone number."},"number":{"type":"string","description":"Profile number."},"attributes":{"type":"object","additionalProperties":{"type":"string"}}}},"Composites":{"type":"object","properties":{"realm":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"client":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"application":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}},"RoleRepresentation":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"scopeParamRequired":{"type":"boolean"},"composite":{"type":"boolean"},"composites":{"$ref":"#/components/schemas/Composites"},"clientRole":{"type":"boolean"},"containerId":{"type":"string"},"attributes":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}},"CustomerGroupRequest":{"required":["customerGroupId"],"type":"object","properties":{"customerGroupId":{"title":"Customer group Id.","type":"string"}}},"RoleUserRequest":{"type":"object","properties":{"user":{"title":"User.","type":"string"}}},"PermissionDataRequest":{"required":["ids"],"type":"object","properties":{"ids":{"title":"List of Id.","type":"array","items":{"title":"List of Id.","type":"string"}}}},"RoleDataRequest":{"required":["name"],"type":"object","properties":{"name":{"title":"Name.","type":"string"},"description":{"title":"Description.","type":"string"}}},"CustomerPermission":{"title":"List of Customer permission.","type":"object","properties":{"id":{"title":"Id.","type":"string"},"name":{"title":"Name.","type":"string"},"description":{"title":"Description.","type":"string"},"localDescription":{"title":"Local description.","type":"string"},"resource":{"title":"Resource.","type":"string"},"logic":{"title":"Logic.","type":"string"},"scopes":{"title":"List of scopes.","uniqueItems":true,"type":"array","items":{"title":"List of scopes.","type":"string"}}}},"CustomerRoleInfo":{"type":"object","properties":{"id":{"title":"Id.","type":"string"},"name":{"title":"Name.","type":"string"},"description":{"title":"Description.","type":"string"},"users":{"title":"List of customer user representation.","type":"object","properties":{"id":{"title":"Id.","type":"string"},"username":{"title":"Username.","type":"string"},"firstName":{"title":"First name.","type":"string"},"lastName":{"title":"Lastname.","type":"string"},"email":{"title":"E-mail.","type":"string"},"emailVerified":{"title":"Is verified e-mail.","type":"boolean"},"status":{"title":"Status.","type":"string"},"attributes":{"type":"object","additionalProperties":{"type":"object"}},"permissions":{"title":"List of permission representation.","type":"array","items":{"$ref":"#/components/schemas/PermissionRepresentation"}},"modifiedBy":{"title":"Modified by.","type":"string"},"modifiedAt":{"title":"Modified at.","type":"string"},"createdBy":{"title":"Created by.","type":"string"},"createdAt":{"title":"Created at.","type":"string"},"requiredActions":{"title":"List of required action.","type":"array","items":{"type":"string"}}}},"customerPermissions":{"title":"List of Customer permission.","type":"object","properties":{"id":{"title":"Id.","type":"string"},"name":{"title":"Name.","type":"string"},"description":{"title":"Description.","type":"string"},"localDescription":{"title":"Local description.","type":"string"},"resource":{"title":"Resource.","type":"string"},"logic":{"title":"Logic.","type":"string"},"scopes":{"title":"List of scopes.","uniqueItems":true,"type":"array","items":{"title":"List of scopes.","type":"string"}}}}}},"UpdateRoleDataRequest":{"type":"object","properties":{"description":{"title":"Description.","type":"string"}}},"CreateUserRequest":{"title":"Create user request.","type":"object","properties":{"username":{"title":"Username for login.","type":"string","description":"If null or blank, the email will be used as username."},"firstName":{"title":"First name.","type":"string"},"lastName":{"title":"Last name.","type":"string"},"email":{"title":"E-mail.","pattern":"^$|(?:[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])","type":"string"},"number":{"title":"Customer number.","type":"string"},"mobile":{"title":"Phone number.","type":"string"},"requiredActions":{"title":"List of required action.","type":"array","items":{"title":"Required action.","type":"string","enum":["CONFIGURE_TOTP","UPDATE_PASSWORD","UPDATE_PROFILE","VERIFY_EMAIL"]}}}},"CreateLabelRelationDataRequest":{"type":"object","properties":{"labels":{"title":"List of label.","type":"array","items":{"type":"string"}},"profileIds":{"title":"List of profile Id.","type":"array","items":{"title":"List of profile Id.","type":"string"}}}},"ForgetPasswordRequest":{"required":["email"],"type":"object","properties":{"email":{"title":"E-mail.","type":"string"}}},"ListUserAttributeResponse":{"type":"object","properties":{"data":{"title":"List of user attribute representation.","type":"array","items":{"$ref":"#/components/schemas/UserAttributeRepresentation"}},"total":{"title":"Number of total.","type":"integer","format":"int64"}}},"UserAttributeRepresentation":{"title":"User attribute representation.","type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"ListCustomerUserWithPermissionResponse":{"type":"object","properties":{"data":{"title":"List of user profile representation.","type":"array","items":{"$ref":"#/components/schemas/UserProfileRepresentation"}},"total":{"title":"Number of total.","type":"integer","format":"int64"},"totalProfile":{"title":"Number of total profile.","type":"integer","format":"int64"}}},"SearchByPermissionRequest":{"required":["permission"],"type":"object","properties":{"search":{"title":"Search text.","type":"string"},"searchType":{"title":"Serach type.","type":"string","enum":["USER","PROFILE"]},"permission":{"title":"Permission.","type":"string"},"include":{"title":"Is include","type":"boolean"},"profileId":{"title":"Profile Id.","type":"string"},"userStatus":{"type":"string","description":"User status.","example":"active | archived"},"queryMode":{"type":"string","description":"Query mode.","example":"default | tacp-ks"}}},"CustomPermission":{"title":"Custom permission.","type":"object","properties":{"id":{"title":"Id.","type":"string"},"permissionName":{"title":"Permission name.","type":"string"},"roleId":{"title":"Role Id.","type":"string"},"type":{"title":"Type.","type":"string"}}},"ListCustomPermissionResponse":{"type":"object","properties":{"data":{"title":"List of custom permission.","type":"array","items":{"$ref":"#/components/schemas/CustomPermission"}},"total":{"title":"Number of total.","type":"integer","format":"int64"}}},"RequireActionOption":{"required":["id","name"],"type":"object","properties":{"id":{"title":"Require action option id.","type":"string","example":"id"},"name":{"title":"Require action option name.","type":"string","example":"name"}}},"ListCustomerUserByIdsResponse":{"type":"object","properties":{"data":{"title":"List of simple customer user representation.","type":"array","items":{"$ref":"#/components/schemas/SimpleCustomerUserRepresentation"}}}},"SimpleCustomerUserRepresentation":{"title":"Simple customer user representation.","type":"object","properties":{"id":{"title":"Id.","type":"string"},"username":{"title":"User name.","type":"string"},"firstName":{"title":"First name.","type":"string"},"lastName":{"title":"Last name.","type":"string"},"email":{"title":"E-mail.","type":"string"},"emailVerified":{"title":"Is verified email.","type":"boolean"},"status":{"title":"Status.","type":"string"},"attributes":{"title":"Data of attributes.","type":"object","additionalProperties":{"title":"Data of attributes.","type":"object"}},"createdBy":{"title":"Created by.","type":"string"},"createdAt":{"title":"Created at.","type":"string"},"modifiedBy":{"title":"Modified by.","type":"string"},"modifiedAt":{"title":"Modified at.","type":"string"}}},"ListByUserIdsRequest":{"required":["ids"],"type":"object","properties":{"ids":{"title":"List of Id.","maxItems":1000,"minItems":1,"type":"array","items":{"maxLength":1000,"minLength":1,"type":"string"}}}},"LogoutRequest":{"required":["token"],"type":"object","properties":{"token":{"title":"Token.","type":"string"}}},"SecureUserDataRequest":{"required":["currentPassword"],"type":"object","properties":{"currentPassword":{"title":"Current password.","type":"string"},"firstName":{"title":"First name.","type":"string"},"lastName":{"title":"Last name.","type":"string"},"email":{"title":"E-mail.","pattern":"^$|(?:[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])","type":"string"},"number":{"title":"Number.","type":"string"},"mobile":{"title":"Mobile.","type":"string"},"status":{"title":"User status.","type":"string","enum":["active","archived"]},"notifyUser":{"title":"Is notify user.","type":"boolean"}}},"SendMailRequest":{"type":"object","properties":{"template":{"title":"Template name.","type":"string"}}},"UserDataRequest":{"title":"User data request.","type":"object","properties":{"firstName":{"title":"First name.","type":"string"},"lastName":{"title":"Last name.","type":"string"},"email":{"title":"E-mail.","pattern":"^$|(?:[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+(?:\\.[A-Za-z0-9åäöÅÄÖøØæÆ!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-Za-z0-9-]*[A-Za-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])","type":"string"},"number":{"title":"User number.","type":"string"},"mobile":{"title":"Phone number.","type":"string"},"status":{"title":"Status.","type":"string","enum":["active","archived"]},"notifyUser":{"title":"Is notify user.","type":"boolean"},"requiredActions":{"title":"List of required action.","type":"array","items":{"title":"Required action.","type":"string","enum":["CONFIGURE_TOTP","UPDATE_PASSWORD","UPDATE_PROFILE","VERIFY_EMAIL"]}}}},"ValidateUserProfileRelationRequest":{"type":"object","properties":{"userId":{"title":"User Id.","type":"string"},"profileId":{"title":"Profile Id.","type":"string"}}},"IdentityProviderRepresentation":{"type":"object","properties":{"alias":{"type":"string"},"displayName":{"type":"string"},"internalId":{"type":"string"},"providerId":{"type":"string"},"enabled":{"type":"boolean"},"updateProfileFirstLoginMode":{"type":"string"},"trustEmail":{"type":"boolean"},"storeToken":{"type":"boolean"},"addReadTokenRoleOnCreate":{"type":"boolean"},"authenticateByDefault":{"type":"boolean"},"linkOnly":{"type":"boolean"},"firstBrokerLoginFlowAlias":{"type":"string"},"postBrokerLoginFlowAlias":{"type":"string"},"config":{"type":"object","additionalProperties":{"type":"string"}},"updateProfileFirstLogin":{"type":"boolean","writeOnly":true}}},"ListIdentityProvider":{"type":"object","properties":{"data":{"title":"List of identity provider representation.","type":"array","items":{"$ref":"#/components/schemas/IdentityProviderRepresentation"}},"total":{"title":"Number of total.","type":"integer","format":"int64"}}},"IdentityProviderProfileLink":{"type":"object","properties":{"identityProviderId":{"title":"Identity provider Id.","type":"string"},"profileId":{"title":"Profile Id.","type":"string"},"enabled":{"title":"Is enabled.","type":"boolean"},"domainList":{"title":"List of domain.","type":"string"},"modifiedBy":{"title":"Modified by.","type":"string"},"modifiedAt":{"title":"Modified at.","type":"string"}}},"IdentityRequest":{"required":["profileId"],"type":"object","properties":{"profileId":{"title":"Profile Id.","type":"string"},"identityProviderId":{"title":"Identity provider Id.","type":"string"},"enabled":{"title":"Is enabled.","type":"boolean"},"domainList":{"title":"List of domain.","type":"string"}}},"IdentityProviderWithProfileRelation":{"type":"object","properties":{"internalId":{"title":"Internal Id.","type":"string"},"enabled":{"title":"Is enabled.","type":"boolean"},"providerAlias":{"title":"Provider alias.","type":"string"},"providerId":{"title":"Provider Id.","type":"string"},"storeToken":{"title":"Is store token.","type":"boolean"},"authenticateByDefault":{"title":"Is authentication by default.","type":"boolean"},"realmId":{"title":"Realm Id.","type":"string"},"addTokenRole":{"title":"Is add to token role.","type":"boolean"},"firstBrokerLoginFlowId":{"title":"First broker login flow Id.","type":"string"},"postBrokerLoginFlowId":{"title":"Post broker login flow Id.","type":"string"},"providerDisplayName":{"title":"Provider display name.","type":"string"},"linkOnly":{"title":"Is link only.","type":"boolean"},"identityProviderProfileLinks":{"title":"List of identity provider profile link.","type":"array","items":{"$ref":"#/components/schemas/IdentityProviderProfileLink"}}}},"ListIdentityProviderWithProfileRelation":{"type":"object","properties":{"data":{"title":"List of identity provider with profile relation.","type":"array","items":{"$ref":"#/components/schemas/IdentityProviderWithProfileRelation"}},"config":{"title":"List of identity provider representation.","type":"array","items":{"$ref":"#/components/schemas/IdentityProviderRepresentation"}},"total":{"title":"Number of total.","type":"integer","format":"int64"}}},"ImpersonateToken":{"type":"object","properties":{"id":{"pattern":"^[a-fA-F0-9]{24}$","type":"string","example":"507f1f77bcf86cd799439011"},"modifiedAt":{"type":"string","format":"date-time"},"modifiedBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"organizationId":{"type":"string"},"dbTokenExpiresAt":{"title":"Database token expires At.","type":"string","format":"date-time"},"otherClaims":{"type":"object","additionalProperties":{"type":"object"}},"dbTokenExpired":{"type":"boolean"},"access_token":{"type":"string"},"expires_in":{"type":"integer","format":"int64"},"refresh_expires_in":{"type":"integer","format":"int64"},"refresh_token":{"type":"string"},"token_type":{"type":"string"},"id_token":{"type":"string"},"not-before-policy":{"type":"integer","format":"int32"},"session_state":{"type":"string"},"scope":{"type":"string"},"error":{"type":"string"},"error_description":{"type":"string"},"error_uri":{"type":"string"}}},"ImpersonateResponse":{"type":"object","properties":{"siteUrl":{"title":"Site url.","type":"string"},"cookies":{"title":"List of cookie.","type":"array","items":{"$ref":"#/components/schemas/NewCookie"}},"createdBy":{"title":"Created by.","type":"string"}}},"NewCookie":{"title":"Cookie.","type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"version":{"type":"integer","format":"int32"},"path":{"type":"string"},"domain":{"type":"string"},"comment":{"type":"string"},"maxAge":{"type":"integer","format":"int32"},"expiry":{"type":"string","format":"date-time"},"secure":{"type":"boolean"},"httpOnly":{"type":"boolean"},"sameSite":{"type":"string","enum":["NONE","LAX","STRICT"]}}},"Impersonation":{"title":"Impersonation.","type":"object","properties":{"id":{"pattern":"^[a-fA-F0-9]{24}$","type":"string","example":"507f1f77bcf86cd799439011"},"modifiedAt":{"type":"string","format":"date-time"},"modifiedBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"organizationId":{"type":"string"},"keycloakSession":{"$ref":"#/components/schemas/KeycloakSession"},"keycloakIdentity":{"title":"Keycloak identity.","type":"string"},"cookiePath":{"title":"Cookie path.","type":"string"},"expireTime":{"title":"Expire time.","type":"string","format":"date-time"}}},"KeycloakSession":{"title":"Keycloak session.","type":"object","properties":{"sessionId":{"title":"Session Id.","type":"string"},"keycloakRealm":{"title":"Keycloak realm.","type":"string"},"keycloakUserId":{"title":"Keycloak user Id.","type":"string"}}},"ListImpersonationResponse":{"type":"object","properties":{"data":{"title":"List of impersonation.","type":"array","items":{"$ref":"#/components/schemas/Impersonation"}},"total":{"title":"Number of total.","type":"integer","format":"int64"}}},"LabelDataRequest":{"required":["name"],"type":"object","properties":{"name":{"title":"Name.","type":"string"}}},"ListLabelsDependsProfileRequest":{"type":"object","properties":{"type":{"title":"Type.","type":"string","enum":["USER","ADDRESS"]},"refId":{"title":"Ref Id.","type":"string"}}},"ResetPasswordRequest":{"required":["password"],"type":"object","properties":{"actionToken":{"title":"Action token.","type":"string"},"password":{"title":"Password.","type":"string"},"temporary":{"title":"Is temporary.","type":"boolean"}}},"UpdatePasswordRequest":{"required":["newPassword","oldPassword"],"type":"object","properties":{"actionToken":{"title":"Action token.","type":"string"},"oldPassword":{"title":"Old password.","type":"string"},"newPassword":{"title":"New password.","type":"string"},"temporary":{"title":"Is temporary.","type":"boolean"}}},"SetupResponse":{"type":"object","properties":{"id":{"title":"Id.","type":"string"},"saml":{"title":"SAML.","type":"string"},"step":{"title":"Step.","type":"string"},"subStep":{"title":"Sub step.","type":"string"},"setupDetail":{"title":"Setup detail.","type":"object","additionalProperties":{"title":"Setup detail.","type":"string"}},"errorMessages":{"title":"Data of error message.","type":"object","additionalProperties":{"title":"Data of error message.","type":"string"}},"startTime":{"title":"Start time.","type":"string","format":"date-time"},"endTime":{"title":"End time.","type":"string","format":"date-time"}}},"CreateIdentityProviderRequest":{"required":["alias","importFromURL","roleId"],"type":"object","properties":{"alias":{"title":"Provide only saml name.","type":"string","example":"telia"},"importFromURL":{"title":"Import from url.","type":"string"},"profileId":{"title":"Profile Id.","type":"string"},"roleId":{"title":"Role Id.","type":"string"},"replaceIfExist":{"title":"Is replace if exists.","type":"boolean","example":false},"domainList":{"title":"List of domain.","type":"string"}}},"SimpleGroupRepresentation":{"type":"object","properties":{"id":{"title":"Id.","type":"string"},"name":{"title":"Name.","type":"string"},"attributes":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}},"ListSimpleCustomerGroupResponse":{"type":"object","properties":{"data":{"title":"List of simple customer group info.","type":"array","items":{"$ref":"#/components/schemas/SimpleCustomerGroupInfo"}},"total":{"title":"Number of total.","type":"integer","format":"int64"}}},"SimpleCustomerGroupInfo":{"title":"Simple customer group info.","type":"object","properties":{"id":{"title":"Id.","type":"string"},"name":{"title":"Name.","type":"string"}}},"MultiIdsRequest":{"required":["ids"],"type":"object","properties":{"ids":{"title":"Set of ids.","type":"array","items":{"type":"string"}}}},"SimpleProfileRepresentation":{"type":"object","properties":{"id":{"title":"Id.","type":"string"},"name":{"title":"Name.","type":"string"},"number":{"title":"Number.","type":"string"},"email":{"title":"E-mail.","type":"string"},"phone":{"title":"Phone number.","type":"string"},"attributes":{"type":"object","additionalProperties":{"type":"string"}}}},"SimpleCustomerUserWithPermissions":{"type":"object","properties":{"id":{"title":"Id.","type":"string"},"username":{"title":"User name.","type":"string"},"firstName":{"title":"First name.","type":"string"},"lastName":{"title":"Last name.","type":"string"},"email":{"title":"E-mail.","type":"string"},"emailVerified":{"title":"Is verified email.","type":"boolean"},"status":{"title":"Status.","type":"string"},"attributes":{"title":"Data of attributes.","type":"object","additionalProperties":{"title":"Data of attributes.","type":"object"}},"createdBy":{"title":"Created by.","type":"string"},"createdAt":{"title":"Created at.","type":"string"},"modifiedBy":{"title":"Modified by.","type":"string"},"modifiedAt":{"title":"Modified at.","type":"string"},"permissions":{"title":"List of custom permission.","type":"array","items":{"$ref":"#/components/schemas/CustomPermission"}}}}},"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://idp.test.bluestonepim.com/op/token","scopes":{"openid profile systemRoles permissions organization email name nickname":"All needed scopes."}}}}}},"x-amazon-apigateway-api-key-source":"AUTHORIZER"}