{"openapi":"3.1.0","info":{"title":"Egencia User Sync API","version":"v1.0"},"servers":[{"url":"https://apis.egencia.com/openconnect/api","description":"Generated server url"}],"tags":[{"description":"SCIM 2.0 compliant user sync APIs version 3.","name":"SCIM User Sync V3"},{"description":"SCIM 2.0 compliant user sync APIs version 2.","name":"SCIM User Sync V2"},{"description":"SCIM 2.0 compliant user sync APIs","name":"SCIM User Sync V1"}],"paths":{"/scim/v1/users":{"post":{"operationId":"createUser_2","requestBody":{"content":{"application/scim+json":{"examples":{"Request with all the supported attributes":{"description":"Request with all the supported attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"externalId":"externalSystemIdentifier","userName":"test@example.com","displayName":"Test User","title":"Mr","userType":"NORMAL","name":{"familyName":"User","formatted":"","givenName":"Test","middleName":""},"preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"userAuthenticationMode":"SSO","singleSignOnId":"test@example.com","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"USA","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"employeeNumber":"employeeNumberValue","loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"organization":"egenciaCompanyId","preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"Window","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"Window"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"promoMail":true,"serviceLevelIds":["12345"],"approvers":{"level1Approvers":["45678"],"delegateApprovers":["testapprover"]},"arrangers":[{"id":"56789"}],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}}},"emails":[{"primary":true,"type":"work","value":"test@example.com"}],"phoneNumbers":[{"primary":true,"type":"work","value":"+44-1234512345"}],"addresses":[{"country":"GB","formatted":"address line 1, cityname, state, GB, XXXXXX","locality":"city name","postalCode":"XXXXX","region":"region or state","streetAddress":"address line 1","type":"work"}],"groups":[{"display":"displayName","value":"travelerGroup"}],"roles":[{"display":"displayName","primary":true,"value":"userRole"}]}},"Request with basic attributes":{"description":"Request with basic attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"api.sample@egencia.com","title":"1","userType":"NORMAL","name":{"familyName":"Test","givenName":"Sample","middleName":"Api"},"active":true,"emails":[{"primary":true,"type":"work","value":"api.sample@egencia.com"}],"groups":[{"value":"General"}],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"12345","dateOfBirth":"1988-01-01","userAuthenticationMode":"SSO","singleSignOnId":"api.sample@egencia.com","customDataFields":[{"name":"Department code","value":"Legal entity value"},{"name":"Reporting field 2","value":"custom value"}]}}},"Request with email settings":{"description":"Request with email settings","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"api.sample@egencia.com","title":"1","userType":"NORMAL","name":{"familyName":"Test","givenName":"Sample","middleName":"Api"},"active":true,"emails":[{"primary":true,"type":"work","value":"api.sample@egencia.com"}],"groups":[{"value":"General"}],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"12345","dateOfBirth":"1988-01-01","userAuthenticationMode":"SSO","singleSignOnId":"api.sample@egencia.com","customDataFields":[{"name":"Department code","value":"Legal entity value"},{"name":"Reporting field 2","value":"custom value"}],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}}}}},"Request with phone number":{"description":"Request with phone number","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"api.sample@egencia.com","title":"1","userType":"NORMAL","name":{"familyName":"Test","givenName":"Sample","middleName":"Api"},"active":true,"emails":[{"primary":true,"type":"work","value":"api.sample@egencia.com"}],"phoneNumbers":[{"primary":true,"type":"MOBILE","value":"+441234512345"},{"type":"WORK","value":"+441234512346"}],"groups":[{"value":"General"}],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"12345","dateOfBirth":"1988-01-01","userAuthenticationMode":"SSO","singleSignOnId":"api.sample@egencia.com","customDataFields":[{"name":"Department code","value":"Legal entity value"},{"name":"Reporting field 2","value":"custom value"}]}}},"Request with preferences":{"description":"Request with preferences","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"api.sample@egencia.com","title":"1","userType":"NORMAL","name":{"familyName":"Test","givenName":"Sample","middleName":"Api"},"active":true,"emails":[{"primary":true,"type":"work","value":"api.sample@egencia.com"}],"groups":[{"value":"General"}],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"12345","dateOfBirth":"1988-01-01","userAuthenticationMode":"SSO","singleSignOnId":"api.sample@egencia.com","customDataFields":[{"name":"Department code","value":"Legal entity value"},{"name":"Reporting field 2","value":"custom value"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}]}}},"Request with preferences and documents":{"description":"Request with preferences and documents","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"api.sample@egencia.com","title":"1","userType":"NORMAL","name":{"familyName":"Test","givenName":"Sample","middleName":"Api"},"active":true,"emails":[{"primary":true,"type":"work","value":"api.sample@egencia.com"}],"groups":[{"value":"General"}],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"12345","dateOfBirth":"1988-01-01","userAuthenticationMode":"SSO","singleSignOnId":"api.sample@egencia.com","customDataFields":[{"name":"Department code","value":"Legal entity value"},{"name":"Reporting field 2","value":"custom value"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"Window","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"Window"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"documents":[{"expirationDate":"2030-10-10","issueCountry":"USA","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}]}}},"Request with preferences and loyalty program":{"description":"Request with preferences and loyalty program","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"api.sample@egencia.com","title":"1","userType":"NORMAL","name":{"familyName":"Test","givenName":"Sample","middleName":"Api"},"active":true,"emails":[{"primary":true,"type":"work","value":"api.sample@egencia.com"}],"groups":[{"value":"General"}],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"12345","dateOfBirth":"1988-01-01","userAuthenticationMode":"SSO","singleSignOnId":"api.sample@egencia.com","customDataFields":[{"name":"Department code","value":"Legal entity value"},{"name":"Reporting field 2","value":"custom value"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"Window"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}]}}},"Request with roles and approvers":{"description":"Request with roles and approvers","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"api.sample@egencia.com","title":"1","userType":"NORMAL","name":{"familyName":"Test","givenName":"Sample","middleName":"Api"},"active":true,"emails":[{"primary":true,"type":"work","value":"api.sample@egencia.com"}],"groups":[{"value":"General"}],"roles":[{"display":"Self Booker","value":"SELF_BOOKER"},{"display":"Arranger","value":"ARRANGER"}],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"12345","dateOfBirth":"1988-01-01","userAuthenticationMode":"SSO","singleSignOnId":"api.sample@egencia.com","customDataFields":[{"name":"Department code","value":"Legal entity value"},{"name":"Reporting field 2","value":"custom value"}],"approvers":{"level1Approvers":["approverone@egencia.com"],"level2Approvers":["approvertwo@egencia.com"]}}}}},"schema":{"$ref":"#/components/schemas/UserSchema"}}},"description":"User Schema to be created","required":true},"responses":{"200":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","externalId":"externalSystemIdentifier","userName":"test@example.com","displayName":"Test User","title":"Mr","userType":"NORMAL","name":{"familyName":"User","givenName":"Test","middleName":"","formatted":""},"preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"egenciaCompanyId","employeeNumber":"employeeNumberValue","dateOfBirth":"1988-01-01","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"documents":[{"expirationDate":"2030-10-10","issueCountry":"USA","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"Window","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"Window"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"serviceLevelIds":["12345"],"approvers":{"level1Approvers":["45678"],"delegateApprovers":["testapprover"]},"arrangers":[{"id":"56789"}],"promoMail":true},"emails":[{"type":"work","value":"test@example.com","primary":true}],"phoneNumbers":[{"type":"work","value":"+44-1234512345","primary":true}],"addresses":[{"type":"work","streetAddress":"address line 1","locality":"city name","region":"region or state","country":"GB","postalCode":"XXXXX","formatted":"address line 1, cityname, state, GB, XXXXXX"}],"groups":[{"value":"travelerGroup","display":"displayName"}],"roles":[{"value":"userRole","display":"displayName","primary":true}],"meta":{"created":"2017-10-10T00:00:00.000Z","last_modified":"2017-10-10T00:00:00.000Z","location":"/scim/v1/users/123"}},"schema":{"$ref":"#/components/schemas/UserSchema"}}},"description":"<b>Created</b>."},"400":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid parameters","status":"400"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Bad Request</b> : Invalid input or request"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Create a new user in the system with the requested information.","tags":["SCIM User Sync V1"]}},"/scim/v1/users/search":{"post":{"operationId":"getUserByCondition","requestBody":{"content":{"application/scim+json":{"examples":{"Search Users By Email":{"description":"Replace {email} with valid email value and {organizationId} with valid organization Id.","value":{"filter":"emails[value eq \"{email}\"] and urn:ietf:params:scim:schemas:extension:enterprise:2.0:User[organization eq {organizationId}]"}},"Search Users By Name":{"description":"Replace {givenName} with valid given name value, {familyName} with valid family name value and {organizationId} with valid organization Id.","value":{"filter":"name[givenName eq \"{givenName}\" and familyName eq \"{familyName}\"] and urn:ietf:params:scim:schemas:extension:enterprise:2.0:User[organization eq {organizationId}]"}},"Search Users By SSO":{"description":"Replace {singleSignOnId} with valid singleSignOnId value and {organizationId} with valid organization Id.","value":{"filter":"singleSignOnId eq \"{singleSignOnId}\" and urn:ietf:params:scim:schemas:extension:enterprise:2.0:User[organization eq {organizationId}]"}},"Search Users By Username":{"description":"Replace {userName} with valid userName value and {organizationId} with valid organization Id.","value":{"filter":"userName eq \"{userName}\" and urn:ietf:params:scim:schemas:extension:enterprise:2.0:User[organization eq {organizationId}]"}}},"schema":{"$ref":"#/components/schemas/SearchRequest"}}},"description":"User Schema to be updated","required":true},"responses":{"200":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:ListResponse"],"Resources":[{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"externalId":"externalSystemIdentifier","userName":"test@example.com","displayName":"Test User","title":"Mr","userType":"NORMAL","name":{"familyName":"User","formatted":"","givenName":"Test","middleName":""},"preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"userAuthenticationMode":"SSO","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"USA","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"employeeNumber":"employeeNumberValue","loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"organization":"egenciaCompanyId","preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"promoMail":true,"serviceLevelIds":["12345"],"approvers":{"level1Approvers":["45678"],"delegateApprovers":["testapprover"]},"arrangers":[{"id":"56789"}]},"emails":[{"primary":true,"type":"WORK","value":"test@example.com"}],"phoneNumbers":[{"primary":true,"type":"WORK","value":"+44-1234512345"}],"addresses":[{"country":"GB","formatted":"address line 1, cityname, state, GB, XXXXXX","locality":"city name","postalCode":"XXXXX","region":"region or state","streetAddress":"address line 1","type":"WORK"}],"groups":[{"display":"displayName","value":"travelerGroup"}],"roles":[{"display":"Self Booker","primary":true,"value":"Self Booker"}]}]},"schema":{"$ref":"#/components/schemas/ListResponse"}}},"description":"<b>Search api success</b>."},"400":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid parameters","status":"400"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Bad Request</b> : Invalid input or request"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Return list of users based on the filter condition.","tags":["SCIM User Sync V1"]}},"/scim/v1/users/{userId}":{"delete":{"description":"<p>Delete the user with the given user Id in the path</p>\n<p><b>Examples:</b></p>\n<p>Replace {baseUrl} with the actual value of Egencia APIs host. Please refer Base Urls section under API Overview page of Egencia Developer Center.</p>\n<p>Deleting a user with user Id : test_user_id</p>\n<pre>\n    <code>\n        DELETE {baseUrl}/openconnect/api/scim/v1/users/test_user_id\n        <b>Response:</b>\n            -> 204 No Content\n   </code>\n</pre>","operationId":"deleteUserUser_2","parameters":[{"description":"User Id of the user who is to be deleted","in":"path","name":"userId","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"<b>No Content</b>."},"401":{"content":{"*/*":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"*/*":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"404":{"content":{"*/*":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"User not found, you are trying to access an invalid or non existent user.","status":"404","data":[{"attribute":"id","message":"Requested user identifier is invalid."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Not Found</b> : Resource Not Found."},"422":{"content":{"*/*":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"*/*":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"*/*":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Delete the user in the system with the given user Id.","tags":["SCIM User Sync V1"]},"get":{"operationId":"getUser_2","parameters":[{"in":"path","name":"userId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"externalId":"externalSystemIdentifier","userName":"test@example.com","displayName":"Test User","title":"Mr","userType":"NORMAL","name":{"familyName":"User","formatted":"","givenName":"Test","middleName":""},"preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"userAuthenticationMode":"SSO","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"USA","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"employeeNumber":"employeeNumberValue","loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"organization":"egenciaCompanyId","preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"promoMail":true,"serviceLevelIds":["12345"],"approvers":{"level1Approvers":["45678"],"delegateApprovers":["testapprover"]},"arrangers":[{"id":"56789"}]},"emails":[{"primary":true,"type":"WORK","value":"test@example.com"}],"phoneNumbers":[{"primary":true,"type":"WORK","value":"+44-1234512345"}],"addresses":[{"country":"GB","formatted":"address line 1, cityname, state, GB, XXXXXX","locality":"city name","postalCode":"XXXXX","region":"region or state","streetAddress":"address line 1","type":"WORK"}],"groups":[{"display":"displayName","value":"travelerGroup"}],"roles":[{"display":"Self Booker","primary":true,"value":"Self Booker"}]},"schema":{"$ref":"#/components/schemas/UserSchema"}}},"description":"<b>Found</b>."},"400":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid parameters","status":"400"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Bad Request</b> : Invalid input or request"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"404":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"User not found, you are trying to access an invalid or non existent user.","status":"404","data":[{"attribute":"id","message":"Requested user identifier is invalid."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Not Found</b> : Resource Not Found."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Retrieves the user details for a requested user identifier.","tags":["SCIM User Sync V1"]},"patch":{"description":"<p><b>PATCH updates only the attributes named in the operations, everything else is left untouched.</b> Use PATCH (instead of PUT) when you do not want to send the complete user profile.</p>\n<p>The request body is a SCIM PatchOp message: the <tt>schemas</tt> array is <tt>[\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"]</tt> and <tt>Operations</tt> is an ordered list of operations which are applied one after the other.</p>\n<div>\n<table>\n    <thead>\n    <tr><th>Attribute</th><th>Type</th><th>Description</th></tr>\n    </thead>\n    <tbody>\n    <tr><td>op</td><td>String (mandatory)</td><td><tt>add</tt>, <tt>replace</tt> or <tt>remove</tt> (case insensitive).</td></tr>\n    <tr><td>path</td><td>String</td><td>The attribute to change. Optional for <tt>add</tt> and <tt>replace</tt> (when omitted, <tt>value</tt> is an object holding the attributes to change). Mandatory for <tt>remove</tt>.</td></tr>\n    <tr><td>value</td><td>Any</td><td>The new value. Mandatory for <tt>add</tt> and <tt>replace</tt>, not used for <tt>remove</tt>.</td></tr>\n    </tbody>\n</table>\n</div>\n<p><b>Operations</b></p>\n<div>\n<table>\n    <thead>\n    <tr><th>op</th><th>Single-valued attribute (e.g. <tt>active</tt>, <tt>name.givenName</tt>)</th><th>List attribute (e.g. <tt>loyaltyPrograms</tt>, <tt>documents</tt>)</th></tr>\n    </thead>\n    <tbody>\n    <tr><td>add</td><td>Sets the value (overwrites an existing one). For an attribute made of sub-attributes (e.g. <tt>name</tt>, <tt>approvers</tt>, <tt>settings</tt>) only the sub-attributes present in <tt>value</tt> are set, the others are kept.</td><td><b>Appends</b> the entries when <tt>value</tt> is a JSON array, existing entries are kept (an entry identical to an existing one is not added twice). Always send an array: an object <tt>value</tt> does not append.</td></tr>\n    <tr><td>replace</td><td>Sets the value. For an attribute made of sub-attributes only the sub-attributes present in <tt>value</tt> are changed, the others are kept.</td><td>Replaces the <b>whole list</b> with the given array when the path has no filter. With a filter in the path, e.g. <tt>loyaltyPrograms[lob eq \"AIR\"]</tt>, <tt>value</tt> is merged into each matching entry: the attributes you send are changed and the ones you leave out keep their current value. An empty array as <tt>value</tt> removes the matching entries.</td></tr>\n    <tr><td>remove</td><td>Clears the value.</td><td>Removes the <b>whole list</b> when the path has no filter. With a filter in the path, only the matching entries are removed.</td></tr>\n    </tbody>\n</table>\n</div>\n<p><b>Path syntax (version 1)</b></p>\n<p>&bull; Core attributes are addressed by name, e.g. <tt>active</tt>, <tt>name.givenName</tt>, <tt>emails</tt>, <tt>phoneNumbers</tt>, <tt>roles</tt>.</p>\n<p>&bull; <b>In version 1 all the Egencia specific attributes are inside the enterprise extension</b>, so their path is prefixed by <tt>urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:</tt>, e.g.\n    <tt>urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:loyaltyPrograms</tt>. Nested attributes use a dot, e.g.\n    <tt>urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:approvers.level1Approvers</tt>.\n    An operation addressed to any other extension urn, such as the <tt>...:extension:egencia:2.0:User</tt> urn used by versions 2 and 3, is <b>not applied</b> to a version 1 user.</p>\n<p>&bull; Entries of a list can be selected with a filter in square brackets, e.g. <tt>urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:loyaltyPrograms[lob eq \"AIR\" and name eq \"Delta SkyMiles\"]</tt>.\n    A sub-attribute of the matched entry can be addressed after the filter, e.g. <tt>emails[type eq \"WORK\"].value</tt>.</p>\n<p>&bull; Without a <tt>path</tt>, <tt>value</tt> is an object using the same structure as the user resource, e.g. <tt>{\"active\": false}</tt> or <tt>{\"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User\": {\"dateOfBirth\": \"1988-01-26\"}}</tt>.</p>\n<p><b>Tips for lists such as loyaltyPrograms</b></p>\n<p>&bull; To add a loyalty program without touching the existing ones, use <tt>add</tt> on the <tt>loyaltyPrograms</tt> path.</p>\n<p>&bull; To change one loyalty program, use <tt>replace</tt> with a filter that identifies exactly that entry. A <tt>replace</tt> on <tt>loyaltyPrograms</tt> without a filter replaces all of them. The attributes left out of <tt>value</tt> keep their current value.</p>\n<p>&bull; To delete one loyalty program, use <tt>remove</tt> with a filter. A <tt>remove</tt> on <tt>loyaltyPrograms</tt> without a filter deletes all of them.</p>\n<p>&bull; After each operation the patched user is checked against the attribute rules of the reference below: a rule the user already broke before the operation is ignored, a new violation rejects the request, so every entry you add still needs its mandatory attributes. The business rules (for example custom data fields, loyalty program names, roles and documents) are checked once, on the final user after all the operations.</p>\n<p>&bull; Removing preferences (<tt>remove</tt> on <tt>preferences</tt>) has no effect: the existing preferences are kept.</p>\n<p><b>Attribute reference (version 1)</b></p>\n<p>Attributes of the user resource, with their exact JSON syntax. The Egencia specific attributes must be sent inside the\n<tt>urn:ietf:params:scim:schemas:extension:enterprise:2.0:User</tt> object (for PATCH with a <tt>path</tt>, prefix the path with this urn and a colon).\nDate values use the ISO 8601 format <tt>YYYY-MM-DD</tt>. Please refer the Enumerations section for the full list of values supported.</p>\n<div>\n<table>\n    <thead>\n    <tr><th>Attribute</th><th>Type</th><th>Required</th><th>Allowed values / format / limits</th></tr>\n    </thead>\n    <tbody>\n    <tr><td>id</td><td>String</td><td>Read-only</td><td>Egencia unique id of the user. Taken from the <tt>userId</tt> in the URL path.</td></tr>\n    <tr><td>externalId</td><td>String</td><td>No</td><td>Identifier of the user in the provisioning client.</td></tr>\n    <tr><td>userName</td><td>String</td><td>Yes, unless <tt>userType</tt> is <tt>GUEST</tt></td><td>Valid email address, maximum 60 characters.</td></tr>\n    <tr><td>displayName</td><td>String</td><td>No</td><td>Accepted but not stored or returned, it can be left out. The display name of the user is set with <tt>name.formatted</tt>.</td></tr>\n    <tr><td>name.givenName</td><td>String</td><td>Yes</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.familyName</td><td>String</td><td>Yes</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.middleName</td><td>String</td><td>No</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.formatted</td><td>String</td><td>No</td><td>Formatted full name.</td></tr>\n    <tr><td>title</td><td>String</td><td>Conditional</td><td>Salutation code of the user, see the Title enumeration. When a user of a non-US point of sale is updated (PUT) it is required, a missing value is rejected; when the user is created a default title is applied. For a user of the US point of sale it cannot be changed, unless title support is enabled for the company. Note: <tt>name.honorificPrefix</tt> is not used in version 1, use <tt>title</tt>.</td></tr>\n    <tr><td>userType</td><td>String</td><td>Yes</td><td><tt>NORMAL</tt> or <tt>GUEST</tt> (case sensitive).</td></tr>\n    <tr><td>active</td><td>Boolean</td><td>Yes</td><td><tt>true</tt> or <tt>false</tt>.</td></tr>\n    <tr><td>preferredLanguage</td><td>String</td><td>No</td><td>One of es, da, de, el, en, fr, it, nl, pt, fi, cs, et, lv, lt, hu, mt, pl, sk, sl, bg, ro, tr, zh, nb, sv (not case sensitive). A locale made of such a language and a country, e.g. <tt>en-GB</tt>, is also accepted when it is a valid locale.</td></tr>\n    <tr><td>emails[]</td><td>List</td><td>Yes</td><td>Exactly one entry: <tt>type</tt> = <tt>WORK</tt> (required, send it exactly as <tt>WORK</tt>: a lower case value passes the validation but the email is not applied), <tt>value</tt> = valid email address (required), <tt>primary</tt> = boolean.</td></tr>\n    <tr><td>phoneNumbers[]</td><td>List</td><td>No</td><td>Each entry: <tt>type</tt> = <tt>MOBILE</tt>, <tt>HOME</tt> or <tt>WORK</tt> (required, case insensitive); <tt>value</tt> in international format, starting with '+' and a valid country code, e.g. <tt>+44-1234512345</tt> or <tt>+441234512345</tt> (required); <tt>primary</tt> = boolean. When a user is updated only one number per type is kept (the first one sent).</td></tr>\n    <tr><td>addresses[]</td><td>List</td><td>No</td><td>If sent, exactly one entry: <tt>type</tt> = <tt>HOME</tt> (required, case insensitive); <tt>streetAddress</tt>, <tt>postalCode</tt> and <tt>country</tt> are required; <tt>region</tt>, <tt>locality</tt> and <tt>formatted</tt> are optional. <tt>country</tt> is a 2 or 3 letter ISO country code (the response returns 2 letters in versions 2 and 3, and 3 letters in version 1).</td></tr>\n    <tr><td>groups[]</td><td>List</td><td>No</td><td>At most one traveler group: <tt>value</tt> = name of the traveler group as on the Egencia website (required), <tt>display</tt> optional. When no group is sent the default traveler group of the company is set. An unknown group name is rejected, except for companies that have the default traveler group fallback enabled, where the default group is set instead.</td></tr>\n    <tr><td>roles[]</td><td>List of objects</td><td>No</td><td>Each entry: <tt>value</tt> (required, case sensitive): <tt>SELF_BOOKER</tt>, <tt>APPROVER</tt>, <tt>ARRANGER</tt>, <tt>FLEXIBLE_ARRANGER</tt>, <tt>MANAGE_USERS</tt> or <tt>GUEST_MANAGER</tt>; <tt>display</tt> and <tt>primary</tt> (boolean) are optional. A role that is not valid for the company is rejected. <tt>APPROVER</tt> is not set through the roles: it is ignored, and rejected where the approver role is deprecated. In version 1 a role is an object, in versions 2 and 3 it is a plain string.</td></tr>\n    <tr><td colspan=\"4\"><b>Enterprise extension : urn:ietf:params:scim:schemas:extension:enterprise:2.0:User</b> (mandatory object, contains all the Egencia specific attributes)</td></tr>\n    <tr><td>organization</td><td>String</td><td>Yes</td><td>Egencia company (organization) id of the user.</td></tr>\n    <tr><td>employeeNumber</td><td>String</td><td>No</td><td>Employee number of the user.</td></tr>\n    <tr><td>dateOfBirth</td><td>String (date)</td><td>No</td><td><tt>YYYY-MM-DD</tt>, cannot be in the future.</td></tr>\n    <tr><td>userAuthenticationMode</td><td>String</td><td>Yes</td><td><tt>SSO</tt> or <tt>LOGIN</tt> (case sensitive).</td></tr>\n    <tr><td>singleSignOnId</td><td>String</td><td>No</td><td>With <tt>SSO</tt> it defaults to the <tt>userName</tt> when omitted. With <tt>LOGIN</tt> it must be equal to the <tt>userName</tt> when sent.</td></tr>\n    <tr><td>approvers.level1Approvers[]<br/>approvers.level2Approvers[]<br/>approvers.delegateApprovers[]</td><td>List of String</td><td>No</td><td>Each entry is the username (email) or the Egencia id of an existing user. When <tt>approvers</tt> is sent it must contain at least <tt>level1Approvers</tt> or <tt>delegateApprovers</tt>, <tt>level2Approvers</tt> alone is rejected. Note: in version 1 an approver is a plain string, in versions 2 and 3 it is an object.</td></tr>\n    <tr><td>serviceLevelIds[]</td><td>List of String</td><td>No</td><td>Service level ids of the user.</td></tr>\n    <tr><td>arrangerGroups[]</td><td>List of String</td><td>No</td><td>Arranger groups of the company. The user must have an arranger role (<tt>ARRANGER</tt> or <tt>FLEXIBLE_ARRANGER</tt>).</td></tr>\n    <tr><td>arrangers[]</td><td>List</td><td>No</td><td>Existing users: <tt>id</tt> (numeric Egencia id, without leading zero) or <tt>userName</tt>. Use either ids or usernames in one request: when any entry has an <tt>id</tt>, the entries that only have a <tt>userName</tt> are ignored.</td></tr>\n    <tr><td>customDataFields[]</td><td>List</td><td>No</td><td><tt>name</tt> (required): name of a custom data field defined for the company. <tt>value</tt> (required): for a LIST type field it must be one of the values defined on the Egencia website, for a free text field any text of at most 50 characters (a longer value is rejected). If the same name is sent more than once, the last one is used.</td></tr>\n    <tr><td>documents[]</td><td>List</td><td>No</td><td><tt>type</tt> (required): <tt>PAS</tt>, <tt>ID</tt>, <tt>DL</tt>, <tt>HR_PERMIT</tt>, <tt>TWC_PERMIT</tt>, <tt>EEP_HM</tt>, <tt>TP_TW</tt>, <tt>ID_ARMY</tt>, <tt>PRI_FOREIGNER</tt>, <tt>ID_DIPLOMATIC</tt>, <tt>ID_BIRTH</tt>, <tt>DOM_TC</tt>. PAS, ID and DL are always accepted, the other types only where the point of sale supports them. Only one document per type is allowed, except for PAS. <tt>value</tt> (required). <tt>issueDate</tt> and <tt>expirationDate</tt> (<tt>YYYY-MM-DD</tt>): the expiration date must be in the future and after the issue date. <tt>issueLocation</tt> (city). <tt>issueCountry</tt>: 2 or 3 letter ISO country code.</td></tr>\n    <tr><td>loyaltyPrograms[]</td><td>List</td><td>No</td><td><tt>lob</tt> (required): <tt>AIR</tt>, <tt>HOTEL</tt>, <tt>RAIL</tt>, <tt>CAR</tt>. <tt>name</tt> (required): name of a loyalty program defined for the company, unknown names are rejected; for AIR, RAIL and CAR the <tt>lob</tt> must match the line of business of the program. <tt>issuingSupplierCode</tt> (required). <tt>value</tt>: membership id of 1 to 30 characters, required except for UK RAIL. <tt>type</tt>: optional, when omitted it is taken from the program (AIR, RAIL, CAR), when sent it must match the type of the program. <tt>code</tt> (optional). <tt>class</tt> (RAIL only): <tt>FIRST</tt> or <tt>SECOND</tt>. <tt>validFrom</tt> and <tt>validTo</tt> (<tt>YYYY-MM-DD</tt>): <tt>validTo</tt> must be in the future and after <tt>validFrom</tt>.</td></tr>\n    <tr><td>preferences[]</td><td>List</td><td>No</td><td><tt>lob</tt> (required): <tt>AIR</tt>, <tt>HOTEL</tt>, <tt>RAIL</tt> or <tt>CAR</tt>. All values are sent as text. AIR: <tt>preferredDepartureAirport</tt> (IATA code), <tt>seatType</tt> and <tt>mealType</tt> (values configured for the point of sale). RAIL: <tt>seatType</tt> and <tt>seatRoom</tt> (values configured for the point of sale), <tt>seatDirection</tt>, <tt>seatSolo</tt>, <tt>seatFreeOfCharge</tt> (<tt>0</tt> or <tt>1</tt>). HOTEL: <tt>smoking</tt> (<tt>0</tt>, <tt>1</tt> or <tt>2</tt>). All lines of business: <tt>specialRequest</tt> (1 to 80 characters). An empty list does not delete the existing preferences.</td></tr>\n    <tr><td>settings.notifications.reservationEmail</td><td>String</td><td>No</td><td><tt>NORMAL</tt> (default) or <tt>NONE_EXCEPT_MY_ETICKETS</tt>. <tt>ALL</tt> is not supported and is rejected.</td></tr>\n    <tr><td>settings.notifications.outOfPolicyPurchaseEmails[]</td><td>List of String</td><td>No</td><td>Valid email addresses to notify on out of policy purchases.</td></tr>\n    </tbody>\n</table>\n</div>\n","operationId":"patchUser_2","parameters":[{"in":"path","name":"userId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/scim+json":{"examples":{"Request to add a custom data field to the existing custom data fields (version 1)":{"description":"Request to add a custom data field to the existing custom data fields (version 1)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:customDataFields","value":[{"name":"CDF label","value":"CDF value"}]}]}},"Request to add a document to the existing documents (version 1)":{"description":"Request to add a document to the existing documents (version 1)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:documents","value":[{"type":"PAS","value":"ABCDE1234","issueDate":"2020-10-10","expirationDate":"2031-10-10","issueLocation":"London","issueCountry":"GBR"}]}]}},"Request to add a loyalty program to the existing loyalty programs (version 1, existing ones are kept)":{"description":"Request to add a loyalty program to the existing loyalty programs (version 1, existing ones are kept)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:loyaltyPrograms","value":[{"lob":"AIR","name":"Delta SkyMiles","issuingSupplierCode":"DL","value":"1234567890","validFrom":"2024-01-01","validTo":"2030-12-31"}]}]}},"Request to add a new arranger to the existing arrangers":{"description":"Request to add a new arranger to the existing arrangers","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:arrangers","value":[{"id":"id","userName":"api.sample@egencia.com"}]}]}},"Request to add a new custom data field to the existing custom data field list:":{"description":"Request to add a new custom data field to the existing custom data field list:","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:customDataFields","value":[{"name":"CDF label","value":"CDF value"}]}]}},"Request to add a new level 1 approver to the existing level1Approvers list":{"description":"Request to add a new level 1 approver to the existing level1Approvers list","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:approvers.level1Approvers","value":[{"userName":"api.sample@egencia.com"}]}]}},"Request to add a new level 1 as well as level 2 approver to the existing level1Approvers and level2Approvers list":{"description":"Request to add a new level 1 as well as level 2 approver to the existing level1Approvers and level2Approvers list","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","value":{"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"id":"id"}],"level2Approvers":[{"userName":"api.sample@egencia.com"}]}}}}]}},"Request to add a new role to the existing roles":{"description":"Request to add a new role to the existing roles","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"roles","value":["ARRANGER"]}]}},"Request to add a phone number and update the home address (version 1)":{"description":"Request to add a phone number and update the home address (version 1)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"phoneNumbers","value":[{"type":"MOBILE","value":"+44-1234512345","primary":false}]},{"op":"replace","path":"addresses[type eq \"HOME\"].streetAddress","value":"1010 Broadway Ave"}]}},"Request to add a preference to the existing preferences (version 1)":{"description":"Request to add a preference to the existing preferences (version 1)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:preferences","value":[{"lob":"HOTEL","smoking":"0","specialRequest":"Quiet room"}]}]}},"Request to add a role to the existing roles (version 1)":{"description":"Request to add a role to the existing roles (version 1)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"roles","value":[{"value":"ARRANGER"}]}]}},"Request to add an arranger and level 1 and level 2 approvers (version 1)":{"description":"Request to add an arranger and level 1 and level 2 approvers (version 1)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:arrangers","value":[{"id":"67890"}]},{"op":"add","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:approvers.level1Approvers","value":["api.sample@egencia.com"]},{"op":"add","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:approvers.level2Approvers","value":["api.sample2@egencia.com"]}]}},"Request to add/update first name, last name and date of birth":{"description":"Request to add/update first name, last name and date of birth","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","value":{"name":{"givenName":"First Name","familyName":"Last Name"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"dateOfBirth":"1988-01-26"}}}]}},"Request to add/update status of user":{"description":"Request to add/update status of user","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","value":{"active":false}}]}},"Request to remove a custom data field identified by a filter (version 1)":{"description":"Request to remove a custom data field identified by a filter (version 1)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:customDataFields[name eq \"CDF label\"]"}]}},"Request to remove a document identified by a filter (version 1)":{"description":"Request to remove a document identified by a filter (version 1)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:documents[type eq \"PAS\"]"}]}},"Request to remove a single loyalty program identified by a filter (version 1)":{"description":"Request to remove a single loyalty program identified by a filter (version 1)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:loyaltyPrograms[lob eq \"HOTEL\" and name eq \"S-Card\"]"}]}},"Request to replace ALL loyalty programs with the given list (version 1)":{"description":"Request to replace ALL loyalty programs with the given list (version 1)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:loyaltyPrograms","value":[{"lob":"AIR","name":"Delta SkyMiles","issuingSupplierCode":"DL","value":"1234567890"}]}]}},"Request to replace traveler group with a new one.":{"description":"Request to replace traveler group with a new one.","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"groups","value":[{"value":"General"}]}]}},"Request to update WORK type email, username, ssoId, authentication mode":{"description":"Request to update WORK type email, username, ssoId, authentication mode","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"emails[type eq \"WORK\"].value","value":"api.sample@egencia.com"},{"op":"add","value":{"userName":"api.sample@egencia.com","urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}}}]}},"Request to update a single loyalty program identified by a filter (version 1)":{"description":"Request to update a single loyalty program identified by a filter (version 1)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:loyaltyPrograms[lob eq \"HOTEL\" and name eq \"S-Card\"]","value":{"lob":"HOTEL","name":"S-Card","issuingSupplierCode":"T4","type":"LC","value":"S98765","validFrom":"2024-01-01","validTo":"2032-12-31"}}]}},"Request to update the notification settings and service levels (version 1)":{"description":"Request to update the notification settings and service levels (version 1)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:settings.notifications.reservationEmail","value":"NORMAL"},{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:serviceLevelIds","value":["12345"]}]}},"Request with multiple patch operations":{"description":"Request with multiple patch operations","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:customDataFields","value":[{"name":"ff test","value":"ff test value"},{"name":"Test CDF","value":"Test CDF"}]},{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:companyId","value":"23"},{"op":"add","value":{"userName":"abcd","name":{"givenName":"Abcd"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"companyId":"23"}}},{"op":"replace","path":"addresses[type eq \"HOME\"].streetAddress","value":"1010 Broadway Ave"},{"op":"replace","path":"addresses[type eq \"HOME\"]","value":{"streetAddress":"911 Universal City Plaza","locality":"Hollywood","region":"CA","postalCode":"91608","country":"USA","formatted":"911 Universal City Plaza\nHollywood, CA 91608 US"}},{"op":"replace","value":{"emails":[{"value":"test@example.com","type":"WORK","primary":true}]}},{"op":"replace","value":{"phoneNumbers":[{"value":"+91-9999999999","type":"HOME","primary":true}]}},{"op":"add","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:employeeNumber","value":"11111"}]}}},"schema":{"$ref":"#/components/schemas/ScimPatchSchema"}}},"description":"SCIM compliant patch operation schema","required":true},"responses":{"200":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"externalId":"externalSystemIdentifier","userName":"test@example.com","displayName":"Test User","title":"Mr","userType":"NORMAL","name":{"familyName":"User","formatted":"","givenName":"Test","middleName":""},"preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"userAuthenticationMode":"SSO","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"USA","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"employeeNumber":"employeeNumberValue","loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"organization":"egenciaCompanyId","preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"promoMail":true,"serviceLevelIds":["12345"],"approvers":{"level1Approvers":["45678"],"delegateApprovers":["testapprover"]},"arrangers":[{"id":"56789"}]},"emails":[{"primary":true,"type":"WORK","value":"test@example.com"}],"phoneNumbers":[{"primary":true,"type":"WORK","value":"+44-1234512345"}],"addresses":[{"country":"GB","formatted":"address line 1, cityname, state, GB, XXXXXX","locality":"city name","postalCode":"XXXXX","region":"region or state","streetAddress":"address line 1","type":"WORK"}],"groups":[{"display":"displayName","value":"travelerGroup"}],"roles":[{"display":"Self Booker","primary":true,"value":"Self Booker"}]},"schema":{"$ref":"#/components/schemas/UserSchema"}}},"description":"<b>Patch api success</b>"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"404":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"User not found, you are trying to access an invalid or non existent user.","status":"404","data":[{"attribute":"id","message":"Requested user identifier is invalid."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Not Found</b> : Resource Not Found."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Perform patch operation on the user with the given user Id.","tags":["SCIM User Sync V1"]},"put":{"description":"<p><b>Important: PUT replaces the complete user profile, it is not a partial update.</b></p>\n<p>&bull; The request body is treated as the full desired state of the user, so send every attribute you want to keep.</p>\n<p>&bull; For the list attributes <tt>loyaltyPrograms</tt>, <tt>documents</tt>, <tt>customDataFields</tt> and <tt>phoneNumbers</tt> the list in the request is synchronised with the stored one: entries that are missing from the request are <b>deleted</b> and entries that are new are created.\n    For example, sending a PUT without <tt>loyaltyPrograms</tt> deletes all the loyalty programs of the user, and sending only one loyalty program deletes the others.</p>\n<p>&bull; <tt>externalId</tt> is taken from the request as it is, the stored value is not kept for you. Send back the value returned for the user, otherwise the user is updated without an <tt>externalId</tt>.</p>\n<p>&bull; <tt>preferences</tt>: when the attribute is not sent the existing preferences are left unchanged. When it is sent, the request is written as the new set of preferences, so include every line of business you want to keep. An empty list does not delete the existing preferences.</p>\n<p>&bull; <tt>addresses</tt>: when no address is sent the existing HOME address is deleted.</p>\n<p>&bull; <tt>groups</tt>: when no traveler group is sent the default traveler group of the company is set.</p>\n<p>&bull; <tt>settings</tt>: when it is not sent the notification setting <tt>reservationEmail</tt> is reset to <tt>NORMAL</tt>.</p>\n<p>&bull; For the other list attributes (<tt>roles</tt>, <tt>arrangers</tt>, <tt>arrangerGroups</tt>, approvers) send the complete list you want the user to have, and use PATCH to add or remove individual entries.</p>\n<p>&bull; To change only some attributes, either <b>GET the user first and send back the complete resource with your changes</b>, or use <b>PATCH</b> which only touches the attributes named in its operations.</p>\n<p><b>Attribute reference (version 1)</b></p>\n<p>Attributes of the user resource, with their exact JSON syntax. The Egencia specific attributes must be sent inside the\n<tt>urn:ietf:params:scim:schemas:extension:enterprise:2.0:User</tt> object (for PATCH with a <tt>path</tt>, prefix the path with this urn and a colon).\nDate values use the ISO 8601 format <tt>YYYY-MM-DD</tt>. Please refer the Enumerations section for the full list of values supported.</p>\n<div>\n<table>\n    <thead>\n    <tr><th>Attribute</th><th>Type</th><th>Required</th><th>Allowed values / format / limits</th></tr>\n    </thead>\n    <tbody>\n    <tr><td>id</td><td>String</td><td>Read-only</td><td>Egencia unique id of the user. Taken from the <tt>userId</tt> in the URL path.</td></tr>\n    <tr><td>externalId</td><td>String</td><td>No</td><td>Identifier of the user in the provisioning client.</td></tr>\n    <tr><td>userName</td><td>String</td><td>Yes, unless <tt>userType</tt> is <tt>GUEST</tt></td><td>Valid email address, maximum 60 characters.</td></tr>\n    <tr><td>displayName</td><td>String</td><td>No</td><td>Accepted but not stored or returned, it can be left out. The display name of the user is set with <tt>name.formatted</tt>.</td></tr>\n    <tr><td>name.givenName</td><td>String</td><td>Yes</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.familyName</td><td>String</td><td>Yes</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.middleName</td><td>String</td><td>No</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.formatted</td><td>String</td><td>No</td><td>Formatted full name.</td></tr>\n    <tr><td>title</td><td>String</td><td>Conditional</td><td>Salutation code of the user, see the Title enumeration. When a user of a non-US point of sale is updated (PUT) it is required, a missing value is rejected; when the user is created a default title is applied. For a user of the US point of sale it cannot be changed, unless title support is enabled for the company. Note: <tt>name.honorificPrefix</tt> is not used in version 1, use <tt>title</tt>.</td></tr>\n    <tr><td>userType</td><td>String</td><td>Yes</td><td><tt>NORMAL</tt> or <tt>GUEST</tt> (case sensitive).</td></tr>\n    <tr><td>active</td><td>Boolean</td><td>Yes</td><td><tt>true</tt> or <tt>false</tt>.</td></tr>\n    <tr><td>preferredLanguage</td><td>String</td><td>No</td><td>One of es, da, de, el, en, fr, it, nl, pt, fi, cs, et, lv, lt, hu, mt, pl, sk, sl, bg, ro, tr, zh, nb, sv (not case sensitive). A locale made of such a language and a country, e.g. <tt>en-GB</tt>, is also accepted when it is a valid locale.</td></tr>\n    <tr><td>emails[]</td><td>List</td><td>Yes</td><td>Exactly one entry: <tt>type</tt> = <tt>WORK</tt> (required, send it exactly as <tt>WORK</tt>: a lower case value passes the validation but the email is not applied), <tt>value</tt> = valid email address (required), <tt>primary</tt> = boolean.</td></tr>\n    <tr><td>phoneNumbers[]</td><td>List</td><td>No</td><td>Each entry: <tt>type</tt> = <tt>MOBILE</tt>, <tt>HOME</tt> or <tt>WORK</tt> (required, case insensitive); <tt>value</tt> in international format, starting with '+' and a valid country code, e.g. <tt>+44-1234512345</tt> or <tt>+441234512345</tt> (required); <tt>primary</tt> = boolean. When a user is updated only one number per type is kept (the first one sent).</td></tr>\n    <tr><td>addresses[]</td><td>List</td><td>No</td><td>If sent, exactly one entry: <tt>type</tt> = <tt>HOME</tt> (required, case insensitive); <tt>streetAddress</tt>, <tt>postalCode</tt> and <tt>country</tt> are required; <tt>region</tt>, <tt>locality</tt> and <tt>formatted</tt> are optional. <tt>country</tt> is a 2 or 3 letter ISO country code (the response returns 2 letters in versions 2 and 3, and 3 letters in version 1).</td></tr>\n    <tr><td>groups[]</td><td>List</td><td>No</td><td>At most one traveler group: <tt>value</tt> = name of the traveler group as on the Egencia website (required), <tt>display</tt> optional. When no group is sent the default traveler group of the company is set. An unknown group name is rejected, except for companies that have the default traveler group fallback enabled, where the default group is set instead.</td></tr>\n    <tr><td>roles[]</td><td>List of objects</td><td>No</td><td>Each entry: <tt>value</tt> (required, case sensitive): <tt>SELF_BOOKER</tt>, <tt>APPROVER</tt>, <tt>ARRANGER</tt>, <tt>FLEXIBLE_ARRANGER</tt>, <tt>MANAGE_USERS</tt> or <tt>GUEST_MANAGER</tt>; <tt>display</tt> and <tt>primary</tt> (boolean) are optional. A role that is not valid for the company is rejected. <tt>APPROVER</tt> is not set through the roles: it is ignored, and rejected where the approver role is deprecated. In version 1 a role is an object, in versions 2 and 3 it is a plain string.</td></tr>\n    <tr><td colspan=\"4\"><b>Enterprise extension : urn:ietf:params:scim:schemas:extension:enterprise:2.0:User</b> (mandatory object, contains all the Egencia specific attributes)</td></tr>\n    <tr><td>organization</td><td>String</td><td>Yes</td><td>Egencia company (organization) id of the user.</td></tr>\n    <tr><td>employeeNumber</td><td>String</td><td>No</td><td>Employee number of the user.</td></tr>\n    <tr><td>dateOfBirth</td><td>String (date)</td><td>No</td><td><tt>YYYY-MM-DD</tt>, cannot be in the future.</td></tr>\n    <tr><td>userAuthenticationMode</td><td>String</td><td>Yes</td><td><tt>SSO</tt> or <tt>LOGIN</tt> (case sensitive).</td></tr>\n    <tr><td>singleSignOnId</td><td>String</td><td>No</td><td>With <tt>SSO</tt> it defaults to the <tt>userName</tt> when omitted. With <tt>LOGIN</tt> it must be equal to the <tt>userName</tt> when sent.</td></tr>\n    <tr><td>approvers.level1Approvers[]<br/>approvers.level2Approvers[]<br/>approvers.delegateApprovers[]</td><td>List of String</td><td>No</td><td>Each entry is the username (email) or the Egencia id of an existing user. When <tt>approvers</tt> is sent it must contain at least <tt>level1Approvers</tt> or <tt>delegateApprovers</tt>, <tt>level2Approvers</tt> alone is rejected. Note: in version 1 an approver is a plain string, in versions 2 and 3 it is an object.</td></tr>\n    <tr><td>serviceLevelIds[]</td><td>List of String</td><td>No</td><td>Service level ids of the user.</td></tr>\n    <tr><td>arrangerGroups[]</td><td>List of String</td><td>No</td><td>Arranger groups of the company. The user must have an arranger role (<tt>ARRANGER</tt> or <tt>FLEXIBLE_ARRANGER</tt>).</td></tr>\n    <tr><td>arrangers[]</td><td>List</td><td>No</td><td>Existing users: <tt>id</tt> (numeric Egencia id, without leading zero) or <tt>userName</tt>. Use either ids or usernames in one request: when any entry has an <tt>id</tt>, the entries that only have a <tt>userName</tt> are ignored.</td></tr>\n    <tr><td>customDataFields[]</td><td>List</td><td>No</td><td><tt>name</tt> (required): name of a custom data field defined for the company. <tt>value</tt> (required): for a LIST type field it must be one of the values defined on the Egencia website, for a free text field any text of at most 50 characters (a longer value is rejected). If the same name is sent more than once, the last one is used.</td></tr>\n    <tr><td>documents[]</td><td>List</td><td>No</td><td><tt>type</tt> (required): <tt>PAS</tt>, <tt>ID</tt>, <tt>DL</tt>, <tt>HR_PERMIT</tt>, <tt>TWC_PERMIT</tt>, <tt>EEP_HM</tt>, <tt>TP_TW</tt>, <tt>ID_ARMY</tt>, <tt>PRI_FOREIGNER</tt>, <tt>ID_DIPLOMATIC</tt>, <tt>ID_BIRTH</tt>, <tt>DOM_TC</tt>. PAS, ID and DL are always accepted, the other types only where the point of sale supports them. Only one document per type is allowed, except for PAS. <tt>value</tt> (required). <tt>issueDate</tt> and <tt>expirationDate</tt> (<tt>YYYY-MM-DD</tt>): the expiration date must be in the future and after the issue date. <tt>issueLocation</tt> (city). <tt>issueCountry</tt>: 2 or 3 letter ISO country code.</td></tr>\n    <tr><td>loyaltyPrograms[]</td><td>List</td><td>No</td><td><tt>lob</tt> (required): <tt>AIR</tt>, <tt>HOTEL</tt>, <tt>RAIL</tt>, <tt>CAR</tt>. <tt>name</tt> (required): name of a loyalty program defined for the company, unknown names are rejected; for AIR, RAIL and CAR the <tt>lob</tt> must match the line of business of the program. <tt>issuingSupplierCode</tt> (required). <tt>value</tt>: membership id of 1 to 30 characters, required except for UK RAIL. <tt>type</tt>: optional, when omitted it is taken from the program (AIR, RAIL, CAR), when sent it must match the type of the program. <tt>code</tt> (optional). <tt>class</tt> (RAIL only): <tt>FIRST</tt> or <tt>SECOND</tt>. <tt>validFrom</tt> and <tt>validTo</tt> (<tt>YYYY-MM-DD</tt>): <tt>validTo</tt> must be in the future and after <tt>validFrom</tt>.</td></tr>\n    <tr><td>preferences[]</td><td>List</td><td>No</td><td><tt>lob</tt> (required): <tt>AIR</tt>, <tt>HOTEL</tt>, <tt>RAIL</tt> or <tt>CAR</tt>. All values are sent as text. AIR: <tt>preferredDepartureAirport</tt> (IATA code), <tt>seatType</tt> and <tt>mealType</tt> (values configured for the point of sale). RAIL: <tt>seatType</tt> and <tt>seatRoom</tt> (values configured for the point of sale), <tt>seatDirection</tt>, <tt>seatSolo</tt>, <tt>seatFreeOfCharge</tt> (<tt>0</tt> or <tt>1</tt>). HOTEL: <tt>smoking</tt> (<tt>0</tt>, <tt>1</tt> or <tt>2</tt>). All lines of business: <tt>specialRequest</tt> (1 to 80 characters). An empty list does not delete the existing preferences.</td></tr>\n    <tr><td>settings.notifications.reservationEmail</td><td>String</td><td>No</td><td><tt>NORMAL</tt> (default) or <tt>NONE_EXCEPT_MY_ETICKETS</tt>. <tt>ALL</tt> is not supported and is rejected.</td></tr>\n    <tr><td>settings.notifications.outOfPolicyPurchaseEmails[]</td><td>List of String</td><td>No</td><td>Valid email addresses to notify on out of policy purchases.</td></tr>\n    </tbody>\n</table>\n</div>\n","operationId":"updateUser_2","parameters":[{"in":"path","name":"userId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/scim+json":{"examples":{"Request with all the supported attributes":{"description":"Request with all the supported attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"externalId":"externalSystemIdentifier","userName":"test@example.com","displayName":"Test User","title":"Mr","userType":"NORMAL","name":{"familyName":"User","formatted":"","givenName":"Test","middleName":""},"preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"userAuthenticationMode":"SSO","singleSignOnId":"test@example.com","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"USA","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"employeeNumber":"employeeNumberValue","loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"organization":"egenciaCompanyId","preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"Window","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"Window"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"promoMail":true,"serviceLevelIds":["12345"],"approvers":{"level1Approvers":["45678"],"delegateApprovers":["testapprover"]},"arrangers":[{"id":"56789"}],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}}},"emails":[{"primary":true,"type":"work","value":"test@example.com"}],"phoneNumbers":[{"primary":true,"type":"work","value":"+44-1234512345"}],"addresses":[{"country":"GB","formatted":"address line 1, cityname, state, GB, XXXXXX","locality":"city name","postalCode":"XXXXX","region":"region or state","streetAddress":"address line 1","type":"work"}],"groups":[{"display":"displayName","value":"travelerGroup"}],"roles":[{"display":"displayName","primary":true,"value":"userRole"}]}},"Request with basic attributes":{"description":"Request with basic attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"api.sample@egencia.com","title":"1","userType":"NORMAL","name":{"familyName":"Test","givenName":"Sample","middleName":"Api"},"active":true,"emails":[{"primary":true,"type":"work","value":"api.sample@egencia.com"}],"groups":[{"value":"General"}],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"12345","dateOfBirth":"1988-01-01","userAuthenticationMode":"SSO","singleSignOnId":"api.sample@egencia.com","customDataFields":[{"name":"Department code","value":"Legal entity value"},{"name":"Reporting field 2","value":"custom value"}]}}},"Request with email settings":{"description":"Request with email settings","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"api.sample@egencia.com","title":"1","userType":"NORMAL","name":{"familyName":"Test","givenName":"Sample","middleName":"Api"},"active":true,"emails":[{"primary":true,"type":"work","value":"api.sample@egencia.com"}],"groups":[{"value":"General"}],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"12345","dateOfBirth":"1988-01-01","userAuthenticationMode":"SSO","singleSignOnId":"api.sample@egencia.com","customDataFields":[{"name":"Department code","value":"Legal entity value"},{"name":"Reporting field 2","value":"custom value"}],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}}}}},"Request with phone number":{"description":"Request with phone number","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"api.sample@egencia.com","title":"1","userType":"NORMAL","name":{"familyName":"Test","givenName":"Sample","middleName":"Api"},"active":true,"emails":[{"primary":true,"type":"work","value":"api.sample@egencia.com"}],"phoneNumbers":[{"primary":true,"type":"MOBILE","value":"+441234512345"},{"type":"WORK","value":"+441234512346"}],"groups":[{"value":"General"}],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"12345","dateOfBirth":"1988-01-01","userAuthenticationMode":"SSO","singleSignOnId":"api.sample@egencia.com","customDataFields":[{"name":"Department code","value":"Legal entity value"},{"name":"Reporting field 2","value":"custom value"}]}}},"Request with preferences":{"description":"Request with preferences","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"api.sample@egencia.com","title":"1","userType":"NORMAL","name":{"familyName":"Test","givenName":"Sample","middleName":"Api"},"active":true,"emails":[{"primary":true,"type":"work","value":"api.sample@egencia.com"}],"groups":[{"value":"General"}],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"12345","dateOfBirth":"1988-01-01","userAuthenticationMode":"SSO","singleSignOnId":"api.sample@egencia.com","customDataFields":[{"name":"Department code","value":"Legal entity value"},{"name":"Reporting field 2","value":"custom value"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}]}}},"Request with preferences and documents":{"description":"Request with preferences and documents","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"api.sample@egencia.com","title":"1","userType":"NORMAL","name":{"familyName":"Test","givenName":"Sample","middleName":"Api"},"active":true,"emails":[{"primary":true,"type":"work","value":"api.sample@egencia.com"}],"groups":[{"value":"General"}],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"12345","dateOfBirth":"1988-01-01","userAuthenticationMode":"SSO","singleSignOnId":"api.sample@egencia.com","customDataFields":[{"name":"Department code","value":"Legal entity value"},{"name":"Reporting field 2","value":"custom value"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"Window","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"Window"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"documents":[{"expirationDate":"2030-10-10","issueCountry":"USA","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}]}}},"Request with preferences and loyalty program":{"description":"Request with preferences and loyalty program","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"api.sample@egencia.com","title":"1","userType":"NORMAL","name":{"familyName":"Test","givenName":"Sample","middleName":"Api"},"active":true,"emails":[{"primary":true,"type":"work","value":"api.sample@egencia.com"}],"groups":[{"value":"General"}],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"12345","dateOfBirth":"1988-01-01","userAuthenticationMode":"SSO","singleSignOnId":"api.sample@egencia.com","customDataFields":[{"name":"Department code","value":"Legal entity value"},{"name":"Reporting field 2","value":"custom value"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"Window"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}]}}},"Request with roles and approvers":{"description":"Request with roles and approvers","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"api.sample@egencia.com","title":"1","userType":"NORMAL","name":{"familyName":"Test","givenName":"Sample","middleName":"Api"},"active":true,"emails":[{"primary":true,"type":"work","value":"api.sample@egencia.com"}],"groups":[{"value":"General"}],"roles":[{"display":"Self Booker","value":"SELF_BOOKER"},{"display":"Arranger","value":"ARRANGER"}],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"organization":"12345","dateOfBirth":"1988-01-01","userAuthenticationMode":"SSO","singleSignOnId":"api.sample@egencia.com","customDataFields":[{"name":"Department code","value":"Legal entity value"},{"name":"Reporting field 2","value":"custom value"}],"approvers":{"level1Approvers":["approverone@egencia.com"],"level2Approvers":["approvertwo@egencia.com"]}}}}},"schema":{"$ref":"#/components/schemas/UserSchema"}}},"description":"User Schema to be updated","required":true},"responses":{"200":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"externalId":"externalSystemIdentifier","userName":"test@example.com","displayName":"Test User","title":"Mr","userType":"NORMAL","name":{"familyName":"User","formatted":"","givenName":"Test","middleName":""},"preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"userAuthenticationMode":"SSO","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"USA","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"employeeNumber":"employeeNumberValue","loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"organization":"egenciaCompanyId","preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"promoMail":true,"serviceLevelIds":["12345"],"approvers":{"level1Approvers":["45678"],"delegateApprovers":["testapprover"]},"arrangers":[{"id":"56789"}]},"emails":[{"primary":true,"type":"WORK","value":"test@example.com"}],"phoneNumbers":[{"primary":true,"type":"WORK","value":"+44-1234512345"}],"addresses":[{"country":"GB","formatted":"address line 1, cityname, state, GB, XXXXXX","locality":"city name","postalCode":"XXXXX","region":"region or state","streetAddress":"address line 1","type":"WORK"}],"groups":[{"display":"displayName","value":"travelerGroup"}],"roles":[{"display":"Self Booker","primary":true,"value":"Self Booker"}]},"schema":{"$ref":"#/components/schemas/UserSchema"}}},"description":"<b>Updated</b>."},"400":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid parameters","status":"400"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Bad Request</b> : Invalid input or request"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Updates an existing user in the system with the requested information.","tags":["SCIM User Sync V1"]}},"/scim/v2/Users":{"get":{"description":"<p>Search/retrieve users based on the filter string parameter. Please be cautious if you are using organization token, search API will only return users of parent company if company is not provided in the filter criteria.</p>\n<div>\n<p>Results are returned in ascending order of userIds.</p>\n<p><b>Note: We only support search by email, name, userName and singleSignOnId. Since filter attribute contains special characters like square brackets, clients need to encode the filter attribute value.</b></p>\n<pre>\n    <code>\n        For search by email with value as test@egencia.com, you need to pass encoded value in filter which will be :\n        filter = emails%5Bvalue%20eq%20%22test%40egencia.com%22%5D\n        which is the encoded value for filter = emails[value eq \"test@egencia.com\"]\n    </code>\n</pre>\n","operationId":"getUsers_1","parameters":[{"description":"SCIM compliant filter attribute to take query string. If you are using any external tool to make the API call, please make sure to encode the filter value.","examples":{"Search Users By Company":{"description":"Replace {companyId} by the egencia company Id you want to search.","value":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User[companyId eq \"{companyId}\"]"},"Search Users By Email":{"description":"Replace {email} by the email you want to search.","value":"emails[value eq \"{email}\"]"},"Search Users By Email and Company":{"description":"Replace {email} by the email and {companyId} by the egencia company Id you want to search.","value":"emails[value eq \"{email}\"] and urn:ietf:params:scim:schemas:extension:egencia:2.0:User[companyId eq \"{companyId}\"]"},"Search Users By Name":{"description":"Replace {givenName} by the first name of the user and {familyName} by the last name of the user you want to search.","value":"name[givenName eq \"{givenName}\" and familyName eq \"{familyName}\"]"},"Search Users By Name and Company":{"description":"Replace {givenName} by the first name of the user, {familyName} by the last name of the user and {companyId} by the egencia company Id you want to search.","value":"name[givenName eq \"{givenName}\" and familyName eq \"{familyName}\"] and urn:ietf:params:scim:schemas:extension:egencia:2.0:User[companyId eq \"{companyId}\"]"},"Search Users By No Filter":{"description":"No need to pass anything in filter."},"Search Users By Single Sign On Id":{"description":"Replace {singleSignOnId} by the single sing on Id you want to search.","value":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:singleSignOnId eq \"{singleSignOnId}\""},"Search Users By Single Sign On Id and Company":{"description":"Replace {singleSignOnId} by the single sign on Id and {companyId} by the egencia company Id you want to search.","value":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:singleSignOnId eq \"{singleSignOnId}\" and urn:ietf:params:scim:schemas:extension:egencia:2.0:User:companyId eq \"{companyId}\""},"Search Users By Username":{"description":"Replace {userName} by the username you want to search.","value":"userName eq \"{userName}\""},"Search Users By Username and Company":{"description":"Replace {userName} by the username and {companyId} by the egencia company Id you want to search.","value":"userName eq \"{userName}\" and urn:ietf:params:scim:schemas:extension:egencia:2.0:User[companyId eq \"{companyId}\"]"}},"in":"query","name":"filter","required":false,"schema":{"type":"string"}},{"description":"1-based start index","in":"query","name":"startIndex","required":false,"schema":{"type":"integer","format":"int32","default":1,"exclusiveMinimum":0}},{"description":"Number of resources to be returned. Maximum supported value is 100","in":"query","name":"count","required":false,"schema":{"type":"integer","format":"int32","default":20,"exclusiveMinimum":0,"maximum":100}}],"responses":{"200":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:ListResponse"],"itemsPerPage":1,"startIndex":1,"totalResults":1,"Resources":[{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"meta":{"created":"2024-07-17T00:00:00.000Z","lastModified":"2024-07-17T00:00:00.000Z","location":"{baseUrl}/openconnect/api/scim/v2/Users/12345"},"id":"egenciaUniqueIdentifier","externalId":"externalSystemIdentifier","userName":"test@example.com","name":{"familyName":"User","formatted":"","givenName":"Test","middleName":"","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"id":"4567"}],"level2Approvers":[{"id":"4567"}],"delegateApprovers":[{"id":"123"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"5678"},{"userName":"testarranger1"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"dateOfBirth":"1989-01-01","documents":[{"expirationDate":"2031-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2021-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special requests"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special requests"},{"lob":"CAR","specialRequest":"Any special requests"}],"serviceLevelIds":["12345"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"singleSignOnIdValue","userAuthenticationMode":"SSO"},"emails":[{"primary":true,"type":"WORK","value":"test@abc.com"}],"phoneNumbers":[{"primary":true,"type":"WORK","value":"+44-1234512345"}],"addresses":[{"country":"GB","formatted":"address line 1, cityname, state, GB, 123212","locality":"city name","postalCode":"123212","region":"region or state","streetAddress":"address line 1","type":"WORK"}],"groups":[{"display":"displayName","value":"travelerGroup"}],"roles":["SELF_BOOKER"]}]},"schema":{"$ref":"#/components/schemas/ListResponseV2"}}},"description":"<b>Search api success</b>."},"400":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid parameters","status":"400"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Bad Request</b> : Invalid input or request"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Return list of users based on the filter condition.","tags":["SCIM User Sync V2"]},"post":{"operationId":"createUser_1","requestBody":{"content":{"application/json":{"examples":{"Create user with basic and extension attributes":{"description":"Create user with basic and extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"}}},"Create user with basic attributes":{"description":"Create user with basic attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"]}},"Create user with basic, extension and egencia extension attributes":{"description":"Create user with basic, extension and egencia extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"userName":"approverone@egencia.com"}],"level2Approvers":[{"userName":"approvertwo@egencia.com"}],"delegateApprovers":[{"userName":"approver@egencia.com"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Cdf Name","value":"Cdf Value"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["123"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}}},"Create user with minimal attributes":{"description":"Create user with minimal attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":""},"userType":"NORMAL","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}]}}},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}},"application/scim+json":{"examples":{"Create user with basic and extension attributes":{"description":"Create user with basic and extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"}}},"Create user with basic attributes":{"description":"Create user with basic attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"]}},"Create user with basic, extension and egencia extension attributes":{"description":"Create user with basic, extension and egencia extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"userName":"approverone@egencia.com"}],"level2Approvers":[{"userName":"approvertwo@egencia.com"}],"delegateApprovers":[{"userName":"approver@egencia.com"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Cdf Name","value":"Cdf Value"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["123"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}}},"Create user with minimal attributes":{"description":"Create user with minimal attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":""},"userType":"NORMAL","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}]}}},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}}},"description":"User Schema to be created","required":true},"responses":{"201":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"meta":{"created":"2024-07-17T00:00:00.000Z","lastModified":"2024-07-17T00:00:00.000Z","location":"{baseUrl}/openconnect/api/scim/v2/Users/egenciaUniqueIdentifier"},"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"userName":"approverone@egencia.com"}],"level2Approvers":[{"userName":"approvertwo@egencia.com"}],"delegateApprovers":[{"userName":"approver@egencia.com"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Cdf Name","value":"Cdf Value"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["123"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}}},"description":"<b>Created</b>."},"400":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid parameters","status":"400"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Bad Request</b> : Invalid input or request"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"409":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"409","data":[{"attribute":"userName","message":"Username already exists."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Conflict</b> : User already exists."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Create a new user in the system with the requested information.","tags":["SCIM User Sync V2"]}},"/scim/v2/Users/{userId}":{"delete":{"description":"<p>Delete the user with the given user Id in the path</p>\n<p><b>Request Parameters</b></p>\n<div>\n    <table>\n        <thead>\n        <tr>\n            <th>\n                Attribute\n            </th>\n            <th>\n                Type\n            </th>\n            <th>\n                Description\n            </th>\n        </tr>\n        </thead>\n        <tbody>\n        <tr>\n            <td>userId</td>\n            <td>String</td>\n            <td>User Id of the user to be deleted</td>\n        </tr>\n        </tbody>\n    </table>\n</div>\n<p><b>Examples:</b></p>\n<p>Replace {baseUrl} with the actual value of Egencia APIs host. Please refer Base Urls section under API Overview page of Egencia Developer Center.</p>\n<p>Deleting a user with user Id : test_user_id</p>\n<pre>\n    <code>\n        DELETE {baseUrl}/openconnect/api/scim/v2/Users/test_user_id\n        <b>Response:</b>\n            -> 204 No Content\n   </code>\n</pre>\n","operationId":"deleteUserUser_1","parameters":[{"description":"User Id of the user to be deleted","in":"path","name":"userId","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"<b>No Content</b>."},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"404":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"User not found, you are trying to access an invalid or non existent user.","status":"404","data":[{"attribute":"id","message":"Requested user identifier is invalid."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Not Found</b> : Resource Not Found."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process the request due to missing mandatory or invalid parameters.","status":"422","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.documents","message":"One or more invalid user documents are supplied."},{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.preferences","message":"One or more invalid user preferences are supplied."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Delete the user in the system with the given user Id.","tags":["SCIM User Sync V2"]},"get":{"operationId":"getUser_1","parameters":[{"description":"Id of the user to be retrieved","in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"in":"query","name":"attributes","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"meta":{"created":"2024-07-17T00:00:00.000Z","lastModified":"2024-07-17T00:00:00.000Z","location":"{baseUrl}/openconnect/api/scim/v2/Users/12345"},"id":"egenciaUniqueIdentifier","externalId":"externalSystemIdentifier","userName":"test@example.com","name":{"familyName":"User","formatted":"","givenName":"Test","middleName":"","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"employeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"id":"45678"}],"level2Approvers":[{"id":"45678"}],"delegateApprovers":[{"id":"123"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"},{"userName":"testarranger"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["12345"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"singleSignOnIdValue","userAuthenticationMode":"SSO"},"emails":[{"primary":true,"type":"WORK","value":"test@example.com"}],"phoneNumbers":[{"primary":true,"type":"WORK","value":"+44-1234512345"}],"addresses":[{"country":"GB","formatted":"address line 1, cityname, state, GB, 123212","locality":"city name","postalCode":"123212","region":"region or state","streetAddress":"address line 1","type":"WORK"}],"groups":[{"display":"displayName","value":"travelerGroup"}],"roles":["SELF_BOOKER"]},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}}},"description":"<b>Found</b>."},"400":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid parameters","status":"400"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Bad Request</b> : Invalid input or request"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"404":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"User not found, you are trying to access an invalid or non existent user.","status":"404","data":[{"attribute":"id","message":"Requested user identifier is invalid."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Not Found</b> : Resource Not Found."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Retrieves the user details for a requested user identifier.","tags":["SCIM User Sync V2"]},"patch":{"description":"<p><b>PATCH updates only the attributes named in the operations, everything else is left untouched.</b> Use PATCH (instead of PUT) when you do not want to send the complete user profile.</p>\n<p>The request body is a SCIM PatchOp message: the <tt>schemas</tt> array is <tt>[\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"]</tt> and <tt>Operations</tt> is an ordered list of operations which are applied one after the other.</p>\n<div>\n<table>\n    <thead>\n    <tr><th>Attribute</th><th>Type</th><th>Description</th></tr>\n    </thead>\n    <tbody>\n    <tr><td>op</td><td>String (mandatory)</td><td><tt>add</tt>, <tt>replace</tt> or <tt>remove</tt> (case insensitive).</td></tr>\n    <tr><td>path</td><td>String</td><td>The attribute to change. Optional for <tt>add</tt> and <tt>replace</tt> (when omitted, <tt>value</tt> is an object holding the attributes to change). Mandatory for <tt>remove</tt>.</td></tr>\n    <tr><td>value</td><td>Any</td><td>The new value. Mandatory for <tt>add</tt> and <tt>replace</tt>, not used for <tt>remove</tt>.</td></tr>\n    </tbody>\n</table>\n</div>\n<p><b>Operations</b></p>\n<div>\n<table>\n    <thead>\n    <tr><th>op</th><th>Single-valued attribute (e.g. <tt>active</tt>, <tt>name.givenName</tt>)</th><th>List attribute (e.g. <tt>loyaltyPrograms</tt>, <tt>documents</tt>)</th></tr>\n    </thead>\n    <tbody>\n    <tr><td>add</td><td>Sets the value (overwrites an existing one). For an attribute made of sub-attributes (e.g. <tt>name</tt>, <tt>approvers</tt>, <tt>settings</tt>) only the sub-attributes present in <tt>value</tt> are set, the others are kept.</td><td><b>Appends</b> the entries when <tt>value</tt> is a JSON array, existing entries are kept (an entry identical to an existing one is not added twice). Always send an array: an object <tt>value</tt> does not append.</td></tr>\n    <tr><td>replace</td><td>Sets the value. For an attribute made of sub-attributes only the sub-attributes present in <tt>value</tt> are changed, the others are kept.</td><td>Replaces the <b>whole list</b> with the given array when the path has no filter. With a filter in the path, e.g. <tt>loyaltyPrograms[lob eq \"AIR\"]</tt>, <tt>value</tt> is merged into each matching entry: the attributes you send are changed and the ones you leave out keep their current value. An empty array as <tt>value</tt> removes the matching entries.</td></tr>\n    <tr><td>remove</td><td>Clears the value.</td><td>Removes the <b>whole list</b> when the path has no filter. With a filter in the path, only the matching entries are removed.</td></tr>\n    </tbody>\n</table>\n</div>\n<p><b>Path syntax</b></p>\n<p>&bull; Core attributes are addressed by name, e.g. <tt>active</tt>, <tt>name.givenName</tt>, <tt>emails</tt>, <tt>roles</tt>.</p>\n<p>&bull; Extension attributes are prefixed by the extension URN and a colon, e.g. <tt>urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms</tt>.\n    Nested attributes use a dot, e.g. <tt>urn:ietf:params:scim:schemas:extension:egencia:2.0:User:approvers.level1Approvers</tt>.</p>\n<p>&bull; Entries of a list can be selected with a filter in square brackets, e.g. <tt>urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms[lob eq \"AIR\" and name eq \"Delta\"]</tt>.\n    A sub-attribute of the matched entry can be addressed after the filter, e.g. <tt>emails[type eq \"WORK\"].value</tt>.</p>\n<p>&bull; Without a <tt>path</tt>, <tt>value</tt> is an object using the same structure as the user resource, e.g. <tt>{\"active\": false}</tt> or <tt>{\"urn:ietf:params:scim:schemas:extension:egencia:2.0:User\": {\"dateOfBirth\": \"1988-01-26\"}}</tt>.</p>\n<p>&bull; An extension attribute addressed with a wrong or missing extension urn is not applied, and unknown properties in the request are ignored without an error.</p>\n<p><b>Tips for lists such as loyaltyPrograms</b></p>\n<p>&bull; To add a loyalty program without touching the existing ones, use <tt>add</tt> on the <tt>loyaltyPrograms</tt> path.</p>\n<p>&bull; To change one loyalty program, use <tt>replace</tt> with a filter that identifies exactly that entry. A <tt>replace</tt> on <tt>loyaltyPrograms</tt> without a filter replaces all of them. The attributes left out of <tt>value</tt> keep their current value.</p>\n<p>&bull; To delete one loyalty program, use <tt>remove</tt> with a filter. A <tt>remove</tt> on <tt>loyaltyPrograms</tt> without a filter deletes all of them.</p>\n<p>&bull; After each operation the patched user is checked against the attribute rules of the reference below: a rule the user already broke before the operation is ignored, a new violation rejects the request, so every entry you add still needs its mandatory attributes. The business rules (for example custom data fields, loyalty program names, roles and documents) are checked once, on the final user after all the operations.</p>\n<p>&bull; Removing preferences (<tt>remove</tt> on <tt>preferences</tt>) has no effect: the existing preferences are kept.</p>\n<p><b>Attribute reference</b></p>\n<p>Attributes of the user resource, with their exact JSON syntax. Attributes of the Egencia extension must be sent inside the\n<tt>urn:ietf:params:scim:schemas:extension:egencia:2.0:User</tt> object (for PATCH with a <tt>path</tt>, prefix the path with this URN and a colon).\nDate values use the ISO 8601 format <tt>YYYY-MM-DD</tt>. Please refer the Enumerations section for the full list of values supported.</p>\n<div>\n<table>\n    <thead>\n    <tr><th>Attribute</th><th>Type</th><th>Required</th><th>Allowed values / format / limits</th></tr>\n    </thead>\n    <tbody>\n    <tr><td>id</td><td>String</td><td>Read-only</td><td>Egencia unique id of the user. Taken from the <tt>userId</tt> in the URL path. If it is sent in the body it must be a positive whole number, otherwise the request is rejected.</td></tr>\n    <tr><td>externalId</td><td>String</td><td>No</td><td>Identifier of the user in the provisioning client.</td></tr>\n    <tr><td>userName</td><td>String</td><td>Yes, unless <tt>userType</tt> is <tt>GUEST</tt></td><td>Valid email address, maximum 60 characters.</td></tr>\n    <tr><td>name.givenName</td><td>String</td><td>Yes</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.familyName</td><td>String</td><td>Yes</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.middleName</td><td>String</td><td>No</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.formatted</td><td>String</td><td>No</td><td>Formatted full name.</td></tr>\n    <tr><td>name.honorificPrefix</td><td>String</td><td>Conditional</td><td>The title label (e.g. Mr., Ms.), see the Title enumeration. The label must match exactly (case sensitive), an unknown label counts as a missing title. When a user of a non-US point of sale is updated (PUT) it is required, a missing value is rejected; when the user is created a default title is applied. For a user of the US point of sale it cannot be changed, unless title support is enabled for the company.</td></tr>\n    <tr><td>userType</td><td>String</td><td>No</td><td>Defaults to <tt>NORMAL</tt>. <tt>NORMAL</tt> or <tt>GUEST</tt> (case sensitive).</td></tr>\n    <tr><td>active</td><td>Boolean</td><td>Yes</td><td><tt>true</tt> or <tt>false</tt>.</td></tr>\n    <tr><td>preferredLanguage</td><td>String</td><td>No</td><td>One of es, da, de, el, en, fr, it, nl, pt, fi, cs, et, lv, lt, hu, mt, pl, sk, sl, bg, ro, tr, zh, nb, sv (not case sensitive). A locale made of such a language and a country, e.g. <tt>en-GB</tt>, is also accepted when it is a valid locale.</td></tr>\n    <tr><td>emails[]</td><td>List</td><td>Yes</td><td>Exactly one entry: <tt>type</tt> = <tt>WORK</tt> (required, send it exactly as <tt>WORK</tt>: a lower case value passes the validation but the email is not applied), <tt>value</tt> = valid email address (required), <tt>primary</tt> = boolean.</td></tr>\n    <tr><td>phoneNumbers[]</td><td>List</td><td>No</td><td>Each entry: <tt>type</tt> = <tt>MOBILE</tt>, <tt>HOME</tt> or <tt>WORK</tt> (required, case insensitive); <tt>value</tt> in international format, starting with '+' and a valid country code, e.g. <tt>+44-1234512345</tt> or <tt>+441234512345</tt> (required); <tt>primary</tt> = boolean. When a user is updated only one number per type is kept (the first one sent).</td></tr>\n    <tr><td>addresses[]</td><td>List</td><td>No</td><td>If sent, exactly one entry: <tt>type</tt> = <tt>HOME</tt> (required, case insensitive); <tt>streetAddress</tt>, <tt>postalCode</tt> and <tt>country</tt> are required; <tt>region</tt>, <tt>locality</tt> and <tt>formatted</tt> are optional. <tt>country</tt> is a 2 or 3 letter ISO country code (the response returns 2 letters in versions 2 and 3, and 3 letters in version 1).</td></tr>\n    <tr><td>groups[]</td><td>List</td><td>No</td><td>At most one traveler group: <tt>value</tt> = name of the traveler group as on the Egencia website (required), <tt>display</tt> optional. When no group is sent the default traveler group of the company is set. An unknown group name is rejected, except for companies that have the default traveler group fallback enabled, where the default group is set instead.</td></tr>\n    <tr><td>roles[]</td><td>List of String</td><td>No</td><td>Roles available for the company, e.g. <tt>SELF_BOOKER</tt>, <tt>ARRANGER</tt>, <tt>FLEXIBLE_ARRANGER</tt> (only where enabled for the company), <tt>MANAGE_USERS</tt>, <tt>GUEST_MANAGER</tt>. A role that is not valid for the company is rejected. <tt>APPROVER</tt> is not set through the roles: it is ignored, and rejected where the approver role is deprecated.</td></tr>\n    <tr><td colspan=\"4\"><b>Enterprise extension : urn:ietf:params:scim:schemas:extension:enterprise:2.0:User</b></td></tr>\n    <tr><td>employeeNumber</td><td>String</td><td>No</td><td>Employee number of the user.</td></tr>\n    <tr><td colspan=\"4\"><b>Egencia extension : urn:ietf:params:scim:schemas:extension:egencia:2.0:User</b></td></tr>\n    <tr><td>companyId</td><td>String</td><td>No</td><td>Egencia company (organization) id of the user. When omitted in a PUT, the company of the access token is used.</td></tr>\n    <tr><td>dateOfBirth</td><td>String (date)</td><td>No</td><td><tt>YYYY-MM-DD</tt>, cannot be in the future.</td></tr>\n    <tr><td>userAuthenticationMode</td><td>String</td><td>No</td><td><tt>SSO</tt> or <tt>LOGIN</tt> (case sensitive), defaults to <tt>LOGIN</tt>.</td></tr>\n    <tr><td>singleSignOnId</td><td>String</td><td>No</td><td>With <tt>SSO</tt> it defaults to the <tt>userName</tt> when omitted. With <tt>LOGIN</tt> it must be equal to the <tt>userName</tt> when sent.</td></tr>\n    <tr><td>approvers.level1Approvers[]<br/>approvers.level2Approvers[]<br/>approvers.delegateApprovers[]</td><td>List</td><td>No</td><td>Each entry identifies an existing user by <tt>id</tt>, <tt>userName</tt> or <tt>externalId</tt>. When <tt>approvers</tt> is sent it must contain at least <tt>level1Approvers</tt> or <tt>delegateApprovers</tt>, <tt>level2Approvers</tt> alone is rejected.</td></tr>\n    <tr><td>serviceLevelIds[]</td><td>List of String</td><td>No</td><td>Service level ids of the user.</td></tr>\n    <tr><td>arrangerGroups[]</td><td>List of String</td><td>No</td><td>Arranger groups of the company. The user must have an arranger role (<tt>ARRANGER</tt> or <tt>FLEXIBLE_ARRANGER</tt>).</td></tr>\n    <tr><td>arrangers[]</td><td>List</td><td>No</td><td>Existing users: <tt>id</tt> (numeric Egencia id, without leading zero) or <tt>userName</tt>. Use either ids or usernames in one request: when any entry has an <tt>id</tt>, the entries that only have a <tt>userName</tt> are ignored.</td></tr>\n    <tr><td>customDataFields[]</td><td>List</td><td>No</td><td><tt>name</tt> (required): name of a custom data field defined for the company. <tt>value</tt> (required): for a LIST type field it must be one of the values defined on the Egencia website, for a free text field any text of at most 50 characters (a longer value is rejected). If the same name is sent more than once, the last one is used.</td></tr>\n    <tr><td>documents[]</td><td>List</td><td>No</td><td><tt>type</tt> (required): <tt>PAS</tt>, <tt>ID</tt>, <tt>DL</tt>, <tt>HR_PERMIT</tt>, <tt>TWC_PERMIT</tt>, <tt>EEP_HM</tt>, <tt>TP_TW</tt>, <tt>ID_ARMY</tt>, <tt>PRI_FOREIGNER</tt>, <tt>ID_DIPLOMATIC</tt>, <tt>ID_BIRTH</tt>, <tt>DOM_TC</tt>. PAS, ID and DL are always accepted, the other types only where the point of sale supports them. Only one document per type is allowed, except for PAS. <tt>value</tt> (required). <tt>issueDate</tt> and <tt>expirationDate</tt> (<tt>YYYY-MM-DD</tt>): the expiration date must be in the future and after the issue date. <tt>issueLocation</tt> (city). <tt>issueCountry</tt>: 2 or 3 letter ISO country code.</td></tr>\n    <tr><td>loyaltyPrograms[]</td><td>List</td><td>No</td><td><tt>lob</tt> (required): <tt>AIR</tt>, <tt>HOTEL</tt>, <tt>RAIL</tt>, <tt>CAR</tt>. <tt>name</tt> (required): name of a loyalty program defined for the company, unknown names are rejected; for AIR, RAIL and CAR the <tt>lob</tt> must match the line of business of the program. <tt>issuingSupplierCode</tt> (required). <tt>value</tt>: membership id of 1 to 30 characters, required except for UK RAIL. <tt>type</tt>: optional, when omitted it is taken from the program (AIR, RAIL, CAR), when sent it must match the type of the program. <tt>code</tt> (optional). <tt>class</tt> (RAIL only): <tt>FIRST</tt> or <tt>SECOND</tt>. <tt>validFrom</tt> and <tt>validTo</tt> (<tt>YYYY-MM-DD</tt>): <tt>validTo</tt> must be in the future and after <tt>validFrom</tt>.</td></tr>\n    <tr><td>preferences[]</td><td>List</td><td>No</td><td><tt>lob</tt> (required): <tt>AIR</tt>, <tt>HOTEL</tt>, <tt>RAIL</tt> or <tt>CAR</tt>. All values are sent as text. AIR: <tt>preferredDepartureAirport</tt> (IATA code), <tt>seatType</tt> and <tt>mealType</tt> (values configured for the point of sale). RAIL: <tt>seatType</tt> and <tt>seatRoom</tt> (values configured for the point of sale), <tt>seatDirection</tt>, <tt>seatSolo</tt>, <tt>seatFreeOfCharge</tt> (<tt>0</tt> or <tt>1</tt>). HOTEL: <tt>smoking</tt> (<tt>0</tt>, <tt>1</tt> or <tt>2</tt>). All lines of business: <tt>specialRequest</tt> (1 to 80 characters). An empty list does not delete the existing preferences.</td></tr>\n    <tr><td>settings.notifications.reservationEmail</td><td>String</td><td>No</td><td><tt>NORMAL</tt> (default) or <tt>NONE_EXCEPT_MY_ETICKETS</tt>. <tt>ALL</tt> is not supported and is rejected.</td></tr>\n    <tr><td>settings.notifications.outOfPolicyPurchaseEmails[]</td><td>List of String</td><td>No</td><td>Valid email addresses to notify on out of policy purchases.</td></tr>\n    </tbody>\n</table>\n</div>\n","operationId":"patchUser_1","parameters":[{"description":"Id of the user to be updated","in":"path","name":"userId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"examples":{"Request to add a document to the existing documents":{"description":"Request to add a document to the existing documents","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:documents","value":[{"type":"PAS","value":"ABCDE1234","issueDate":"2020-10-10","expirationDate":"2031-10-10","issueLocation":"Seattle","issueCountry":"US"}]}]}},"Request to add a loyalty program to the existing loyalty programs (existing ones are kept)":{"description":"Request to add a loyalty program to the existing loyalty programs (existing ones are kept)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms","value":[{"lob":"AIR","name":"Delta SkyMiles","issuingSupplierCode":"DL","value":"1234567890","validFrom":"2024-01-01","validTo":"2030-12-31"}]}]}},"Request to add a new arranger to the existing arrangers":{"description":"Request to add a new arranger to the existing arrangers","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:arrangers","value":[{"id":"id","userName":"api.sample@egencia.com"}]}]}},"Request to add a new custom data field to the existing custom data field list:":{"description":"Request to add a new custom data field to the existing custom data field list:","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:customDataFields","value":[{"name":"CDF label","value":"CDF value"}]}]}},"Request to add a new level 1 approver to the existing level1Approvers list":{"description":"Request to add a new level 1 approver to the existing level1Approvers list","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:approvers.level1Approvers","value":[{"userName":"api.sample@egencia.com"}]}]}},"Request to add a new level 1 as well as level 2 approver to the existing level1Approvers and level2Approvers list":{"description":"Request to add a new level 1 as well as level 2 approver to the existing level1Approvers and level2Approvers list","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","value":{"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"id":"id"}],"level2Approvers":[{"userName":"api.sample@egencia.com"}]}}}}]}},"Request to add a new role to the existing roles":{"description":"Request to add a new role to the existing roles","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"roles","value":["ARRANGER"]}]}},"Request to add a phone number and update the home address":{"description":"Request to add a phone number and update the home address","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"phoneNumbers","value":[{"type":"MOBILE","value":"+44-1234512345","primary":false}]},{"op":"replace","path":"addresses[type eq \"HOME\"].streetAddress","value":"1010 Broadway Ave"}]}},"Request to add a preference to the existing preferences":{"description":"Request to add a preference to the existing preferences","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:preferences","value":[{"lob":"HOTEL","smoking":"0","specialRequest":"Quiet room"}]}]}},"Request to add/update first name, last name and date of birth":{"description":"Request to add/update first name, last name and date of birth","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","value":{"name":{"givenName":"First Name","familyName":"Last Name"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"dateOfBirth":"1988-01-26"}}}]}},"Request to add/update status of user":{"description":"Request to add/update status of user","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","value":{"active":false}}]}},"Request to remove a custom data field identified by a filter":{"description":"Request to remove a custom data field identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:customDataFields[name eq \"CDF label\"]"}]}},"Request to remove a document identified by a filter":{"description":"Request to remove a document identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:documents[type eq \"PAS\"]"}]}},"Request to remove a single loyalty program identified by a filter":{"description":"Request to remove a single loyalty program identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms[lob eq \"AIR\" and name eq \"Delta SkyMiles\"]"}]}},"Request to replace ALL loyalty programs with the given list":{"description":"Request to replace ALL loyalty programs with the given list","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms","value":[{"lob":"HOTEL","name":"S-Card","issuingSupplierCode":"T4","type":"LC","value":"S12345"}]}]}},"Request to replace traveler group with a new one.":{"description":"Request to replace traveler group with a new one.","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"groups","value":[{"value":"General"}]}]}},"Request to update WORK type email, username, ssoId, authentication mode":{"description":"Request to update WORK type email, username, ssoId, authentication mode","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"emails[type eq \"WORK\"].value","value":"api.sample@egencia.com"},{"op":"add","value":{"userName":"api.sample@egencia.com","urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}}}]}},"Request to update a single loyalty program identified by a filter":{"description":"Request to update a single loyalty program identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms[lob eq \"AIR\" and name eq \"Delta SkyMiles\"]","value":{"lob":"AIR","name":"Delta SkyMiles","issuingSupplierCode":"DL","value":"0987654321","validFrom":"2024-01-01","validTo":"2032-12-31"}}]}},"Request to update the notification settings and service levels":{"description":"Request to update the notification settings and service levels","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:settings.notifications.reservationEmail","value":"NORMAL"},{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:serviceLevelIds","value":["12345"]}]}},"Request with multiple patch operations":{"description":"Request with multiple patch operations","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:customDataFields","value":[{"name":"ff test","value":"ff test value"},{"name":"Test CDF","value":"Test CDF"}]},{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:companyId","value":"23"},{"op":"add","value":{"userName":"abcd","name":{"givenName":"Abcd"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"companyId":"23"}}},{"op":"replace","path":"addresses[type eq \"HOME\"].streetAddress","value":"1010 Broadway Ave"},{"op":"replace","path":"addresses[type eq \"HOME\"]","value":{"streetAddress":"911 Universal City Plaza","locality":"Hollywood","region":"CA","postalCode":"91608","country":"USA","formatted":"911 Universal City Plaza\nHollywood, CA 91608 US"}},{"op":"replace","value":{"emails":[{"value":"test@example.com","type":"WORK","primary":true}]}},{"op":"replace","value":{"phoneNumbers":[{"value":"+91-9999999999","type":"HOME","primary":true}]}},{"op":"add","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:employeeNumber","value":"11111"}]}}},"schema":{"$ref":"#/components/schemas/ScimPatchSchema"}},"application/scim+json":{"examples":{"Request to add a document to the existing documents":{"description":"Request to add a document to the existing documents","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:documents","value":[{"type":"PAS","value":"ABCDE1234","issueDate":"2020-10-10","expirationDate":"2031-10-10","issueLocation":"Seattle","issueCountry":"US"}]}]}},"Request to add a loyalty program to the existing loyalty programs (existing ones are kept)":{"description":"Request to add a loyalty program to the existing loyalty programs (existing ones are kept)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms","value":[{"lob":"AIR","name":"Delta SkyMiles","issuingSupplierCode":"DL","value":"1234567890","validFrom":"2024-01-01","validTo":"2030-12-31"}]}]}},"Request to add a new arranger to the existing arrangers":{"description":"Request to add a new arranger to the existing arrangers","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:arrangers","value":[{"id":"id","userName":"api.sample@egencia.com"}]}]}},"Request to add a new custom data field to the existing custom data field list:":{"description":"Request to add a new custom data field to the existing custom data field list:","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:customDataFields","value":[{"name":"CDF label","value":"CDF value"}]}]}},"Request to add a new level 1 approver to the existing level1Approvers list":{"description":"Request to add a new level 1 approver to the existing level1Approvers list","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:approvers.level1Approvers","value":[{"userName":"api.sample@egencia.com"}]}]}},"Request to add a new level 1 as well as level 2 approver to the existing level1Approvers and level2Approvers list":{"description":"Request to add a new level 1 as well as level 2 approver to the existing level1Approvers and level2Approvers list","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","value":{"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"id":"id"}],"level2Approvers":[{"userName":"api.sample@egencia.com"}]}}}}]}},"Request to add a new role to the existing roles":{"description":"Request to add a new role to the existing roles","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"roles","value":["ARRANGER"]}]}},"Request to add a phone number and update the home address":{"description":"Request to add a phone number and update the home address","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"phoneNumbers","value":[{"type":"MOBILE","value":"+44-1234512345","primary":false}]},{"op":"replace","path":"addresses[type eq \"HOME\"].streetAddress","value":"1010 Broadway Ave"}]}},"Request to add a preference to the existing preferences":{"description":"Request to add a preference to the existing preferences","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:preferences","value":[{"lob":"HOTEL","smoking":"0","specialRequest":"Quiet room"}]}]}},"Request to add/update first name, last name and date of birth":{"description":"Request to add/update first name, last name and date of birth","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","value":{"name":{"givenName":"First Name","familyName":"Last Name"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"dateOfBirth":"1988-01-26"}}}]}},"Request to add/update status of user":{"description":"Request to add/update status of user","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","value":{"active":false}}]}},"Request to remove a custom data field identified by a filter":{"description":"Request to remove a custom data field identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:customDataFields[name eq \"CDF label\"]"}]}},"Request to remove a document identified by a filter":{"description":"Request to remove a document identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:documents[type eq \"PAS\"]"}]}},"Request to remove a single loyalty program identified by a filter":{"description":"Request to remove a single loyalty program identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms[lob eq \"AIR\" and name eq \"Delta SkyMiles\"]"}]}},"Request to replace ALL loyalty programs with the given list":{"description":"Request to replace ALL loyalty programs with the given list","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms","value":[{"lob":"HOTEL","name":"S-Card","issuingSupplierCode":"T4","type":"LC","value":"S12345"}]}]}},"Request to replace traveler group with a new one.":{"description":"Request to replace traveler group with a new one.","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"groups","value":[{"value":"General"}]}]}},"Request to update WORK type email, username, ssoId, authentication mode":{"description":"Request to update WORK type email, username, ssoId, authentication mode","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"emails[type eq \"WORK\"].value","value":"api.sample@egencia.com"},{"op":"add","value":{"userName":"api.sample@egencia.com","urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}}}]}},"Request to update a single loyalty program identified by a filter":{"description":"Request to update a single loyalty program identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms[lob eq \"AIR\" and name eq \"Delta SkyMiles\"]","value":{"lob":"AIR","name":"Delta SkyMiles","issuingSupplierCode":"DL","value":"0987654321","validFrom":"2024-01-01","validTo":"2032-12-31"}}]}},"Request to update the notification settings and service levels":{"description":"Request to update the notification settings and service levels","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:settings.notifications.reservationEmail","value":"NORMAL"},{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:serviceLevelIds","value":["12345"]}]}},"Request with multiple patch operations":{"description":"Request with multiple patch operations","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:customDataFields","value":[{"name":"ff test","value":"ff test value"},{"name":"Test CDF","value":"Test CDF"}]},{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:companyId","value":"23"},{"op":"add","value":{"userName":"abcd","name":{"givenName":"Abcd"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"companyId":"23"}}},{"op":"replace","path":"addresses[type eq \"HOME\"].streetAddress","value":"1010 Broadway Ave"},{"op":"replace","path":"addresses[type eq \"HOME\"]","value":{"streetAddress":"911 Universal City Plaza","locality":"Hollywood","region":"CA","postalCode":"91608","country":"USA","formatted":"911 Universal City Plaza\nHollywood, CA 91608 US"}},{"op":"replace","value":{"emails":[{"value":"test@example.com","type":"WORK","primary":true}]}},{"op":"replace","value":{"phoneNumbers":[{"value":"+91-9999999999","type":"HOME","primary":true}]}},{"op":"add","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:employeeNumber","value":"11111"}]}}},"schema":{"$ref":"#/components/schemas/ScimPatchSchema"}}},"description":"SCIM compliant patch operation schema","required":true},"responses":{"200":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"meta":{"created":"2024-07-17T00:00:00.000Z","lastModified":"2024-07-17T00:00:00.000Z","location":"{baseUrl}/openconnect/api/scim/v2/Users/12345"},"id":"egenciaUniqueIdentifier","externalId":"externalSystemIdentifier","userName":"test@example.com","name":{"familyName":"User","formatted":"","givenName":"Test","middleName":"","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"employeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"id":"45678"}],"level2Approvers":[{"id":"45678"}],"delegateApprovers":[{"id":"123"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"},{"userName":"testarranger"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["12345"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"singleSignOnIdValue","userAuthenticationMode":"SSO"},"emails":[{"primary":true,"type":"WORK","value":"test@example.com"}],"phoneNumbers":[{"primary":true,"type":"WORK","value":"+44-1234512345"}],"addresses":[{"country":"GB","formatted":"address line 1, cityname, state, GB, 123212","locality":"city name","postalCode":"123212","region":"region or state","streetAddress":"address line 1","type":"WORK"}],"groups":[{"display":"displayName","value":"travelerGroup"}],"roles":["SELF_BOOKER"]},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}}},"description":"<b>Patch api success</b>"},"400":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid parameters","status":"400"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Bad Request</b> : Invalid input or request"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"404":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"User not found, you are trying to access an invalid or non existent user.","status":"404","data":[{"attribute":"id","message":"Requested user identifier is invalid."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Not Found</b> : Resource Not Found."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Perform patch operation on the user with the given user Id.","tags":["SCIM User Sync V2"]},"put":{"description":"<p><b>Important: PUT replaces the complete user profile, it is not a partial update.</b></p>\n<p>&bull; The request body is treated as the full desired state of the user, so send every attribute you want to keep.</p>\n<p>&bull; For the list attributes <tt>loyaltyPrograms</tt>, <tt>documents</tt>, <tt>customDataFields</tt> and <tt>phoneNumbers</tt> the list in the request is synchronised with the stored one: entries that are missing from the request are <b>deleted</b> and entries that are new are created.\n    For example, sending a PUT without <tt>loyaltyPrograms</tt> deletes all the loyalty programs of the user, and sending only one loyalty program deletes the others.</p>\n<p>&bull; <tt>externalId</tt> is taken from the request as it is, the stored value is not kept for you. Send back the value returned for the user, otherwise the user is updated without an <tt>externalId</tt>.</p>\n<p>&bull; <tt>preferences</tt>: when the attribute is not sent the existing preferences are left unchanged. When it is sent, the request is written as the new set of preferences, so include every line of business you want to keep. An empty list does not delete the existing preferences.</p>\n<p>&bull; <tt>addresses</tt>: when no address is sent the existing HOME address is deleted.</p>\n<p>&bull; <tt>groups</tt>: when no traveler group is sent the default traveler group of the company is set.</p>\n<p>&bull; <tt>settings</tt>: when it is not sent the notification setting <tt>reservationEmail</tt> is reset to <tt>NORMAL</tt>.</p>\n<p>&bull; For the other list attributes (<tt>roles</tt>, <tt>arrangers</tt>, <tt>arrangerGroups</tt>, approvers) send the complete list you want the user to have, and use PATCH to add or remove individual entries.</p>\n<p>&bull; To change only some attributes, either <b>GET the user first and send back the complete resource with your changes</b>, or use <b>PATCH</b> which only touches the attributes named in its operations.</p>\n<p><b>Attribute reference</b></p>\n<p>Attributes of the user resource, with their exact JSON syntax. Attributes of the Egencia extension must be sent inside the\n<tt>urn:ietf:params:scim:schemas:extension:egencia:2.0:User</tt> object (for PATCH with a <tt>path</tt>, prefix the path with this URN and a colon).\nDate values use the ISO 8601 format <tt>YYYY-MM-DD</tt>. Please refer the Enumerations section for the full list of values supported.</p>\n<div>\n<table>\n    <thead>\n    <tr><th>Attribute</th><th>Type</th><th>Required</th><th>Allowed values / format / limits</th></tr>\n    </thead>\n    <tbody>\n    <tr><td>id</td><td>String</td><td>Read-only</td><td>Egencia unique id of the user. Taken from the <tt>userId</tt> in the URL path. If it is sent in the body it must be a positive whole number, otherwise the request is rejected.</td></tr>\n    <tr><td>externalId</td><td>String</td><td>No</td><td>Identifier of the user in the provisioning client.</td></tr>\n    <tr><td>userName</td><td>String</td><td>Yes, unless <tt>userType</tt> is <tt>GUEST</tt></td><td>Valid email address, maximum 60 characters.</td></tr>\n    <tr><td>name.givenName</td><td>String</td><td>Yes</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.familyName</td><td>String</td><td>Yes</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.middleName</td><td>String</td><td>No</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.formatted</td><td>String</td><td>No</td><td>Formatted full name.</td></tr>\n    <tr><td>name.honorificPrefix</td><td>String</td><td>Conditional</td><td>The title label (e.g. Mr., Ms.), see the Title enumeration. The label must match exactly (case sensitive), an unknown label counts as a missing title. When a user of a non-US point of sale is updated (PUT) it is required, a missing value is rejected; when the user is created a default title is applied. For a user of the US point of sale it cannot be changed, unless title support is enabled for the company.</td></tr>\n    <tr><td>userType</td><td>String</td><td>No</td><td>Defaults to <tt>NORMAL</tt>. <tt>NORMAL</tt> or <tt>GUEST</tt> (case sensitive).</td></tr>\n    <tr><td>active</td><td>Boolean</td><td>Yes</td><td><tt>true</tt> or <tt>false</tt>.</td></tr>\n    <tr><td>preferredLanguage</td><td>String</td><td>No</td><td>One of es, da, de, el, en, fr, it, nl, pt, fi, cs, et, lv, lt, hu, mt, pl, sk, sl, bg, ro, tr, zh, nb, sv (not case sensitive). A locale made of such a language and a country, e.g. <tt>en-GB</tt>, is also accepted when it is a valid locale.</td></tr>\n    <tr><td>emails[]</td><td>List</td><td>Yes</td><td>Exactly one entry: <tt>type</tt> = <tt>WORK</tt> (required, send it exactly as <tt>WORK</tt>: a lower case value passes the validation but the email is not applied), <tt>value</tt> = valid email address (required), <tt>primary</tt> = boolean.</td></tr>\n    <tr><td>phoneNumbers[]</td><td>List</td><td>No</td><td>Each entry: <tt>type</tt> = <tt>MOBILE</tt>, <tt>HOME</tt> or <tt>WORK</tt> (required, case insensitive); <tt>value</tt> in international format, starting with '+' and a valid country code, e.g. <tt>+44-1234512345</tt> or <tt>+441234512345</tt> (required); <tt>primary</tt> = boolean. When a user is updated only one number per type is kept (the first one sent).</td></tr>\n    <tr><td>addresses[]</td><td>List</td><td>No</td><td>If sent, exactly one entry: <tt>type</tt> = <tt>HOME</tt> (required, case insensitive); <tt>streetAddress</tt>, <tt>postalCode</tt> and <tt>country</tt> are required; <tt>region</tt>, <tt>locality</tt> and <tt>formatted</tt> are optional. <tt>country</tt> is a 2 or 3 letter ISO country code (the response returns 2 letters in versions 2 and 3, and 3 letters in version 1).</td></tr>\n    <tr><td>groups[]</td><td>List</td><td>No</td><td>At most one traveler group: <tt>value</tt> = name of the traveler group as on the Egencia website (required), <tt>display</tt> optional. When no group is sent the default traveler group of the company is set. An unknown group name is rejected, except for companies that have the default traveler group fallback enabled, where the default group is set instead.</td></tr>\n    <tr><td>roles[]</td><td>List of String</td><td>No</td><td>Roles available for the company, e.g. <tt>SELF_BOOKER</tt>, <tt>ARRANGER</tt>, <tt>FLEXIBLE_ARRANGER</tt> (only where enabled for the company), <tt>MANAGE_USERS</tt>, <tt>GUEST_MANAGER</tt>. A role that is not valid for the company is rejected. <tt>APPROVER</tt> is not set through the roles: it is ignored, and rejected where the approver role is deprecated.</td></tr>\n    <tr><td colspan=\"4\"><b>Enterprise extension : urn:ietf:params:scim:schemas:extension:enterprise:2.0:User</b></td></tr>\n    <tr><td>employeeNumber</td><td>String</td><td>No</td><td>Employee number of the user.</td></tr>\n    <tr><td colspan=\"4\"><b>Egencia extension : urn:ietf:params:scim:schemas:extension:egencia:2.0:User</b></td></tr>\n    <tr><td>companyId</td><td>String</td><td>No</td><td>Egencia company (organization) id of the user. When omitted in a PUT, the company of the access token is used.</td></tr>\n    <tr><td>dateOfBirth</td><td>String (date)</td><td>No</td><td><tt>YYYY-MM-DD</tt>, cannot be in the future.</td></tr>\n    <tr><td>userAuthenticationMode</td><td>String</td><td>No</td><td><tt>SSO</tt> or <tt>LOGIN</tt> (case sensitive), defaults to <tt>LOGIN</tt>.</td></tr>\n    <tr><td>singleSignOnId</td><td>String</td><td>No</td><td>With <tt>SSO</tt> it defaults to the <tt>userName</tt> when omitted. With <tt>LOGIN</tt> it must be equal to the <tt>userName</tt> when sent.</td></tr>\n    <tr><td>approvers.level1Approvers[]<br/>approvers.level2Approvers[]<br/>approvers.delegateApprovers[]</td><td>List</td><td>No</td><td>Each entry identifies an existing user by <tt>id</tt>, <tt>userName</tt> or <tt>externalId</tt>. When <tt>approvers</tt> is sent it must contain at least <tt>level1Approvers</tt> or <tt>delegateApprovers</tt>, <tt>level2Approvers</tt> alone is rejected.</td></tr>\n    <tr><td>serviceLevelIds[]</td><td>List of String</td><td>No</td><td>Service level ids of the user.</td></tr>\n    <tr><td>arrangerGroups[]</td><td>List of String</td><td>No</td><td>Arranger groups of the company. The user must have an arranger role (<tt>ARRANGER</tt> or <tt>FLEXIBLE_ARRANGER</tt>).</td></tr>\n    <tr><td>arrangers[]</td><td>List</td><td>No</td><td>Existing users: <tt>id</tt> (numeric Egencia id, without leading zero) or <tt>userName</tt>. Use either ids or usernames in one request: when any entry has an <tt>id</tt>, the entries that only have a <tt>userName</tt> are ignored.</td></tr>\n    <tr><td>customDataFields[]</td><td>List</td><td>No</td><td><tt>name</tt> (required): name of a custom data field defined for the company. <tt>value</tt> (required): for a LIST type field it must be one of the values defined on the Egencia website, for a free text field any text of at most 50 characters (a longer value is rejected). If the same name is sent more than once, the last one is used.</td></tr>\n    <tr><td>documents[]</td><td>List</td><td>No</td><td><tt>type</tt> (required): <tt>PAS</tt>, <tt>ID</tt>, <tt>DL</tt>, <tt>HR_PERMIT</tt>, <tt>TWC_PERMIT</tt>, <tt>EEP_HM</tt>, <tt>TP_TW</tt>, <tt>ID_ARMY</tt>, <tt>PRI_FOREIGNER</tt>, <tt>ID_DIPLOMATIC</tt>, <tt>ID_BIRTH</tt>, <tt>DOM_TC</tt>. PAS, ID and DL are always accepted, the other types only where the point of sale supports them. Only one document per type is allowed, except for PAS. <tt>value</tt> (required). <tt>issueDate</tt> and <tt>expirationDate</tt> (<tt>YYYY-MM-DD</tt>): the expiration date must be in the future and after the issue date. <tt>issueLocation</tt> (city). <tt>issueCountry</tt>: 2 or 3 letter ISO country code.</td></tr>\n    <tr><td>loyaltyPrograms[]</td><td>List</td><td>No</td><td><tt>lob</tt> (required): <tt>AIR</tt>, <tt>HOTEL</tt>, <tt>RAIL</tt>, <tt>CAR</tt>. <tt>name</tt> (required): name of a loyalty program defined for the company, unknown names are rejected; for AIR, RAIL and CAR the <tt>lob</tt> must match the line of business of the program. <tt>issuingSupplierCode</tt> (required). <tt>value</tt>: membership id of 1 to 30 characters, required except for UK RAIL. <tt>type</tt>: optional, when omitted it is taken from the program (AIR, RAIL, CAR), when sent it must match the type of the program. <tt>code</tt> (optional). <tt>class</tt> (RAIL only): <tt>FIRST</tt> or <tt>SECOND</tt>. <tt>validFrom</tt> and <tt>validTo</tt> (<tt>YYYY-MM-DD</tt>): <tt>validTo</tt> must be in the future and after <tt>validFrom</tt>.</td></tr>\n    <tr><td>preferences[]</td><td>List</td><td>No</td><td><tt>lob</tt> (required): <tt>AIR</tt>, <tt>HOTEL</tt>, <tt>RAIL</tt> or <tt>CAR</tt>. All values are sent as text. AIR: <tt>preferredDepartureAirport</tt> (IATA code), <tt>seatType</tt> and <tt>mealType</tt> (values configured for the point of sale). RAIL: <tt>seatType</tt> and <tt>seatRoom</tt> (values configured for the point of sale), <tt>seatDirection</tt>, <tt>seatSolo</tt>, <tt>seatFreeOfCharge</tt> (<tt>0</tt> or <tt>1</tt>). HOTEL: <tt>smoking</tt> (<tt>0</tt>, <tt>1</tt> or <tt>2</tt>). All lines of business: <tt>specialRequest</tt> (1 to 80 characters). An empty list does not delete the existing preferences.</td></tr>\n    <tr><td>settings.notifications.reservationEmail</td><td>String</td><td>No</td><td><tt>NORMAL</tt> (default) or <tt>NONE_EXCEPT_MY_ETICKETS</tt>. <tt>ALL</tt> is not supported and is rejected.</td></tr>\n    <tr><td>settings.notifications.outOfPolicyPurchaseEmails[]</td><td>List of String</td><td>No</td><td>Valid email addresses to notify on out of policy purchases.</td></tr>\n    </tbody>\n</table>\n</div>\n","operationId":"updateUser_1","parameters":[{"description":"Id of the user to be updated","in":"path","name":"userId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"examples":{"Update user with basic and extension attributes":{"description":"Update user with basic and extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"}}},"Update user with basic attributes":{"description":"Update user with basic attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"]}},"Update user with basic, extension and egencia extension attributes":{"description":"Update user with basic, extension and egencia extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"userName":"approverone@egencia.com"}],"level2Approvers":[{"userName":"approvertwo@egencia.com"}],"delegateApprovers":[{"userName":"approver@egencia.com"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Cdf Name","value":"Cdf Value"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["123"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}}},"Update user with minimal attributes":{"description":"Update user with minimal attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":""},"userType":"NORMAL","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}]}}},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}},"application/scim+json":{"examples":{"Update user with basic and extension attributes":{"description":"Update user with basic and extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"}}},"Update user with basic attributes":{"description":"Update user with basic attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"]}},"Update user with basic, extension and egencia extension attributes":{"description":"Update user with basic, extension and egencia extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"userName":"approverone@egencia.com"}],"level2Approvers":[{"userName":"approvertwo@egencia.com"}],"delegateApprovers":[{"userName":"approver@egencia.com"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Cdf Name","value":"Cdf Value"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["123"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}}},"Update user with minimal attributes":{"description":"Update user with minimal attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":""},"userType":"NORMAL","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}]}}},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}}},"description":"User Schema to be updated","required":true},"responses":{"200":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"meta":{"created":"2024-07-17T00:00:00.000Z","lastModified":"2024-07-17T00:00:00.000Z","location":"{baseUrl}/openconnect/api/scim/v2/Users/12345"},"id":"egenciaUniqueIdentifier","externalId":"externalSystemIdentifier","userName":"test@example.com","name":{"familyName":"User","formatted":"","givenName":"Test","middleName":"","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"employeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"id":"45678"}],"level2Approvers":[{"id":"45678"}],"delegateApprovers":[{"id":"123"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"},{"userName":"testarranger"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["12345"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"singleSignOnIdValue","userAuthenticationMode":"SSO"},"emails":[{"primary":true,"type":"WORK","value":"test@example.com"}],"phoneNumbers":[{"primary":true,"type":"WORK","value":"+44-1234512345"}],"addresses":[{"country":"GB","formatted":"address line 1, cityname, state, GB, 123212","locality":"city name","postalCode":"123212","region":"region or state","streetAddress":"address line 1","type":"WORK"}],"groups":[{"display":"displayName","value":"travelerGroup"}],"roles":["SELF_BOOKER"]},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}}},"description":"<b>Updated</b>."},"400":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid parameters","status":"400"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Bad Request</b> : Invalid input or request"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Updates an existing user in the system with the requested information.","tags":["SCIM User Sync V2"]}},"/scim/v3/Users":{"get":{"description":"<p>Search/retrieve users based on the filter string parameter. Please be cautious if you are using organization token, search API will return users of all associated companies of parent company's org id if company is not provided in the filter criteria.</p>\n<div>\n<p>Results are returned in ascending order of userIds.</p>\n<p><b>Note: We only support search by email, name, userName and singleSignOnId. Since filter attribute contains special characters like square brackets, clients need to encode the filter attribute value.</b></p>\n<pre>\n    <code>\n        For search by email with value as test@egencia.com, you need to pass encoded value in filter which will be :\n        filter = emails%5Bvalue%20eq%20%22test%40egencia.com%22%5D\n        which is the encoded value for filter = emails[value eq \"test@egencia.com\"]\n    </code>\n</pre>\n","operationId":"getUsers","parameters":[{"description":"SCIM compliant filter attribute to take query string. If you are using any external tool to make the API call, please make sure to encode the filter value.","examples":{"Search Users By Company":{"description":"Replace {companyId} by the egencia company Id you want to search.","value":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User[companyId eq \"{companyId}\"]"},"Search Users By Email":{"description":"Replace {email} by the email you want to search.","value":"emails[value eq \"{email}\"]"},"Search Users By Email and Company":{"description":"Replace {email} by the email and {companyId} by the egencia company Id you want to search.","value":"emails[value eq \"{email}\"] and urn:ietf:params:scim:schemas:extension:egencia:2.0:User[companyId eq \"{companyId}\"]"},"Search Users By Name":{"description":"Replace {givenName} by the first name of the user and {familyName} by the last name of the user you want to search.","value":"name[givenName eq \"{givenName}\" and familyName eq \"{familyName}\"]"},"Search Users By Name and Company":{"description":"Replace {givenName} by the first name of the user, {familyName} by the last name of the user and {companyId} by the egencia company Id you want to search.","value":"name[givenName eq \"{givenName}\" and familyName eq \"{familyName}\"] and urn:ietf:params:scim:schemas:extension:egencia:2.0:User[companyId eq \"{companyId}\"]"},"Search Users By No Filter":{"description":"No need to pass anything in filter."},"Search Users By Single Sign On Id":{"description":"Replace {singleSignOnId} by the single sing on Id you want to search.","value":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:singleSignOnId eq \"{singleSignOnId}\""},"Search Users By Single Sign On Id and Company":{"description":"Replace {singleSignOnId} by the single sign on Id and {companyId} by the egencia company Id you want to search.","value":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:singleSignOnId eq \"{singleSignOnId}\" and urn:ietf:params:scim:schemas:extension:egencia:2.0:User:companyId eq \"{companyId}\""},"Search Users By Username":{"description":"Replace {userName} by the username you want to search.","value":"userName eq \"{userName}\""},"Search Users By Username and Company":{"description":"Replace {userName} by the username and {companyId} by the egencia company Id you want to search.","value":"userName eq \"{userName}\" and urn:ietf:params:scim:schemas:extension:egencia:2.0:User[companyId eq \"{companyId}\"]"}},"in":"query","name":"filter","required":false,"schema":{"type":"string"}},{"description":"1-based start index","in":"query","name":"startIndex","required":false,"schema":{"type":"integer","format":"int32","default":1,"exclusiveMinimum":0}},{"description":"Number of resources to be returned. Maximum supported value is 100","in":"query","name":"count","required":false,"schema":{"type":"integer","format":"int32","default":20,"exclusiveMinimum":0,"maximum":100}}],"responses":{"200":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:ListResponse"],"itemsPerPage":1,"startIndex":1,"totalResults":1,"Resources":[{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"meta":{"created":"2024-07-17T00:00:00.000Z","lastModified":"2024-07-17T00:00:00.000Z","location":"{baseUrl}/openconnect/api/scim/v3/Users/12345"},"id":"egenciaUniqueIdentifier","externalId":"externalSystemIdentifier","userName":"test@example.com","name":{"familyName":"User","formatted":"","givenName":"Test","middleName":"","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"id":"4567"}],"level2Approvers":[{"id":"4567"}],"delegateApprovers":[{"id":"123"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"5678"},{"userName":"testarranger1"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"dateOfBirth":"1989-01-01","documents":[{"expirationDate":"2031-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2021-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special requests"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special requests"},{"lob":"CAR","specialRequest":"Any special requests"}],"serviceLevelIds":["12345"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"singleSignOnIdValue","userAuthenticationMode":"SSO"},"emails":[{"primary":true,"type":"WORK","value":"test@abc.com"}],"phoneNumbers":[{"primary":true,"type":"WORK","value":"+44-1234512345"}],"addresses":[{"country":"GB","formatted":"address line 1, cityname, state, GB, 123212","locality":"city name","postalCode":"123212","region":"region or state","streetAddress":"address line 1","type":"WORK"}],"groups":[{"display":"displayName","value":"travelerGroup"}],"roles":["SELF_BOOKER"]}]},"schema":{"$ref":"#/components/schemas/ListResponseV2"}}},"description":"<b>Search api success</b>."},"400":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid parameters","status":"400"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Bad Request</b> : Invalid input or request"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Return list of users based on the filter condition.","tags":["SCIM User Sync V3"]},"post":{"operationId":"createUser","requestBody":{"content":{"application/json":{"examples":{"Create user with basic and extension attributes":{"description":"Create user with basic and extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"}}},"Create user with basic attributes":{"description":"Create user with basic attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"]}},"Create user with basic, extension and egencia extension attributes":{"description":"Create user with basic, extension and egencia extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"userName":"approverone@egencia.com"}],"level2Approvers":[{"userName":"approvertwo@egencia.com"}],"delegateApprovers":[{"userName":"approver@egencia.com"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Cdf Name","value":"Cdf Value"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["123"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}}},"Create user with minimal attributes":{"description":"Create user with minimal attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":""},"userType":"NORMAL","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}]}}},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}},"application/scim+json":{"examples":{"Create user with basic and extension attributes":{"description":"Create user with basic and extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"}}},"Create user with basic attributes":{"description":"Create user with basic attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"]}},"Create user with basic, extension and egencia extension attributes":{"description":"Create user with basic, extension and egencia extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"userName":"approverone@egencia.com"}],"level2Approvers":[{"userName":"approvertwo@egencia.com"}],"delegateApprovers":[{"userName":"approver@egencia.com"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Cdf Name","value":"Cdf Value"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["123"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}}},"Create user with minimal attributes":{"description":"Create user with minimal attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":""},"userType":"NORMAL","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}]}}},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}}},"description":"User Schema to be created","required":true},"responses":{"201":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"meta":{"created":"2024-07-17T00:00:00.000Z","lastModified":"2024-07-17T00:00:00.000Z","location":"{baseUrl}/openconnect/api/scim/v3/Users/egenciaUniqueIdentifier"},"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"userName":"approverone@egencia.com"}],"level2Approvers":[{"userName":"approvertwo@egencia.com"}],"delegateApprovers":[{"userName":"approver@egencia.com"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Cdf Name","value":"Cdf Value"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["123"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}}},"description":"<b>Created</b>."},"400":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid parameters","status":"400"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Bad Request</b> : Invalid input or request"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"409":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"409","data":[{"attribute":"userName","message":"Username already exists."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Conflict</b> : User already exists."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Create a new user in the system with the requested information.","tags":["SCIM User Sync V3"]}},"/scim/v3/Users/{userId}":{"delete":{"description":"<p>Delete the user with the given user Id in the path</p>\n<p><b>Request Parameters</b></p>\n<div>\n    <table>\n        <thead>\n        <tr>\n            <th>\n                Attribute\n            </th>\n            <th>\n                Type\n            </th>\n            <th>\n                Description\n            </th>\n        </tr>\n        </thead>\n        <tbody>\n        <tr>\n            <td>userId</td>\n            <td>String</td>\n            <td>User Id of the user to be deleted</td>\n        </tr>\n        </tbody>\n    </table>\n</div>\n<p><b>Examples:</b></p>\n<p>Replace {baseUrl} with the actual value of Egencia APIs host. Please refer Base Urls section under API Overview page of Egencia Developer Center.</p>\n<p>Deleting a user with user Id : test_user_id</p>\n<pre>\n    <code>\n        DELETE {baseUrl}/openconnect/api/scim/v3/Users/test_user_id\n        <b>Response:</b>\n            -> 204 No Content\n   </code>\n</pre>\n","operationId":"deleteUserUser","parameters":[{"description":"User Id of the user to be deleted","in":"path","name":"userId","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"<b>No Content</b>."},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"404":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"User not found, you are trying to access an invalid or non existent user.","status":"404","data":[{"attribute":"id","message":"Requested user identifier is invalid."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Not Found</b> : Resource Not Found."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process the request due to missing mandatory or invalid parameters.","status":"422","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.documents","message":"One or more invalid user documents are supplied."},{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.preferences","message":"One or more invalid user preferences are supplied."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Delete the user in the system with the given user Id.","tags":["SCIM User Sync V3"]},"get":{"operationId":"getUser","parameters":[{"description":"Id of the user to be retrieved","in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"in":"query","name":"attributes","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"meta":{"created":"2024-07-17T00:00:00.000Z","lastModified":"2024-07-17T00:00:00.000Z","location":"{baseUrl}/openconnect/api/scim/v3/Users/12345"},"id":"egenciaUniqueIdentifier","externalId":"externalSystemIdentifier","userName":"test@example.com","name":{"familyName":"User","formatted":"","givenName":"Test","middleName":"","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"employeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"id":"45678"}],"level2Approvers":[{"id":"45678"}],"delegateApprovers":[{"id":"123"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"},{"userName":"testarranger"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["12345"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"singleSignOnIdValue","userAuthenticationMode":"SSO","subscribedCompanyIds":["63062","62366","63065"]},"emails":[{"primary":true,"type":"WORK","value":"test@example.com"}],"phoneNumbers":[{"primary":true,"type":"WORK","value":"+44-1234512345"}],"addresses":[{"country":"GB","formatted":"address line 1, cityname, state, GB, 123212","locality":"city name","postalCode":"123212","region":"region or state","streetAddress":"address line 1","type":"WORK"}],"groups":[{"display":"displayName","value":"travelerGroup"}],"roles":["SELF_BOOKER"]},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}}},"description":"<b>Found</b>."},"400":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid parameters","status":"400"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Bad Request</b> : Invalid input or request"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"404":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"User not found, you are trying to access an invalid or non existent user.","status":"404","data":[{"attribute":"id","message":"Requested user identifier is invalid."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Not Found</b> : Resource Not Found."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Retrieves the user details for a requested user identifier.","tags":["SCIM User Sync V3"]},"patch":{"description":"<p><b>PATCH updates only the attributes named in the operations, everything else is left untouched.</b> Use PATCH (instead of PUT) when you do not want to send the complete user profile.</p>\n<p>The request body is a SCIM PatchOp message: the <tt>schemas</tt> array is <tt>[\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"]</tt> and <tt>Operations</tt> is an ordered list of operations which are applied one after the other.</p>\n<div>\n<table>\n    <thead>\n    <tr><th>Attribute</th><th>Type</th><th>Description</th></tr>\n    </thead>\n    <tbody>\n    <tr><td>op</td><td>String (mandatory)</td><td><tt>add</tt>, <tt>replace</tt> or <tt>remove</tt> (case insensitive).</td></tr>\n    <tr><td>path</td><td>String</td><td>The attribute to change. Optional for <tt>add</tt> and <tt>replace</tt> (when omitted, <tt>value</tt> is an object holding the attributes to change). Mandatory for <tt>remove</tt>.</td></tr>\n    <tr><td>value</td><td>Any</td><td>The new value. Mandatory for <tt>add</tt> and <tt>replace</tt>, not used for <tt>remove</tt>.</td></tr>\n    </tbody>\n</table>\n</div>\n<p><b>Operations</b></p>\n<div>\n<table>\n    <thead>\n    <tr><th>op</th><th>Single-valued attribute (e.g. <tt>active</tt>, <tt>name.givenName</tt>)</th><th>List attribute (e.g. <tt>loyaltyPrograms</tt>, <tt>documents</tt>)</th></tr>\n    </thead>\n    <tbody>\n    <tr><td>add</td><td>Sets the value (overwrites an existing one). For an attribute made of sub-attributes (e.g. <tt>name</tt>, <tt>approvers</tt>, <tt>settings</tt>) only the sub-attributes present in <tt>value</tt> are set, the others are kept.</td><td><b>Appends</b> the entries when <tt>value</tt> is a JSON array, existing entries are kept (an entry identical to an existing one is not added twice). Always send an array: an object <tt>value</tt> does not append.</td></tr>\n    <tr><td>replace</td><td>Sets the value. For an attribute made of sub-attributes only the sub-attributes present in <tt>value</tt> are changed, the others are kept.</td><td>Replaces the <b>whole list</b> with the given array when the path has no filter. With a filter in the path, e.g. <tt>loyaltyPrograms[lob eq \"AIR\"]</tt>, <tt>value</tt> is merged into each matching entry: the attributes you send are changed and the ones you leave out keep their current value. An empty array as <tt>value</tt> removes the matching entries.</td></tr>\n    <tr><td>remove</td><td>Clears the value.</td><td>Removes the <b>whole list</b> when the path has no filter. With a filter in the path, only the matching entries are removed.</td></tr>\n    </tbody>\n</table>\n</div>\n<p><b>Path syntax</b></p>\n<p>&bull; Core attributes are addressed by name, e.g. <tt>active</tt>, <tt>name.givenName</tt>, <tt>emails</tt>, <tt>roles</tt>.</p>\n<p>&bull; Extension attributes are prefixed by the extension URN and a colon, e.g. <tt>urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms</tt>.\n    Nested attributes use a dot, e.g. <tt>urn:ietf:params:scim:schemas:extension:egencia:2.0:User:approvers.level1Approvers</tt>.</p>\n<p>&bull; Entries of a list can be selected with a filter in square brackets, e.g. <tt>urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms[lob eq \"AIR\" and name eq \"Delta\"]</tt>.\n    A sub-attribute of the matched entry can be addressed after the filter, e.g. <tt>emails[type eq \"WORK\"].value</tt>.</p>\n<p>&bull; Without a <tt>path</tt>, <tt>value</tt> is an object using the same structure as the user resource, e.g. <tt>{\"active\": false}</tt> or <tt>{\"urn:ietf:params:scim:schemas:extension:egencia:2.0:User\": {\"dateOfBirth\": \"1988-01-26\"}}</tt>.</p>\n<p>&bull; An extension attribute addressed with a wrong or missing extension urn is not applied, and unknown properties in the request are ignored without an error.</p>\n<p><b>Tips for lists such as loyaltyPrograms</b></p>\n<p>&bull; To add a loyalty program without touching the existing ones, use <tt>add</tt> on the <tt>loyaltyPrograms</tt> path.</p>\n<p>&bull; To change one loyalty program, use <tt>replace</tt> with a filter that identifies exactly that entry. A <tt>replace</tt> on <tt>loyaltyPrograms</tt> without a filter replaces all of them. The attributes left out of <tt>value</tt> keep their current value.</p>\n<p>&bull; To delete one loyalty program, use <tt>remove</tt> with a filter. A <tt>remove</tt> on <tt>loyaltyPrograms</tt> without a filter deletes all of them.</p>\n<p>&bull; After each operation the patched user is checked against the attribute rules of the reference below: a rule the user already broke before the operation is ignored, a new violation rejects the request, so every entry you add still needs its mandatory attributes. The business rules (for example custom data fields, loyalty program names, roles and documents) are checked once, on the final user after all the operations.</p>\n<p>&bull; Removing preferences (<tt>remove</tt> on <tt>preferences</tt>) has no effect: the existing preferences are kept.</p>\n<p><b>Attribute reference</b></p>\n<p>Attributes of the user resource, with their exact JSON syntax. Attributes of the Egencia extension must be sent inside the\n<tt>urn:ietf:params:scim:schemas:extension:egencia:2.0:User</tt> object (for PATCH with a <tt>path</tt>, prefix the path with this URN and a colon).\nDate values use the ISO 8601 format <tt>YYYY-MM-DD</tt>. Please refer the Enumerations section for the full list of values supported.</p>\n<div>\n<table>\n    <thead>\n    <tr><th>Attribute</th><th>Type</th><th>Required</th><th>Allowed values / format / limits</th></tr>\n    </thead>\n    <tbody>\n    <tr><td>id</td><td>String</td><td>Read-only</td><td>Egencia unique id of the user. Taken from the <tt>userId</tt> in the URL path. If it is sent in the body it must be a positive whole number, otherwise the request is rejected.</td></tr>\n    <tr><td>externalId</td><td>String</td><td>No</td><td>Identifier of the user in the provisioning client.</td></tr>\n    <tr><td>userName</td><td>String</td><td>Yes, unless <tt>userType</tt> is <tt>GUEST</tt></td><td>Valid email address, maximum 60 characters.</td></tr>\n    <tr><td>name.givenName</td><td>String</td><td>Yes</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.familyName</td><td>String</td><td>Yes</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.middleName</td><td>String</td><td>No</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.formatted</td><td>String</td><td>No</td><td>Formatted full name.</td></tr>\n    <tr><td>name.honorificPrefix</td><td>String</td><td>Conditional</td><td>The title label (e.g. Mr., Ms.), see the Title enumeration. The label must match exactly (case sensitive), an unknown label counts as a missing title. When a user of a non-US point of sale is updated (PUT) it is required, a missing value is rejected; when the user is created a default title is applied. For a user of the US point of sale it cannot be changed, unless title support is enabled for the company.</td></tr>\n    <tr><td>userType</td><td>String</td><td>No</td><td>Defaults to <tt>NORMAL</tt>. <tt>NORMAL</tt> or <tt>GUEST</tt> (case sensitive).</td></tr>\n    <tr><td>active</td><td>Boolean</td><td>Yes</td><td><tt>true</tt> or <tt>false</tt>.</td></tr>\n    <tr><td>preferredLanguage</td><td>String</td><td>No</td><td>One of es, da, de, el, en, fr, it, nl, pt, fi, cs, et, lv, lt, hu, mt, pl, sk, sl, bg, ro, tr, zh, nb, sv (not case sensitive). A locale made of such a language and a country, e.g. <tt>en-GB</tt>, is also accepted when it is a valid locale.</td></tr>\n    <tr><td>emails[]</td><td>List</td><td>Yes</td><td>Exactly one entry: <tt>type</tt> = <tt>WORK</tt> (required, send it exactly as <tt>WORK</tt>: a lower case value passes the validation but the email is not applied), <tt>value</tt> = valid email address (required), <tt>primary</tt> = boolean.</td></tr>\n    <tr><td>phoneNumbers[]</td><td>List</td><td>No</td><td>Each entry: <tt>type</tt> = <tt>MOBILE</tt>, <tt>HOME</tt> or <tt>WORK</tt> (required, case insensitive); <tt>value</tt> in international format, starting with '+' and a valid country code, e.g. <tt>+44-1234512345</tt> or <tt>+441234512345</tt> (required); <tt>primary</tt> = boolean. When a user is updated only one number per type is kept (the first one sent).</td></tr>\n    <tr><td>addresses[]</td><td>List</td><td>No</td><td>If sent, exactly one entry: <tt>type</tt> = <tt>HOME</tt> (required, case insensitive); <tt>streetAddress</tt>, <tt>postalCode</tt> and <tt>country</tt> are required; <tt>region</tt>, <tt>locality</tt> and <tt>formatted</tt> are optional. <tt>country</tt> is a 2 or 3 letter ISO country code (the response returns 2 letters in versions 2 and 3, and 3 letters in version 1).</td></tr>\n    <tr><td>groups[]</td><td>List</td><td>No</td><td>At most one traveler group: <tt>value</tt> = name of the traveler group as on the Egencia website (required), <tt>display</tt> optional. When no group is sent the default traveler group of the company is set. An unknown group name is rejected, except for companies that have the default traveler group fallback enabled, where the default group is set instead.</td></tr>\n    <tr><td>roles[]</td><td>List of String</td><td>No</td><td>Roles available for the company, e.g. <tt>SELF_BOOKER</tt>, <tt>ARRANGER</tt>, <tt>FLEXIBLE_ARRANGER</tt> (only where enabled for the company), <tt>MANAGE_USERS</tt>, <tt>GUEST_MANAGER</tt>. A role that is not valid for the company is rejected. <tt>APPROVER</tt> is not set through the roles: it is ignored, and rejected where the approver role is deprecated.</td></tr>\n    <tr><td colspan=\"4\"><b>Enterprise extension : urn:ietf:params:scim:schemas:extension:enterprise:2.0:User</b></td></tr>\n    <tr><td>employeeNumber</td><td>String</td><td>No</td><td>Employee number of the user.</td></tr>\n    <tr><td colspan=\"4\"><b>Egencia extension : urn:ietf:params:scim:schemas:extension:egencia:2.0:User</b></td></tr>\n    <tr><td>companyId</td><td>String</td><td>No</td><td>Egencia company (organization) id of the user. When omitted in a PUT, the company of the access token is used.</td></tr>\n    <tr><td>dateOfBirth</td><td>String (date)</td><td>No</td><td><tt>YYYY-MM-DD</tt>, cannot be in the future.</td></tr>\n    <tr><td>userAuthenticationMode</td><td>String</td><td>No</td><td><tt>SSO</tt> or <tt>LOGIN</tt> (case sensitive), defaults to <tt>LOGIN</tt>.</td></tr>\n    <tr><td>singleSignOnId</td><td>String</td><td>No</td><td>With <tt>SSO</tt> it defaults to the <tt>userName</tt> when omitted. With <tt>LOGIN</tt> it must be equal to the <tt>userName</tt> when sent.</td></tr>\n    <tr><td>approvers.level1Approvers[]<br/>approvers.level2Approvers[]<br/>approvers.delegateApprovers[]</td><td>List</td><td>No</td><td>Each entry identifies an existing user by <tt>id</tt>, <tt>userName</tt> or <tt>externalId</tt>. When <tt>approvers</tt> is sent it must contain at least <tt>level1Approvers</tt> or <tt>delegateApprovers</tt>, <tt>level2Approvers</tt> alone is rejected.</td></tr>\n    <tr><td>serviceLevelIds[]</td><td>List of String</td><td>No</td><td>Service level ids of the user.</td></tr>\n    <tr><td>arrangerGroups[]</td><td>List of String</td><td>No</td><td>Arranger groups of the company. The user must have an arranger role (<tt>ARRANGER</tt> or <tt>FLEXIBLE_ARRANGER</tt>).</td></tr>\n    <tr><td>arrangers[]</td><td>List</td><td>No</td><td>Existing users: <tt>id</tt> (numeric Egencia id, without leading zero) or <tt>userName</tt>. Use either ids or usernames in one request: when any entry has an <tt>id</tt>, the entries that only have a <tt>userName</tt> are ignored.</td></tr>\n    <tr><td>customDataFields[]</td><td>List</td><td>No</td><td><tt>name</tt> (required): name of a custom data field defined for the company. <tt>value</tt> (required): for a LIST type field it must be one of the values defined on the Egencia website, for a free text field any text of at most 50 characters (a longer value is rejected). If the same name is sent more than once, the last one is used.</td></tr>\n    <tr><td>documents[]</td><td>List</td><td>No</td><td><tt>type</tt> (required): <tt>PAS</tt>, <tt>ID</tt>, <tt>DL</tt>, <tt>HR_PERMIT</tt>, <tt>TWC_PERMIT</tt>, <tt>EEP_HM</tt>, <tt>TP_TW</tt>, <tt>ID_ARMY</tt>, <tt>PRI_FOREIGNER</tt>, <tt>ID_DIPLOMATIC</tt>, <tt>ID_BIRTH</tt>, <tt>DOM_TC</tt>. PAS, ID and DL are always accepted, the other types only where the point of sale supports them. Only one document per type is allowed, except for PAS. <tt>value</tt> (required). <tt>issueDate</tt> and <tt>expirationDate</tt> (<tt>YYYY-MM-DD</tt>): the expiration date must be in the future and after the issue date. <tt>issueLocation</tt> (city). <tt>issueCountry</tt>: 2 or 3 letter ISO country code.</td></tr>\n    <tr><td>loyaltyPrograms[]</td><td>List</td><td>No</td><td><tt>lob</tt> (required): <tt>AIR</tt>, <tt>HOTEL</tt>, <tt>RAIL</tt>, <tt>CAR</tt>. <tt>name</tt> (required): name of a loyalty program defined for the company, unknown names are rejected; for AIR, RAIL and CAR the <tt>lob</tt> must match the line of business of the program. <tt>issuingSupplierCode</tt> (required). <tt>value</tt>: membership id of 1 to 30 characters, required except for UK RAIL. <tt>type</tt>: optional, when omitted it is taken from the program (AIR, RAIL, CAR), when sent it must match the type of the program. <tt>code</tt> (optional). <tt>class</tt> (RAIL only): <tt>FIRST</tt> or <tt>SECOND</tt>. <tt>validFrom</tt> and <tt>validTo</tt> (<tt>YYYY-MM-DD</tt>): <tt>validTo</tt> must be in the future and after <tt>validFrom</tt>.</td></tr>\n    <tr><td>preferences[]</td><td>List</td><td>No</td><td><tt>lob</tt> (required): <tt>AIR</tt>, <tt>HOTEL</tt>, <tt>RAIL</tt> or <tt>CAR</tt>. All values are sent as text. AIR: <tt>preferredDepartureAirport</tt> (IATA code), <tt>seatType</tt> and <tt>mealType</tt> (values configured for the point of sale). RAIL: <tt>seatType</tt> and <tt>seatRoom</tt> (values configured for the point of sale), <tt>seatDirection</tt>, <tt>seatSolo</tt>, <tt>seatFreeOfCharge</tt> (<tt>0</tt> or <tt>1</tt>). HOTEL: <tt>smoking</tt> (<tt>0</tt>, <tt>1</tt> or <tt>2</tt>). All lines of business: <tt>specialRequest</tt> (1 to 80 characters). An empty list does not delete the existing preferences.</td></tr>\n    <tr><td>settings.notifications.reservationEmail</td><td>String</td><td>No</td><td><tt>NORMAL</tt> (default) or <tt>NONE_EXCEPT_MY_ETICKETS</tt>. <tt>ALL</tt> is not supported and is rejected.</td></tr>\n    <tr><td>settings.notifications.outOfPolicyPurchaseEmails[]</td><td>List of String</td><td>No</td><td>Valid email addresses to notify on out of policy purchases.</td></tr>\n    </tbody>\n</table>\n</div>\n","operationId":"patchUser","parameters":[{"description":"Id of the user to be updated","in":"path","name":"userId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"examples":{"Request to add a document to the existing documents":{"description":"Request to add a document to the existing documents","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:documents","value":[{"type":"PAS","value":"ABCDE1234","issueDate":"2020-10-10","expirationDate":"2031-10-10","issueLocation":"Seattle","issueCountry":"US"}]}]}},"Request to add a loyalty program to the existing loyalty programs (existing ones are kept)":{"description":"Request to add a loyalty program to the existing loyalty programs (existing ones are kept)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms","value":[{"lob":"AIR","name":"Delta SkyMiles","issuingSupplierCode":"DL","value":"1234567890","validFrom":"2024-01-01","validTo":"2030-12-31"}]}]}},"Request to add a new arranger to the existing arrangers":{"description":"Request to add a new arranger to the existing arrangers","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:arrangers","value":[{"id":"id","userName":"api.sample@egencia.com"}]}]}},"Request to add a new custom data field to the existing custom data field list:":{"description":"Request to add a new custom data field to the existing custom data field list:","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:customDataFields","value":[{"name":"CDF label","value":"CDF value"}]}]}},"Request to add a new level 1 approver to the existing level1Approvers list":{"description":"Request to add a new level 1 approver to the existing level1Approvers list","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:approvers.level1Approvers","value":[{"userName":"api.sample@egencia.com"}]}]}},"Request to add a new level 1 as well as level 2 approver to the existing level1Approvers and level2Approvers list":{"description":"Request to add a new level 1 as well as level 2 approver to the existing level1Approvers and level2Approvers list","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","value":{"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"id":"id"}],"level2Approvers":[{"userName":"api.sample@egencia.com"}]}}}}]}},"Request to add a new role to the existing roles":{"description":"Request to add a new role to the existing roles","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"roles","value":["ARRANGER"]}]}},"Request to add a phone number and update the home address":{"description":"Request to add a phone number and update the home address","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"phoneNumbers","value":[{"type":"MOBILE","value":"+44-1234512345","primary":false}]},{"op":"replace","path":"addresses[type eq \"HOME\"].streetAddress","value":"1010 Broadway Ave"}]}},"Request to add a preference to the existing preferences":{"description":"Request to add a preference to the existing preferences","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:preferences","value":[{"lob":"HOTEL","smoking":"0","specialRequest":"Quiet room"}]}]}},"Request to add/update first name, last name and date of birth":{"description":"Request to add/update first name, last name and date of birth","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","value":{"name":{"givenName":"First Name","familyName":"Last Name"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"dateOfBirth":"1988-01-26"}}}]}},"Request to add/update status of user":{"description":"Request to add/update status of user","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","value":{"active":false}}]}},"Request to remove a custom data field identified by a filter":{"description":"Request to remove a custom data field identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:customDataFields[name eq \"CDF label\"]"}]}},"Request to remove a document identified by a filter":{"description":"Request to remove a document identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:documents[type eq \"PAS\"]"}]}},"Request to remove a single loyalty program identified by a filter":{"description":"Request to remove a single loyalty program identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms[lob eq \"AIR\" and name eq \"Delta SkyMiles\"]"}]}},"Request to replace ALL loyalty programs with the given list":{"description":"Request to replace ALL loyalty programs with the given list","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms","value":[{"lob":"HOTEL","name":"S-Card","issuingSupplierCode":"T4","type":"LC","value":"S12345"}]}]}},"Request to replace traveler group with a new one.":{"description":"Request to replace traveler group with a new one.","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"groups","value":[{"value":"General"}]}]}},"Request to update WORK type email, username, ssoId, authentication mode":{"description":"Request to update WORK type email, username, ssoId, authentication mode","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"emails[type eq \"WORK\"].value","value":"api.sample@egencia.com"},{"op":"add","value":{"userName":"api.sample@egencia.com","urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}}}]}},"Request to update a single loyalty program identified by a filter":{"description":"Request to update a single loyalty program identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms[lob eq \"AIR\" and name eq \"Delta SkyMiles\"]","value":{"lob":"AIR","name":"Delta SkyMiles","issuingSupplierCode":"DL","value":"0987654321","validFrom":"2024-01-01","validTo":"2032-12-31"}}]}},"Request to update the notification settings and service levels":{"description":"Request to update the notification settings and service levels","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:settings.notifications.reservationEmail","value":"NORMAL"},{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:serviceLevelIds","value":["12345"]}]}},"Request with multiple patch operations":{"description":"Request with multiple patch operations","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:customDataFields","value":[{"name":"ff test","value":"ff test value"},{"name":"Test CDF","value":"Test CDF"}]},{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:companyId","value":"23"},{"op":"add","value":{"userName":"abcd","name":{"givenName":"Abcd"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"companyId":"23"}}},{"op":"replace","path":"addresses[type eq \"HOME\"].streetAddress","value":"1010 Broadway Ave"},{"op":"replace","path":"addresses[type eq \"HOME\"]","value":{"streetAddress":"911 Universal City Plaza","locality":"Hollywood","region":"CA","postalCode":"91608","country":"USA","formatted":"911 Universal City Plaza\nHollywood, CA 91608 US"}},{"op":"replace","value":{"emails":[{"value":"test@example.com","type":"WORK","primary":true}]}},{"op":"replace","value":{"phoneNumbers":[{"value":"+91-9999999999","type":"HOME","primary":true}]}},{"op":"add","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:employeeNumber","value":"11111"}]}}},"schema":{"$ref":"#/components/schemas/ScimPatchSchema"}},"application/scim+json":{"examples":{"Request to add a document to the existing documents":{"description":"Request to add a document to the existing documents","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:documents","value":[{"type":"PAS","value":"ABCDE1234","issueDate":"2020-10-10","expirationDate":"2031-10-10","issueLocation":"Seattle","issueCountry":"US"}]}]}},"Request to add a loyalty program to the existing loyalty programs (existing ones are kept)":{"description":"Request to add a loyalty program to the existing loyalty programs (existing ones are kept)","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms","value":[{"lob":"AIR","name":"Delta SkyMiles","issuingSupplierCode":"DL","value":"1234567890","validFrom":"2024-01-01","validTo":"2030-12-31"}]}]}},"Request to add a new arranger to the existing arrangers":{"description":"Request to add a new arranger to the existing arrangers","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:arrangers","value":[{"id":"id","userName":"api.sample@egencia.com"}]}]}},"Request to add a new custom data field to the existing custom data field list:":{"description":"Request to add a new custom data field to the existing custom data field list:","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:customDataFields","value":[{"name":"CDF label","value":"CDF value"}]}]}},"Request to add a new level 1 approver to the existing level1Approvers list":{"description":"Request to add a new level 1 approver to the existing level1Approvers list","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:approvers.level1Approvers","value":[{"userName":"api.sample@egencia.com"}]}]}},"Request to add a new level 1 as well as level 2 approver to the existing level1Approvers and level2Approvers list":{"description":"Request to add a new level 1 as well as level 2 approver to the existing level1Approvers and level2Approvers list","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","value":{"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"id":"id"}],"level2Approvers":[{"userName":"api.sample@egencia.com"}]}}}}]}},"Request to add a new role to the existing roles":{"description":"Request to add a new role to the existing roles","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"roles","value":["ARRANGER"]}]}},"Request to add a phone number and update the home address":{"description":"Request to add a phone number and update the home address","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"phoneNumbers","value":[{"type":"MOBILE","value":"+44-1234512345","primary":false}]},{"op":"replace","path":"addresses[type eq \"HOME\"].streetAddress","value":"1010 Broadway Ave"}]}},"Request to add a preference to the existing preferences":{"description":"Request to add a preference to the existing preferences","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:preferences","value":[{"lob":"HOTEL","smoking":"0","specialRequest":"Quiet room"}]}]}},"Request to add/update first name, last name and date of birth":{"description":"Request to add/update first name, last name and date of birth","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","value":{"name":{"givenName":"First Name","familyName":"Last Name"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"dateOfBirth":"1988-01-26"}}}]}},"Request to add/update status of user":{"description":"Request to add/update status of user","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","value":{"active":false}}]}},"Request to remove a custom data field identified by a filter":{"description":"Request to remove a custom data field identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:customDataFields[name eq \"CDF label\"]"}]}},"Request to remove a document identified by a filter":{"description":"Request to remove a document identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:documents[type eq \"PAS\"]"}]}},"Request to remove a single loyalty program identified by a filter":{"description":"Request to remove a single loyalty program identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"remove","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms[lob eq \"AIR\" and name eq \"Delta SkyMiles\"]"}]}},"Request to replace ALL loyalty programs with the given list":{"description":"Request to replace ALL loyalty programs with the given list","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms","value":[{"lob":"HOTEL","name":"S-Card","issuingSupplierCode":"T4","type":"LC","value":"S12345"}]}]}},"Request to replace traveler group with a new one.":{"description":"Request to replace traveler group with a new one.","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"groups","value":[{"value":"General"}]}]}},"Request to update WORK type email, username, ssoId, authentication mode":{"description":"Request to update WORK type email, username, ssoId, authentication mode","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"emails[type eq \"WORK\"].value","value":"api.sample@egencia.com"},{"op":"add","value":{"userName":"api.sample@egencia.com","urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}}}]}},"Request to update a single loyalty program identified by a filter":{"description":"Request to update a single loyalty program identified by a filter","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:loyaltyPrograms[lob eq \"AIR\" and name eq \"Delta SkyMiles\"]","value":{"lob":"AIR","name":"Delta SkyMiles","issuingSupplierCode":"DL","value":"0987654321","validFrom":"2024-01-01","validTo":"2032-12-31"}}]}},"Request to update the notification settings and service levels":{"description":"Request to update the notification settings and service levels","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:settings.notifications.reservationEmail","value":"NORMAL"},{"op":"replace","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:serviceLevelIds","value":["12345"]}]}},"Request with multiple patch operations":{"description":"Request with multiple patch operations","value":{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:customDataFields","value":[{"name":"ff test","value":"ff test value"},{"name":"Test CDF","value":"Test CDF"}]},{"op":"add","path":"urn:ietf:params:scim:schemas:extension:egencia:2.0:User:companyId","value":"23"},{"op":"add","value":{"userName":"abcd","name":{"givenName":"Abcd"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"companyId":"23"}}},{"op":"replace","path":"addresses[type eq \"HOME\"].streetAddress","value":"1010 Broadway Ave"},{"op":"replace","path":"addresses[type eq \"HOME\"]","value":{"streetAddress":"911 Universal City Plaza","locality":"Hollywood","region":"CA","postalCode":"91608","country":"USA","formatted":"911 Universal City Plaza\nHollywood, CA 91608 US"}},{"op":"replace","value":{"emails":[{"value":"test@example.com","type":"WORK","primary":true}]}},{"op":"replace","value":{"phoneNumbers":[{"value":"+91-9999999999","type":"HOME","primary":true}]}},{"op":"add","path":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:employeeNumber","value":"11111"}]}}},"schema":{"$ref":"#/components/schemas/ScimPatchSchema"}}},"description":"SCIM compliant patch operation schema","required":true},"responses":{"200":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"meta":{"created":"2024-07-17T00:00:00.000Z","lastModified":"2024-07-17T00:00:00.000Z","location":"{baseUrl}/openconnect/api/scim/v3/Users/12345"},"id":"egenciaUniqueIdentifier","externalId":"externalSystemIdentifier","userName":"test@example.com","name":{"familyName":"User","formatted":"","givenName":"Test","middleName":"","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"employeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"id":"45678"}],"level2Approvers":[{"id":"45678"}],"delegateApprovers":[{"id":"123"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"},{"userName":"testarranger"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["12345"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"singleSignOnIdValue","userAuthenticationMode":"SSO","subscribedCompanyIds":["63062","62366","63065"]},"emails":[{"primary":true,"type":"WORK","value":"test@example.com"}],"phoneNumbers":[{"primary":true,"type":"WORK","value":"+44-1234512345"}],"addresses":[{"country":"GB","formatted":"address line 1, cityname, state, GB, 123212","locality":"city name","postalCode":"123212","region":"region or state","streetAddress":"address line 1","type":"WORK"}],"groups":[{"display":"displayName","value":"travelerGroup"}],"roles":["SELF_BOOKER"]},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}}},"description":"<b>Patch api success</b>"},"400":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid parameters","status":"400"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Bad Request</b> : Invalid input or request"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"404":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"User not found, you are trying to access an invalid or non existent user.","status":"404","data":[{"attribute":"id","message":"Requested user identifier is invalid."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Not Found</b> : Resource Not Found."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Perform patch operation on the user with the given user Id.","tags":["SCIM User Sync V3"]},"put":{"description":"<p><b>Important: PUT replaces the complete user profile, it is not a partial update.</b></p>\n<p>&bull; The request body is treated as the full desired state of the user, so send every attribute you want to keep.</p>\n<p>&bull; For the list attributes <tt>loyaltyPrograms</tt>, <tt>documents</tt>, <tt>customDataFields</tt> and <tt>phoneNumbers</tt> the list in the request is synchronised with the stored one: entries that are missing from the request are <b>deleted</b> and entries that are new are created.\n    For example, sending a PUT without <tt>loyaltyPrograms</tt> deletes all the loyalty programs of the user, and sending only one loyalty program deletes the others.</p>\n<p>&bull; <tt>externalId</tt> is taken from the request as it is, the stored value is not kept for you. Send back the value returned for the user, otherwise the user is updated without an <tt>externalId</tt>.</p>\n<p>&bull; <tt>preferences</tt>: when the attribute is not sent the existing preferences are left unchanged. When it is sent, the request is written as the new set of preferences, so include every line of business you want to keep. An empty list does not delete the existing preferences.</p>\n<p>&bull; <tt>addresses</tt>: when no address is sent the existing HOME address is deleted.</p>\n<p>&bull; <tt>groups</tt>: when no traveler group is sent the default traveler group of the company is set.</p>\n<p>&bull; <tt>settings</tt>: when it is not sent the notification setting <tt>reservationEmail</tt> is reset to <tt>NORMAL</tt>.</p>\n<p>&bull; For the other list attributes (<tt>roles</tt>, <tt>arrangers</tt>, <tt>arrangerGroups</tt>, approvers) send the complete list you want the user to have, and use PATCH to add or remove individual entries.</p>\n<p>&bull; To change only some attributes, either <b>GET the user first and send back the complete resource with your changes</b>, or use <b>PATCH</b> which only touches the attributes named in its operations.</p>\n<p><b>Attribute reference</b></p>\n<p>Attributes of the user resource, with their exact JSON syntax. Attributes of the Egencia extension must be sent inside the\n<tt>urn:ietf:params:scim:schemas:extension:egencia:2.0:User</tt> object (for PATCH with a <tt>path</tt>, prefix the path with this URN and a colon).\nDate values use the ISO 8601 format <tt>YYYY-MM-DD</tt>. Please refer the Enumerations section for the full list of values supported.</p>\n<div>\n<table>\n    <thead>\n    <tr><th>Attribute</th><th>Type</th><th>Required</th><th>Allowed values / format / limits</th></tr>\n    </thead>\n    <tbody>\n    <tr><td>id</td><td>String</td><td>Read-only</td><td>Egencia unique id of the user. Taken from the <tt>userId</tt> in the URL path. If it is sent in the body it must be a positive whole number, otherwise the request is rejected.</td></tr>\n    <tr><td>externalId</td><td>String</td><td>No</td><td>Identifier of the user in the provisioning client.</td></tr>\n    <tr><td>userName</td><td>String</td><td>Yes, unless <tt>userType</tt> is <tt>GUEST</tt></td><td>Valid email address, maximum 60 characters.</td></tr>\n    <tr><td>name.givenName</td><td>String</td><td>Yes</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.familyName</td><td>String</td><td>Yes</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.middleName</td><td>String</td><td>No</td><td>Maximum 40 characters.</td></tr>\n    <tr><td>name.formatted</td><td>String</td><td>No</td><td>Formatted full name.</td></tr>\n    <tr><td>name.honorificPrefix</td><td>String</td><td>Conditional</td><td>The title label (e.g. Mr., Ms.), see the Title enumeration. The label must match exactly (case sensitive), an unknown label counts as a missing title. When a user of a non-US point of sale is updated (PUT) it is required, a missing value is rejected; when the user is created a default title is applied. For a user of the US point of sale it cannot be changed, unless title support is enabled for the company.</td></tr>\n    <tr><td>userType</td><td>String</td><td>No</td><td>Defaults to <tt>NORMAL</tt>. <tt>NORMAL</tt> or <tt>GUEST</tt> (case sensitive).</td></tr>\n    <tr><td>active</td><td>Boolean</td><td>Yes</td><td><tt>true</tt> or <tt>false</tt>.</td></tr>\n    <tr><td>preferredLanguage</td><td>String</td><td>No</td><td>One of es, da, de, el, en, fr, it, nl, pt, fi, cs, et, lv, lt, hu, mt, pl, sk, sl, bg, ro, tr, zh, nb, sv (not case sensitive). A locale made of such a language and a country, e.g. <tt>en-GB</tt>, is also accepted when it is a valid locale.</td></tr>\n    <tr><td>emails[]</td><td>List</td><td>Yes</td><td>Exactly one entry: <tt>type</tt> = <tt>WORK</tt> (required, send it exactly as <tt>WORK</tt>: a lower case value passes the validation but the email is not applied), <tt>value</tt> = valid email address (required), <tt>primary</tt> = boolean.</td></tr>\n    <tr><td>phoneNumbers[]</td><td>List</td><td>No</td><td>Each entry: <tt>type</tt> = <tt>MOBILE</tt>, <tt>HOME</tt> or <tt>WORK</tt> (required, case insensitive); <tt>value</tt> in international format, starting with '+' and a valid country code, e.g. <tt>+44-1234512345</tt> or <tt>+441234512345</tt> (required); <tt>primary</tt> = boolean. When a user is updated only one number per type is kept (the first one sent).</td></tr>\n    <tr><td>addresses[]</td><td>List</td><td>No</td><td>If sent, exactly one entry: <tt>type</tt> = <tt>HOME</tt> (required, case insensitive); <tt>streetAddress</tt>, <tt>postalCode</tt> and <tt>country</tt> are required; <tt>region</tt>, <tt>locality</tt> and <tt>formatted</tt> are optional. <tt>country</tt> is a 2 or 3 letter ISO country code (the response returns 2 letters in versions 2 and 3, and 3 letters in version 1).</td></tr>\n    <tr><td>groups[]</td><td>List</td><td>No</td><td>At most one traveler group: <tt>value</tt> = name of the traveler group as on the Egencia website (required), <tt>display</tt> optional. When no group is sent the default traveler group of the company is set. An unknown group name is rejected, except for companies that have the default traveler group fallback enabled, where the default group is set instead.</td></tr>\n    <tr><td>roles[]</td><td>List of String</td><td>No</td><td>Roles available for the company, e.g. <tt>SELF_BOOKER</tt>, <tt>ARRANGER</tt>, <tt>FLEXIBLE_ARRANGER</tt> (only where enabled for the company), <tt>MANAGE_USERS</tt>, <tt>GUEST_MANAGER</tt>. A role that is not valid for the company is rejected. <tt>APPROVER</tt> is not set through the roles: it is ignored, and rejected where the approver role is deprecated.</td></tr>\n    <tr><td colspan=\"4\"><b>Enterprise extension : urn:ietf:params:scim:schemas:extension:enterprise:2.0:User</b></td></tr>\n    <tr><td>employeeNumber</td><td>String</td><td>No</td><td>Employee number of the user.</td></tr>\n    <tr><td colspan=\"4\"><b>Egencia extension : urn:ietf:params:scim:schemas:extension:egencia:2.0:User</b></td></tr>\n    <tr><td>companyId</td><td>String</td><td>No</td><td>Egencia company (organization) id of the user. When omitted in a PUT, the company of the access token is used.</td></tr>\n    <tr><td>dateOfBirth</td><td>String (date)</td><td>No</td><td><tt>YYYY-MM-DD</tt>, cannot be in the future.</td></tr>\n    <tr><td>userAuthenticationMode</td><td>String</td><td>No</td><td><tt>SSO</tt> or <tt>LOGIN</tt> (case sensitive), defaults to <tt>LOGIN</tt>.</td></tr>\n    <tr><td>singleSignOnId</td><td>String</td><td>No</td><td>With <tt>SSO</tt> it defaults to the <tt>userName</tt> when omitted. With <tt>LOGIN</tt> it must be equal to the <tt>userName</tt> when sent.</td></tr>\n    <tr><td>approvers.level1Approvers[]<br/>approvers.level2Approvers[]<br/>approvers.delegateApprovers[]</td><td>List</td><td>No</td><td>Each entry identifies an existing user by <tt>id</tt>, <tt>userName</tt> or <tt>externalId</tt>. When <tt>approvers</tt> is sent it must contain at least <tt>level1Approvers</tt> or <tt>delegateApprovers</tt>, <tt>level2Approvers</tt> alone is rejected.</td></tr>\n    <tr><td>serviceLevelIds[]</td><td>List of String</td><td>No</td><td>Service level ids of the user.</td></tr>\n    <tr><td>arrangerGroups[]</td><td>List of String</td><td>No</td><td>Arranger groups of the company. The user must have an arranger role (<tt>ARRANGER</tt> or <tt>FLEXIBLE_ARRANGER</tt>).</td></tr>\n    <tr><td>arrangers[]</td><td>List</td><td>No</td><td>Existing users: <tt>id</tt> (numeric Egencia id, without leading zero) or <tt>userName</tt>. Use either ids or usernames in one request: when any entry has an <tt>id</tt>, the entries that only have a <tt>userName</tt> are ignored.</td></tr>\n    <tr><td>customDataFields[]</td><td>List</td><td>No</td><td><tt>name</tt> (required): name of a custom data field defined for the company. <tt>value</tt> (required): for a LIST type field it must be one of the values defined on the Egencia website, for a free text field any text of at most 50 characters (a longer value is rejected). If the same name is sent more than once, the last one is used.</td></tr>\n    <tr><td>documents[]</td><td>List</td><td>No</td><td><tt>type</tt> (required): <tt>PAS</tt>, <tt>ID</tt>, <tt>DL</tt>, <tt>HR_PERMIT</tt>, <tt>TWC_PERMIT</tt>, <tt>EEP_HM</tt>, <tt>TP_TW</tt>, <tt>ID_ARMY</tt>, <tt>PRI_FOREIGNER</tt>, <tt>ID_DIPLOMATIC</tt>, <tt>ID_BIRTH</tt>, <tt>DOM_TC</tt>. PAS, ID and DL are always accepted, the other types only where the point of sale supports them. Only one document per type is allowed, except for PAS. <tt>value</tt> (required). <tt>issueDate</tt> and <tt>expirationDate</tt> (<tt>YYYY-MM-DD</tt>): the expiration date must be in the future and after the issue date. <tt>issueLocation</tt> (city). <tt>issueCountry</tt>: 2 or 3 letter ISO country code.</td></tr>\n    <tr><td>loyaltyPrograms[]</td><td>List</td><td>No</td><td><tt>lob</tt> (required): <tt>AIR</tt>, <tt>HOTEL</tt>, <tt>RAIL</tt>, <tt>CAR</tt>. <tt>name</tt> (required): name of a loyalty program defined for the company, unknown names are rejected; for AIR, RAIL and CAR the <tt>lob</tt> must match the line of business of the program. <tt>issuingSupplierCode</tt> (required). <tt>value</tt>: membership id of 1 to 30 characters, required except for UK RAIL. <tt>type</tt>: optional, when omitted it is taken from the program (AIR, RAIL, CAR), when sent it must match the type of the program. <tt>code</tt> (optional). <tt>class</tt> (RAIL only): <tt>FIRST</tt> or <tt>SECOND</tt>. <tt>validFrom</tt> and <tt>validTo</tt> (<tt>YYYY-MM-DD</tt>): <tt>validTo</tt> must be in the future and after <tt>validFrom</tt>.</td></tr>\n    <tr><td>preferences[]</td><td>List</td><td>No</td><td><tt>lob</tt> (required): <tt>AIR</tt>, <tt>HOTEL</tt>, <tt>RAIL</tt> or <tt>CAR</tt>. All values are sent as text. AIR: <tt>preferredDepartureAirport</tt> (IATA code), <tt>seatType</tt> and <tt>mealType</tt> (values configured for the point of sale). RAIL: <tt>seatType</tt> and <tt>seatRoom</tt> (values configured for the point of sale), <tt>seatDirection</tt>, <tt>seatSolo</tt>, <tt>seatFreeOfCharge</tt> (<tt>0</tt> or <tt>1</tt>). HOTEL: <tt>smoking</tt> (<tt>0</tt>, <tt>1</tt> or <tt>2</tt>). All lines of business: <tt>specialRequest</tt> (1 to 80 characters). An empty list does not delete the existing preferences.</td></tr>\n    <tr><td>settings.notifications.reservationEmail</td><td>String</td><td>No</td><td><tt>NORMAL</tt> (default) or <tt>NONE_EXCEPT_MY_ETICKETS</tt>. <tt>ALL</tt> is not supported and is rejected.</td></tr>\n    <tr><td>settings.notifications.outOfPolicyPurchaseEmails[]</td><td>List of String</td><td>No</td><td>Valid email addresses to notify on out of policy purchases.</td></tr>\n    </tbody>\n</table>\n</div>\n","operationId":"updateUser","parameters":[{"description":"Id of the user to be updated","in":"path","name":"userId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"examples":{"Update user with basic and extension attributes":{"description":"Update user with basic and extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"}}},"Update user with basic attributes":{"description":"Update user with basic attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"]}},"Update user with basic, extension and egencia extension attributes":{"description":"Update user with basic, extension and egencia extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"userName":"approverone@egencia.com"}],"level2Approvers":[{"userName":"approvertwo@egencia.com"}],"delegateApprovers":[{"userName":"approver@egencia.com"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Cdf Name","value":"Cdf Value"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["123"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}}},"Update user with minimal attributes":{"description":"Update user with minimal attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":""},"userType":"NORMAL","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}]}}},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}},"application/scim+json":{"examples":{"Update user with basic and extension attributes":{"description":"Update user with basic and extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"}}},"Update user with basic attributes":{"description":"Update user with basic attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"]}},"Update user with basic, extension and egencia extension attributes":{"description":"Update user with basic, extension and egencia extension attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":"I","formatted":"Test I User","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"phoneNumbers":[{"type":"MOBILE","value":"+14254204087"}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}],"groups":[{"value":"General"}],"roles":["SELF_BOOKER"],"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"testEmployeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"userName":"approverone@egencia.com"}],"level2Approvers":[{"userName":"approvertwo@egencia.com"}],"delegateApprovers":[{"userName":"approver@egencia.com"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Cdf Name","value":"Cdf Value"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["123"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"api.sample@egencia.com","userAuthenticationMode":"SSO"}}},"Update user with minimal attributes":{"description":"Update user with minimal attributes","value":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"id":"egenciaUniqueIdentifier","userName":"test@egencia.com","name":{"familyName":"User","givenName":"Test","middleName":""},"userType":"NORMAL","active":true,"emails":[{"type":"WORK","value":"test@egencia.com","primary":true}],"addresses":[{"type":"HOME","streetAddress":"1415 140TH AVE NE APT 15","locality":"Bellevue","region":"WA","postalCode":"98005","country":"US","formatted":"1415 140TH AVE NE APT 15"}]}}},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}}},"description":"User Schema to be updated","required":true},"responses":{"200":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:egencia:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"meta":{"created":"2024-07-17T00:00:00.000Z","lastModified":"2024-07-17T00:00:00.000Z","location":"{baseUrl}/openconnect/api/scim/v3/Users/12345"},"id":"egenciaUniqueIdentifier","externalId":"externalSystemIdentifier","userName":"test@example.com","name":{"familyName":"User","formatted":"","givenName":"Test","middleName":"","honorificPrefix":"Mr."},"userType":"NORMAL","preferredLanguage":"en","active":true,"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":"employeeNumberValue"},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"approvers":{"level1Approvers":[{"id":"45678"}],"level2Approvers":[{"id":"45678"}],"delegateApprovers":[{"id":"123"}]},"arrangerGroups":["arrangerGroup1"],"arrangers":[{"id":"56789"},{"userName":"testarranger"}],"companyId":"egenciaCompanyId","customDataFields":[{"name":"Primary cost center","value":"Test cost center"}],"dateOfBirth":"1988-01-01","documents":[{"expirationDate":"2030-10-10","issueCountry":"US","issueDate":"2020-10-10","issueLocation":"city","type":"PAS","value":"ABCDE1234"}],"loyaltyPrograms":[{"issuingSupplierCode":"T4","lob":"HOTEL","name":"S-Card","type":"LC","validFrom":"2020-10-10","validTo":"2025-10-10","value":"S12345"}],"preferences":[{"lob":"AIR","mealType":"178","preferredDepartureAirport":"","seatType":"1","specialRequest":"Any special request"},{"lob":"RAIL","seatDirection":"Forward","seatRoom":"Lower","seatSolo":true,"seatType":"1"},{"lob":"HOTEL","smoking":"Smoking","specialRequest":"Any special request"},{"lob":"CAR","specialRequest":"Any special request"}],"serviceLevelIds":["12345"],"settings":{"notifications":{"reservationEmail":"validReservationEmailValue"}},"singleSignOnId":"singleSignOnIdValue","userAuthenticationMode":"SSO","subscribedCompanyIds":["63062","62366","63065"]},"emails":[{"primary":true,"type":"WORK","value":"test@example.com"}],"phoneNumbers":[{"primary":true,"type":"WORK","value":"+44-1234512345"}],"addresses":[{"country":"GB","formatted":"address line 1, cityname, state, GB, 123212","locality":"city name","postalCode":"123212","region":"region or state","streetAddress":"address line 1","type":"WORK"}],"groups":[{"display":"displayName","value":"travelerGroup"}],"roles":["SELF_BOOKER"]},"schema":{"$ref":"#/components/schemas/UserSchemaV2"}}},"description":"<b>Updated</b>."},"400":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid parameters","status":"400"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Bad Request</b> : Invalid input or request"},"401":{"content":{"application/scim+json":{"example":{"error":{"code":"EGE-ER-4001","message":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"schema":{"$ref":"#/components/schemas/UnauthorizedErrorSchema"}}},"description":"<b>Unauthorized</b> : <i>Authentication token</i> empty, invalid or expired."},"403":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Unauthorised access, you do not have sufficient permissions to perform this action. Contact your admin.","status":"403"},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Forbidden</b> : User not Validated for operation."},"422":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Invalid or missing parameters encountered, we are unable to process your request.","status":"422","data":[{"attribute":"userName","message":"userName needs to be specified and cannot be empty or null"}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Invalid input</b> : Invalid or missing required input."},"500":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"Your request could not be completed due to some error. Please try again later.","status":"500","data":[{"attribute":"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.loyaltyPrograms","message":"Error occurred while processing loyalty program associations."}]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Internal Server Error</b> : Unable to process request."},"503":{"content":{"application/scim+json":{"example":{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"detail":"We are unable to process your request right now. Please try again later.","status":"503","data":[]},"schema":{"$ref":"#/components/schemas/ErrorSchema"}}},"description":"<b>Service unavailable</b> : Unable to process request at the moment."}},"security":[{"OAuth2":[]}],"summary":"Updates an existing user in the system with the requested information.","tags":["SCIM User Sync V3"]}}},"components":{"schemas":{"AddressSchema":{"type":"object","description":"The complex model containing contact address attributes of the user.","properties":{"country":{"type":"string","description":"The value of the user address country. It should be 3 letters (alpha-3) or 2 letters (alpha-2) ISO country code of the address. This field is mandatory and cannot be empty. Version 1 of the APIs support 3 letter country code while version 2 supports 2 letter country code","maxLength":3,"minLength":2},"formatted":{"type":"string","description":"The formatted address value."},"locality":{"type":"string","description":"The locality of the contact address."},"postalCode":{"type":"string","description":"The postal code of the address. This field is mandatory and cannot be empty.","minLength":1},"region":{"type":"string","description":"The region or city of the contact address. This field is mandatory and cannot be empty."},"streetAddress":{"type":"string","description":"The value of the street address or address line 1. This field is mandatory and cannot be empty.","minLength":1},"type":{"type":"string","description":"The type of physical address.","enum":["HOME"]}},"required":["country","postalCode","region","streetAddress","type"],"title":"AddressSchema"},"AllApproversSchemaV2":{"type":"object","description":"Approver details for the user like level 1, level 2 approvers etc. Approver of a user must already exist and its unique id needs to be passed to associate that approver with a user. The Username (email value) or TUID (Egencia ID) to be set as the Approver of the user.","properties":{"delegateApprovers":{"type":"array","description":"Delegate Approver details for the user. Delegate Approver of a user must already exist and its unique id needs to be passed to associate that as a delegate to a user with Approver role","items":{"$ref":"#/components/schemas/ApproverSchemaV2"}},"level1Approvers":{"type":"array","description":"Level 1 approvers associated with the user.","items":{"$ref":"#/components/schemas/ApproverSchemaV2"}},"level2Approvers":{"type":"array","description":"Level 2 approvers associated with the user.","items":{"$ref":"#/components/schemas/ApproverSchemaV2"}}},"title":"ApproverSchemaV2"},"ApproverSchema":{"type":"object","description":"Approver details for the user like level 1, level 2 approvers etc. Approver of a user must already exist and its unique id needs to be passed to associate that approver with a user. The Username (email value) or TUID (Egencia ID) to be set as the Approver of the user.","properties":{"delegateApprovers":{"type":"array","description":"Delegate Approver details for the user. Delegate Approver of a user must already exist and its unique id needs to be passed to associate that as a delegate to a user with Approver role","items":{"type":"string"}},"level1Approvers":{"type":"array","description":"Level 1 approvers associated with the user.","items":{"type":"string"}},"level2Approvers":{"type":"array","description":"Level 2 approvers associated with the user.","items":{"type":"string"}}},"title":"ApproverSchema"},"ApproverSchemaV2":{"type":"object","description":"The complex model containing approver's id, userName, and externalId.","properties":{"externalId":{"type":"string","description":"External id of the approver associated with the user."},"id":{"type":"string","description":"User id of the approver associated with the user.","pattern":"([1-9]([0-9]*))"},"userName":{"type":"string","description":"Username of the approver associated with the user."}},"title":"ApproverSchemaV2"},"ArrangerSchema":{"type":"object","description":"The complex model containing arrangers of the user.","properties":{"email":{"type":"string"},"id":{"type":"string","description":"User id of the arranger associated with the user.","pattern":"([1-9]([0-9]*))"},"userName":{"type":"string","description":"Username of the arranger associated with the user."}},"title":"ArrangerSchema"},"ContactSchema":{"type":"object","description":"The complex model containing contact attributes of the user.","properties":{"primary":{"type":"boolean","description":"Identifier flag to determine whether the contact is primary or not."},"type":{"type":"string","description":"The type of contact e.g. home, work, mobile, etc."},"value":{"type":"string","description":"The value of the contact in international format. The number should follow this pattern : +[country code]-[area code][phone number] eg. +44-1234512345, or +[country code][area code][phone number] eg. +441234512345.  Please follow this link to know more : https://www.itu.int/rec/T-REC-E.123-200102-I/en","minLength":1}},"required":["type","value"],"title":"ContactSchema"},"CustomDataFieldSchema":{"type":"object","description":"Egencia reporting fields. A complex attribute containing custom data fields associated with the user.","properties":{"name":{"type":"string","description":"The name of the custom data field definition. This field is mandatory and cannot be empty. By default, maximum supported characters is 50.","minLength":1},"value":{"type":"string","description":"The value of the custom data field code which needs to be associated with the user. This field is mandatory and cannot be empty. If the custom data field is of LIST type, the value provided must match with value on Egencia website. By default, maximum supported characters is 30 for LIST type and 50 for FREE_FIELD.","minLength":1}},"required":["name","value"],"title":"CustomDataFieldSchema"},"DataSchema":{"type":"object","description":"The data schema for representing error details of different attributes","properties":{"attribute":{"type":"string","description":"The name of the schema-defined attribute, if missing or invalid."},"message":{"type":"string","description":"The error message related to the erroneous attribute."},"value":{"type":"string","description":"Invalid attribute value"}},"required":["attribute","message"],"title":"DataSchema"},"DocumentSchema":{"type":"object","description":"The complex model containing user document details like passport, Id card, etc.","properties":{"expirationDate":{"type":"string","format":"date","description":"The expiration date of the document. (ISO 8601 date format YYYY-MM-DD)"},"issueCountry":{"type":"string","description":"The value of the document issue country. It should be 3 letters (alpha-3) or 2 letters (alpha-2) ISO country code of the document issuing country. Version 1 of the APIs support 3 letter country code while version 2 supports 2 letter country code","maxLength":3,"minLength":2},"issueDate":{"type":"string","format":"date","description":"The issuing date of the document. (ISO 8601 date format YYYY-MM-DD)"},"issueLocation":{"type":"string","description":"The name of the document issuing city."},"type":{"type":"string","description":"The type code of the document e.g. passport, ID card, etc. Except China and Hong Kong, for rest of the countries we only support documents of type PAS, ID & DL. Please refer the <a href='#Document type'>Enumerations</a> section for the values supported"},"value":{"type":"string","description":"The value of the document. This field is mandatory and cannot be empty.","minLength":1}},"required":["type","value"],"title":"DocumentSchema"},"EgenciaExtensionUserSchemaV2":{"type":"object","description":"The extended custom attributes specific to Egencia travel management system.","properties":{"approvers":{"$ref":"#/components/schemas/AllApproversSchemaV2","description":"Approver details for the user like level 1, level 2 approvers etc. Approver of a user must already exist and its unique id needs to be passed to associate that approver with a user. The Username (email value) or TUID (Egencia ID) to be set as the Approver of the user."},"arrangerGroups":{"type":"array","description":"The arranger groups to which the user is associated with. The user must have an arranger role to get associated to an arranger group.","items":{"type":"string"}},"arrangers":{"type":"array","description":"Arrangers for the user. Arranger of a user must already exist and its unique id needs to be passed to associate that arranger with a user","items":{"$ref":"#/components/schemas/ArrangerSchema"}},"companyId":{"type":"string","description":"Egencia website unique ID. The organization Id or company Id associated with the user."},"customDataFields":{"type":"array","description":"Egencia reporting fields. A complex attribute containing custom data fields associated with the user.","items":{"$ref":"#/components/schemas/CustomDataFieldSchema"}},"dateOfBirth":{"type":"string","description":"The date of birth of the user. (ISO 8601 date format YYYY-MM-DD)"},"documents":{"type":"array","description":"A complex attribute containing documents associated with the user.","items":{"$ref":"#/components/schemas/DocumentSchema"}},"loyaltyPrograms":{"type":"array","description":"A complex attribute containing details of loyalty programs associated with the user.","items":{"$ref":"#/components/schemas/LoyaltyProgramSchema"}},"preferences":{"type":"array","description":"A complex attribute containing details of the user preferences.","items":{"$ref":"#/components/schemas/PreferenceSchema"}},"serviceLevelIds":{"type":"array","description":"The service level details of the user.","items":{"type":"string"}},"settings":{"$ref":"#/components/schemas/UserSettingsSchema","description":"User settings model"},"singleSignOnId":{"type":"string","description":"The single sign-on id of the user. It is the SSO ID used for authentication. It will be username handled by Auth if not provided."},"subscribedCompanyIds":{"type":"array","description":"The GPIDs, associated with the requested user's company, that are subscribed by the partner whose token is used. Populated only for partner tokens; it is null for customer tokens.","items":{"type":"string"},"readOnly":true},"userAuthenticationMode":{"type":"string","description":"The case sensitive Authentication mode of the user. Values supported are LOGIN or SSO. It is mandatory if the company is SSO_OR_LOGIN."}},"title":"EgenciaExtensionUserSchemaV2"},"EmailSchema":{"type":"object","description":"The complex model containing email details of the user.","properties":{"primary":{"type":"boolean","description":"Identifier flag to determine whether the address is primary or not."},"type":{"type":"string","description":"Type of email. Ex. WORK. Please refer the <a href='#Email type'>Enumerations</a> section for the values supported.","enum":["WORK"]},"value":{"type":"string","description":"The value of the email address. It needs to be in a standard format and cannot be empty.","minLength":1}},"required":["type","value"],"title":"EmailSchema"},"EnterpriseUserSchema":{"type":"object","description":"The extended custom attributes specific to Egencia travel management system.","properties":{"approvers":{"$ref":"#/components/schemas/ApproverSchema","description":"Approver details for the user like level 1, level 2 approvers etc. Approver of a user must already exist and its unique id needs to be passed to associate that approver with a user. The Username (email value) or TUID (Egencia ID) to be set as the Approver of the user."},"arrangerGroups":{"type":"array","description":"The arranger groups to which the user is associated with. The user must have an arranger role to get associated to an arranger group.","items":{"type":"string"}},"arrangers":{"type":"array","description":"Arrangers for the user. Arranger of a user must already exist and its unique id needs to be passed to associate that arranger with a user","items":{"$ref":"#/components/schemas/ArrangerSchema"}},"customDataFields":{"type":"array","description":"Egencia reporting fields. A complex attribute containing custom data fields associated with the user.","items":{"$ref":"#/components/schemas/CustomDataFieldSchema"}},"dateOfBirth":{"type":"string","description":"The date of birth of the user. (ISO 8601 date format YYYY-MM-DD)"},"documents":{"type":"array","description":"A complex attribute containing documents associated with the user.","items":{"$ref":"#/components/schemas/DocumentSchema"}},"employeeNumber":{"type":"string","description":"The employee number of the requested user. This field is only supported for EU point of sale."},"loyaltyPrograms":{"type":"array","description":"A complex attribute containing details of loyalty programs associated with the user.","items":{"$ref":"#/components/schemas/LoyaltyProgramSchema"}},"organization":{"type":"string","description":"Egencia website unique ID. The organization Id or company Id associated with the user. This field is mandatory and cannot be empty.","minLength":1},"preferences":{"type":"array","description":"A complex attribute containing details of the user preferences.","items":{"$ref":"#/components/schemas/PreferenceSchema"}},"serviceLevelIds":{"type":"array","description":"The service level details of the user.","items":{"type":"string"}},"settings":{"$ref":"#/components/schemas/UserSettingsSchema","description":"User settings model"},"singleSignOnId":{"type":"string","description":"The single sign-on id of the user. It is the SSO ID used for authentication. It will be username handled by Auth if not provided."},"userAuthenticationMode":{"type":"string","description":"The case sensitive Authentication mode of the user. Values supported are LOGIN or SSO. This field is mandatory."}},"required":["organization","userAuthenticationMode"],"title":"EnterpriseUserSchema"},"EnterpriseUserSchemaV2":{"type":"object","description":"Enterprise attributes for User profile.","properties":{"employeeNumber":{"type":"string","description":"The employee number of the requested user. This field is only supported for EU point of sale."}},"title":"EnterpriseUserSchemaV2"},"ErrorSchema":{"type":"object","description":"The error schema for representing error details.","properties":{"data":{"type":"array","description":"The list of data objects associated with the error. (e.g. invalid attributes). Omitted when the error has no attribute-level details.","items":{"$ref":"#/components/schemas/DataSchema"}},"detail":{"type":"string","description":"The detailed description of the error."},"meta":{"$ref":"#/components/schemas/MetaSchema","description":"The attribute containing the resource metadata."},"schemas":{"type":"array","description":"The schema urns for the associated resource.","items":{"type":"string"},"uniqueItems":true},"status":{"type":"string","description":"The status code of the error."}},"required":["detail","schemas","status"],"title":"ErrorSchema"},"GroupSchema":{"type":"object","description":"The complex model containing details of traveller group to which user is associated.","properties":{"display":{"type":"string","description":"The displayable value of the group."},"value":{"type":"string","description":"Egencia Traveler Group - the value of the group to which the user is associated. This field is mandatory and cannot be empty and must match with value on Egencia website.","minLength":1}},"required":["value"],"title":"GroupSchema"},"ListResponse":{"type":"object","description":"This is a list response schema containing the resources returned based on the filtering condition.","properties":{"Resources":{"type":"array","items":{"$ref":"#/components/schemas/UserSchema"}},"meta":{"$ref":"#/components/schemas/MetaSchema","description":"The attribute containing the resource metadata."},"schemas":{"type":"array","description":"The schema urns for the associated resource.","items":{"type":"string"},"uniqueItems":true}},"required":["schemas"],"title":"ListResponse"},"ListResponseV2":{"type":"object","description":"This is a list response schema containing the resources returned based on the filtering condition.","properties":{"Resources":{"type":"array","items":{"$ref":"#/components/schemas/UserSchemaV2"}},"itemsPerPage":{"type":"integer","format":"int32"},"meta":{"$ref":"#/components/schemas/MetaSchema","description":"The attribute containing the resource metadata."},"schemas":{"type":"array","description":"The schema urns for the associated resource.","items":{"type":"string"},"uniqueItems":true},"startIndex":{"type":"integer","format":"int32"},"totalResults":{"type":"integer","format":"int32"}},"required":["schemas"],"title":"ListResponseV2"},"LoyaltyProgramSchema":{"type":"object","description":"The complex model containing details of loyalty programs associated with the user.","properties":{"accreditive":{"type":"boolean"},"class":{"type":"string","description":"The cabin class to which the loyalty program applies to. e.g. FIRST, SECOND. (applicable to Rail only)"},"code":{"type":"string","description":"The loyalty program code associated with the membership program."},"issuingSupplierCode":{"type":"string","description":"The name of the supplier issuing the loyalty program. This field is mandatory and cannot be empty.","minLength":1},"lob":{"type":"string","description":"The line of business type to which loyalty program is associated e.g. AIR, CAR, HOTEL, RAIL. Please refer the <a href='#LOB type'>Enumerations</a> section for the values supported."},"name":{"type":"string","description":"The name of the loyalty membership program.  This field is mandatory and cannot be empty.","minLength":1},"type":{"type":"string","description":"The type of loyalty program if any. Please refer the <a href='#Loyalty program type'>Enumerations</a> section for the values supported."},"validFrom":{"type":"string","format":"date","description":"The date from which the loyalty program is valid. (ISO 8601 date format YYYY-MM-DD)"},"validTo":{"type":"string","format":"date","description":"The date to which the loyalty program is valid. (ISO 8601 date format YYYY-MM-DD)"},"value":{"type":"string","description":"The value of the loyalty program or membership id. This field is mandatory except for UK RAIL loyalty programs and cannot be greater than 30 characters","maxLength":30,"minLength":1}},"required":["issuingSupplierCode","lob","name","value"],"title":"LoyaltyProgramSchema"},"MetaSchema":{"type":"object","description":"A complex attribute containing resource metadata.","properties":{"created":{"type":"string","format":"date-time","description":"The creation time metadata."},"lastModified":{"type":"string","format":"date-time","description":"The last modification time."},"location":{"type":"string","format":"uri","description":"The location of the user resource accessible by URI."},"version":{"type":"string","description":"The version of the resource."}},"title":"MetaSchema"},"NameSchema":{"type":"object","description":"The complex model containing name attributes of the user.","properties":{"familyName":{"type":"string","description":"The family or last name of the user. This field is mandatory and cannot be empty. Maximum supported characters is 40.","maxLength":40,"minLength":0},"formatted":{"type":"string","description":"The formatted name of the user"},"givenName":{"type":"string","description":"The given or first name of the user. This field is mandatory and cannot be empty. Maximum supported characters is 40.","maxLength":40,"minLength":0},"honorificPrefix":{"type":"string","description":"The honorific prefix(es) of the User, or title in most Western languages (e.g., \"Ms\". given the full name \"Ms. Barbara Jane Jensen, III\"). This field is mandatory except for companies located in US for which it's ignored. Please refer the <a href='#Honorific Prefix'>Enumerations</a> section for the values supported. You need to pass label in this field. This field is not supported in version 1 of user APIs."},"middleName":{"type":"string","description":"The middle name of the user. Maximum supported characters is 40.","maxLength":40,"minLength":0}},"required":["familyName","givenName"],"title":"NameSchema"},"PreferenceSchema":{"type":"object","description":"The complex model containing details of the user preferences.","properties":{"lob":{"type":"string","description":"The line of business type to which preference is associated e.g. AIR, CAR, HOTEL, RAIL. This field is mandatory and cannot be empty. Please refer the <a href='#LOB type'>Enumerations</a> section for the values supported.","minLength":1},"mealType":{"type":"string","description":"The preferred meal type. (applicable to Air only)"},"preferredDepartureAirport":{"type":"string","description":"The IATA code of the preferred departure airport. (applicable to Air only)"},"seatDirection":{"type":"string","description":"The preferred seat direction e.g. Forward, Any, etc. (applicable to Rail only)"},"seatFreeOfCharge":{"type":"string","description":"The flag to specify if a seat free of charge is to be booked (applicable to Rail only).","enum":["0","1"]},"seatRoom":{"type":"string","description":"The preferred seat room e.g. Upper, Lower, Any. (applicable to Rail only)"},"seatSolo":{"type":"string","description":"The flag to specify if a solo seat is preferred for first class (applicable to Rail only).","enum":["0","1"]},"seatType":{"type":"string","description":"The preferred seat type e.g. Window, Aisle, etc."},"smoking":{"type":"string","description":"The smoking room preference e.g. Smoking, Non-smoking, Any. (applicable to Hotel only).","enum":["0","1","2"]},"specialRequest":{"type":"string","description":"Any special request. The value cannot be greater than 80 characters","maxLength":80,"minLength":1}},"required":["lob"],"title":"PreferenceSchema"},"RoleSchema":{"type":"object","description":"The complex model containing role details to which the user is associated.","properties":{"display":{"type":"string","description":"The displayable value of the role."},"primary":{"type":"boolean","description":"The flag to represent if a role is primary or not."},"value":{"type":"string","description":"The value of the role associated with the user. A role is rejected when it is not available for the user's company. Please refer the <a href='#Role'>Enumerations</a> section for the values supported.","enum":["SELF_BOOKER","ARRANGER","FLEXIBLE_ARRANGER","MANAGE_USERS","GUEST_MANAGER"]}},"required":["value"],"title":"RoleSchema"},"ScimPatchOperationSchema":{"type":"object","description":"A complex object for scim patch oeration.","properties":{"op":{"type":"string"},"path":{"type":"string"},"value":{}},"title":"ScimPatchOperation"},"ScimPatchSchema":{"type":"object","description":"The user patch request schema.","properties":{"Operations":{"type":"array","description":"List of scim patch operations.","items":{"$ref":"#/components/schemas/ScimPatchOperationSchema"},"maxItems":2147483647,"minItems":1},"meta":{"$ref":"#/components/schemas/MetaSchema","description":"The attribute containing the resource metadata."},"schemas":{"type":"array","description":"The schema urns for the associated resource.","items":{"type":"string"},"uniqueItems":true}},"required":["Operations","schemas"],"title":"ScimPatchSchema"},"SearchRequest":{"type":"object","description":"The user search schema. Currently it supports only emails with eq operator.","properties":{"filter":{"type":"string","description":"Contains the expression for filtering the request. Currently only search by email, name, username and singleSignOnId is supported with eq operator. This filter attribute can be used to collect Egencia ID by searching via email and Egencia website ID","example":"emails[value eq \"test@xyz.com\"] and urn:ietf:params:scim:schemas:extension:enterprise:2.0:User[organization eq 999]"},"meta":{"$ref":"#/components/schemas/MetaSchema","description":"The attribute containing the resource metadata."},"schemas":{"type":"array","description":"The schema urns for the associated resource.","items":{"type":"string"},"uniqueItems":true}},"required":["filter","schemas"],"title":"SearchRequest"},"UnauthorizedErrorDetail":{"type":"object","description":"The code and message describing the authentication failure.","properties":{"code":{"type":"string","description":"The error code.","example":"EGE-ER-4001"},"message":{"type":"string","description":"The error message.","example":"Unauthorised access, you do not have sufficient permissions to perform this action."}},"required":["code","message"],"title":"UnauthorizedErrorDetailSchema"},"UnauthorizedErrorSchema":{"type":"object","description":"The error schema returned when the authentication token is empty, invalid or expired.","properties":{"error":{"$ref":"#/components/schemas/UnauthorizedErrorDetail","description":"The error details."}},"required":["error"],"title":"UnauthorizedErrorSchema"},"UserNotificationsSchema":{"type":"object","description":"Schema to denote user notifications settings.","properties":{"outOfPolicyPurchaseEmails":{"type":"array","description":"Email ids of users to notify when a purchase is out of policy.","items":{"type":"string"}},"reservationEmail":{"type":"string","description":"The reservation email setting of user. Valid values are : {ALL, NONE_EXCEPT_MY_ETICKETS, NORMAL}. Default value is NORMAL. ALL is supported only for Travel Directors and Manage User roles. Please refer the <a href='#ReservationEmail'>Enumerations</a> section for the values supported."}},"title":"UserNotificationSchema"},"UserSchema":{"type":"object","description":"The user resource schema.","properties":{"active":{"type":"boolean","description":"The status of the user's profile.Please provide 'true' for active user or 'false' inactive user."},"addresses":{"type":"array","description":"The physical contact addresses associated with the user account.","items":{"$ref":"#/components/schemas/AddressSchema"},"maxItems":1,"minItems":1},"displayName":{"type":"string","description":"Accepted but not stored or returned, it can be left out. The display name of the user is set with name.formatted."},"emails":{"type":"array","description":"The email addresses associated with the user account.","items":{"$ref":"#/components/schemas/EmailSchema"},"maxItems":1,"minItems":1},"externalId":{"type":"string","description":"Is an identifier for the user resource as defined by the provisioning client. It is optional and unique within a company. When updating a user, send back the value returned for that user."},"groups":{"type":"array","description":"A list of traveller groups to which the user is associated. The user can be associated with only one traveller group at the moment.","items":{"$ref":"#/components/schemas/GroupSchema"},"maxItems":1,"minItems":0},"id":{"type":"string","description":"Is an unique identifier for the user resource as defined by the service provider. Always returned in responses. It is ignored when creating a user and, when updating a user, the value from the path is used.","readOnly":true},"meta":{"$ref":"#/components/schemas/MetaSchema","description":"The attribute containing the resource metadata."},"name":{"$ref":"#/components/schemas/NameSchema","description":"The name details of the user like first name, last name, etc. This is a mandatory property."},"phoneNumbers":{"type":"array","description":"The phone numbers associated with the user account. Multiple types of phone numbers are supported.","items":{"$ref":"#/components/schemas/ContactSchema"}},"preferredLanguage":{"type":"string","description":"The user's preferred language. This field is not supported for US point of sale. If preferredLanguage is not passed, the default language which is configured for that company is set here. The supported languages are {\"es\",\"da\",\"de\",\"el\",\"en\",\"fr\",\"it\",\"nl\",\"pt\",\"fi\",\"dv\",\"cs\",\"et\",\"lv\",\"lt\",\"hu\",\"mt\",\"pl\",\"sk\",\"sl\",\"bg\",\"ro\",\"tr\",\"zh\",\"nb\",\"sv\"}. eg. en, sv, etc."},"roles":{"type":"array","description":"A list of roles for the user that collectively represent who the user is, e.g. Self-booker, Arranger, Flexible Arranger etc.","items":{"$ref":"#/components/schemas/RoleSchema"},"uniqueItems":true},"schemas":{"type":"array","description":"The schema urns for the associated resource.","items":{"type":"string"},"uniqueItems":true},"title":{"type":"string","description":"The user's salutation or title. This field is mandatory except for companies located in US for which it's ignored. Please refer the <a href='#Title'>Enumerations</a> section for the values supported."},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"$ref":"#/components/schemas/EnterpriseUserSchema","description":"Extended custom attributes specific to Egencia travel management system."},"userName":{"type":"string","description":"A service provider's unique identifier for the user, typically used by the user to directly authenticate to the service provider. The value must be an email value with valid @ domain. Maximum supported characters is 60.","maxLength":60,"minLength":0},"userType":{"type":"string","description":"The user's type. This field is mandatory. Please refer the <a href='#User type'>Enumerations</a> section for the values supported.","enum":["NORMAL","GUEST"]}},"required":["active","emails","name","schemas","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User","userType"],"title":"UserSchema"},"UserSchemaV2":{"type":"object","description":"The user resource schema.","properties":{"active":{"type":"boolean","description":"The status of the user's profile.Please provide 'true' for active user or 'false' inactive user."},"addresses":{"type":"array","description":"The physical contact addresses associated with the user account.","items":{"$ref":"#/components/schemas/AddressSchema"},"maxItems":1,"minItems":1},"emails":{"type":"array","description":"The email addresses associated with the user account.","items":{"$ref":"#/components/schemas/EmailSchema"},"maxItems":1,"minItems":1},"externalId":{"type":"string","description":"Is an identifier for the user resource as defined by the provisioning client. It is optional, unique within a company and only returned when a value has been set. When updating a user, send back the value returned for that user."},"groups":{"type":"array","description":"A list of traveller groups to which the user is associated. The user can be associated with only one traveller group at the moment.","items":{"$ref":"#/components/schemas/GroupSchema"},"maxItems":1,"minItems":0},"id":{"type":"string","description":"Is an unique identifier for the user resource as defined by the service provider. Always returned in responses. It is ignored when creating a user and, when updating a user, the value from the path is used. If it is sent in the request body it must be a positive whole number, otherwise the request is rejected.","readOnly":true},"meta":{"$ref":"#/components/schemas/MetaSchema","description":"The attribute containing the resource metadata."},"name":{"$ref":"#/components/schemas/NameSchema","description":"The name details of the user like first name, last name, etc. This is a mandatory property."},"phoneNumbers":{"type":"array","description":"The phone numbers associated with the user account. Multiple types of phone numbers are supported.","items":{"$ref":"#/components/schemas/ContactSchema"}},"preferredLanguage":{"type":"string","description":"The user's preferred language. This field is not supported for US point of sale. If preferredLanguage is not passed, the default language which is configured for that company is set here. The supported languages are {\"es\",\"da\",\"de\",\"el\",\"en\",\"fr\",\"it\",\"nl\",\"pt\",\"fi\",\"dv\",\"cs\",\"et\",\"lv\",\"lt\",\"hu\",\"mt\",\"pl\",\"sk\",\"sl\",\"bg\",\"ro\",\"tr\",\"zh\",\"nb\",\"sv\"}. For Canada point of sale, supported languages are CA_fr and CA_en only."},"roles":{"type":"array","description":"A list of roles for the user that collectively represent who the user is, e.g. SELF_BOOKER, ARRANGER, FLEXIBLE_ARRANGER, MANAGE_USERS, GUEST_MANAGER, etc.","items":{"type":"string"},"uniqueItems":true},"schemas":{"type":"array","description":"The schema urns for the associated resource.","items":{"type":"string"},"uniqueItems":true},"urn:ietf:params:scim:schemas:extension:egencia:2.0:User":{"$ref":"#/components/schemas/EgenciaExtensionUserSchemaV2","description":"Extended custom attributes specific to Egencia travel management system."},"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"$ref":"#/components/schemas/EnterpriseUserSchemaV2","description":"Enterprise attributes for User profile."},"userName":{"type":"string","description":"A service provider's unique identifier for the user, typically used by the user to directly authenticate to the service provider. The value must be an email value with valid @ domain. Maximum supported characters is 60. Mandatory unless userType is GUEST.","maxLength":60,"minLength":0},"userType":{"type":"string","description":"The user's type. Defaults to NORMAL when it is not passed. Please refer the <a href='#User type'>Enumerations</a> section for the values supported.","enum":["NORMAL","GUEST"]}},"required":["active","emails","name","schemas"],"title":"UserSchemaV2"},"UserSettingsSchema":{"type":"object","description":"Schema to denote the user settings.","properties":{"notifications":{"$ref":"#/components/schemas/UserNotificationsSchema","description":"User Notifications Schema"}},"title":"UserSettingSchema"}},"securitySchemes":{"OAuth2":{"flows":{"clientCredentials":{"tokenUrl":"https://apis.egencia.com/auth/v1/token"}},"type":"oauth2"}}}}