{"info":{"_postman_id":"22e4af32-883b-4d1d-b882-539b248d8895","name":"Hypercare API [External] - STA","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"16306120","collectionId":"22e4af32-883b-4d1d-b882-539b248d8895","publishedId":"2sB2cbbesW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-04-16T21:33:36.000Z"},"item":[{"name":"Authentication","item":[{"name":"Password Grant Request","event":[{"listen":"prerequest","script":{"id":"954ef1d7-5249-4c44-8580-553dacdeacf1","exec":["const username = pm.environment.get(\"username\");","const organizationUrl = pm.environment.get(\"organization_url\");","const concatenatedUsername = organizationUrl + \":\" + username;","const encodedUsername = Buffer.from(concatenatedUsername).toString('base64');","","pm.environment.set(\"encoded_username\", encodedUsername);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"9afa095f-8025-4fc7-bd26-4aab13d7baa6","exec":["console.log(pm.response.body);","","const jsonResponse = pm.response.json()","const access_token = jsonResponse.access_token;","pm.environment.set(\"access_token\", access_token);","pm.environment.set(\"refresh_token\", jsonResponse.refresh_token);","pm.environment.set(\"api_bearer\", access_token);"],"type":"text/javascript","packages":{}}}],"id":"89bb874e-555b-4371-803c-7fce15c1f3ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{client_id}}"},{"key":"password","value":"{{client_secret}}"}]},"isInherited":false},"method":"POST","header":[{"key":"X-Device-ID","value":"71d1792b-0848-4c22-bb28-417e5c390fee","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"password","type":"text"},{"key":"username","value":"{{encoded_username}}","type":"text"},{"key":"password","value":"{{password}}","type":"text"},{"key":"scopes","value":"","type":"text","uuid":"d220f178-8607-4561-acbc-c0d57a09d355"}]},"url":"{{auth_service_base_url}}/oauth/v1/token","description":"<h2 id=\"generate-access-token-via-password-grant\">Generate Access Token via Password Grant</h2>\n<p>This HTTP POST request is used to obtain an access token by providing the user's credentials and grant type.</p>\n<p>Use Basic Authorization type. The basic token is a Base64 encoded string generated by combining the <code>Client ID</code> and <code>Client Secret</code>. You can retrieve the basic token by Base64 encoding the following string:<br /><code>{{client_id}}:{{client_secret}}</code></p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>grant_type</code> (text) - The type of grant being requested.</p>\n<ul>\n<li>Use \"password\"</li>\n</ul>\n</li>\n<li><p><code>username</code> (text) - <strong>Base64 encoding of the user's organizationURL and username.</strong></p>\n</li>\n<li><p><code>password</code> (text) - The password of the user.</p>\n</li>\n</ul>\n<h4 id=\"example-username-encoding-pre-script\">Example <code>username</code> encoding pre-script</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">const username = pm.environment.get(\"username\");\nconst organizationUrl = pm.environment.get(\"organization_url\");\nconst concatenatedUsername = organizationUrl + \":\" + username;\nconst encodedUsername = Buffer.from(concatenatedUsername).toString('base64');\npm.environment.set(\"encoded_username\", encodedUsername);\n\n</code></pre>\n<h3 id=\"returns\">Returns</h3>\n<p>Upon successful execution, the response will include the following fields:</p>\n<ul>\n<li><p><code>access_token</code> - The access token for authentication.</p>\n</li>\n<li><p><code>token_type</code> - The type of token.</p>\n</li>\n<li><p><code>expires_at</code> - The expiration time of the token.</p>\n</li>\n<li><p><code>refresh_token</code> - The refresh token for obtaining a new access token.</p>\n</li>\n<li><p><code>scope</code> - The scope of the access token.</p>\n</li>\n<li><p><code>identity</code> - An object containing user identity information.</p>\n</li>\n</ul>\n<h3 id=\"example-response\">Example Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"access_token\": \"\",\n    \"token_type\": \"\",\n    \"expires_at\": \"\",\n    \"refresh_token\": \"\",\n    \"scope\": [\"\"],\n    \"identity\": {\n        \"__typename\": \"\",\n        \"id\": \"\",\n        \"username\": \"\",\n        \"firstName\": \"\",\n        \"lastName\": \"\",\n        \"role\": \"\",\n        \"status\": \"\",\n        \"workStatus\": \"\",\n        \"eulaStatus\": true\n    }\n}\n\n</code></pre>\n","urlObject":{"path":["oauth","v1","token"],"host":["{{auth_service_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"81de690c-d9d6-41fd-8389-abe6b1057088","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"password","type":"text"},{"key":"username","value":"{{encoded_username}}","type":"text"},{"key":"password","value":"{{password}}","type":"text"}]},"url":"https://{{auth_hostname}}/oauth/v1/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 15 Mar 2024 18:07:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"458"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"ad82e3e7-c068-4309-8421-23246e443164"},{"key":"Vary","value":"Origin"},{"key":"Cache-Control","value":"no-store"},{"key":"Pragma","value":"no-cache"},{"key":"Server","value":"Ktor/debug"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"b3aYJ70efe679u70bdea6dJak8770fc28\",\n    \"token_type\": \"Bearer\",\n    \"expires_at\": \"2024-04-14T18:07:18.468Z\",\n    \"refresh_token\": \"ae1a92da80b57jaksq75a61cbb5ci5\",\n    \"scope\": [\n        \"\"\n    ],\n    \"identity\": {\n        \"__typename\": \"Identity\",\n        \"id\": \"89047228-92e5-4b61-9d76-385kje7e6fba\",\n        \"username\": \"user001\",\n        \"firstName\": \"Bob\",\n        \"lastName\": \"Smith\",\n        \"role\": \"test user\",\n        \"status\": \"active\",\n        \"workStatus\": \"on_shift\",\n        \"eulaStatus\": false\n    }\n}"},{"id":"83df4c44-b524-44d6-be4b-967ba1e1234f","name":"Failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"password","type":"text"},{"key":"username","value":"{{encoded_username}}","type":"text"},{"key":"password","value":"{{password}}","type":"text"}]},"url":"https://{{auth_hostname}}/oauth/v1/token"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 15 Mar 2024 18:10:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"73"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"ffd784da-337b-442d-86ed-e0cf6b9ecdef"},{"key":"Vary","value":"Origin"},{"key":"Server","value":"Ktor/debug"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"invalid_grant\",\n    \"error_description\": \"invalid username/password\"\n}"}],"_postman_id":"89bb874e-555b-4371-803c-7fce15c1f3ac"}],"id":"4c5dc1a7-880b-4ee3-baa5-2a2fa11edc3c","description":"<h2 id=\"authorizationauthentication-endpoints\">Authorization/Authentication Endpoints</h2>\n<p>This folder contains endpoints for authorization and authentication. These endpoints are used to authenticate users and generate access tokens for accessing protected resources.</p>\n<h3 id=\"base-url\">Base URL</h3>\n<p>Below are the list of base URLs to use to access the authorization server. Use the appropriate URL for the region you are authenticating with.</p>\n<p>CA: <a href=\"https://auth.prod.ca.hypercare.com\">https://auth.prod.ca.hypercare.com</a></p>\n<p>US: <a href=\"https://auth.prod.us.hypercare.com\">https://auth.prod.us.hypercare.com</a></p>\n<p>EU: <a href=\"https://auth.prod.eu.hypercare.com\">https://auth.prod.eu.hypercare.com</a></p>\n","_postman_id":"4c5dc1a7-880b-4ee3-baa5-2a2fa11edc3c"},{"name":"Public (Unauthenticated)","item":[{"name":"Get public user basic info","id":"5e6a328a-4509-47a2-b1e9-cb99f5e77289","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetPublicUser($email: String!, $organizationUrl: String!) {\n    user(email: $email, organizationUrl: $organizationUrl) {\n        ... on Error {\n            __typename\n            message\n        }\n        ... on PublicUser {\n            firstName\n            lastName\n            role\n            accountStatus\n            isDomainEmail\n            loginMethods\n            isAdmin\n            \n            ssoProfiles {\n                organization {\n                    name\n                    imageURL\n                }\n                auth0Id\n                ssoId\n                ssoVendor\n                domain\n            }\n        }\n    }\n}\n","variables":"{\n    \"email\": \"{{email}}\",\n    \"organizationUrl\": \"{{organizationURL}}\"\n}"}},"url":"{{api_base_url}}/v2/graphql/public","description":"<h2 id=\"get-public-user-data\">Get Public User Data</h2>\n<p>This GraphQL query retrieves user information based on the provided email and organization URL. It checks the user's membership status within the organization and returns the appropriate user details or error messages.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p>email (String): The email address of the user.</p>\n</li>\n<li><p>organizationUrl (String): The URL of the organization.</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li><p><code>PublicUser</code>: Contains the user details if the user is found and active.</p>\n</li>\n<li><p><code>OrganizationNotFound</code>: Returned if the organization URL does not match any existing organization.</p>\n</li>\n<li><p><code>UserNotFound</code>: Returned if no user is found for the given email address within the organization.</p>\n</li>\n<li><p><code>MemberBlocked</code>: Returned if the user's address is blacklisted for the organization.</p>\n</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationNotFound</code>: Returned if the organization URL does not match any existing organization.</p>\n</li>\n<li><p><code>UserNotFound</code>: Returned if no user is found for the given email address within the organization.</p>\n</li>\n<li><p><code>MemberBlocked</code>: Returned if the user's address is blacklisted for the organization.</p>\n</li>\n</ul>\n","urlObject":{"path":["v2","graphql","public"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"b2c18643-11e3-4c2d-8c7a-384d4f2248c8","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetPublicUser($email: String!, $organizationUrl: String!) {\n    user(email: $email, organizationUrl: $organizationUrl) {\n        ... on Error {\n            __typename\n            message\n        }\n        ... on PublicUser {\n            firstName\n            lastName\n            accountStatus\n            loginScopes\n        }\n    }\n}\n","variables":"{\n    \"email\": \"test@gmail.com\",\n    \"organizationUrl\": \"ds.hypercare.com\"\n}\n"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"e3ddc37b-fb28-4dcc-bcca-7ea63d71ef6f"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"209"},{"key":"Date","value":"Tue, 28 May 2024 18:21:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"user\": {\n            \"firstName\": \"Signup\",\n            \"lastName\": \"Tester\",\n            \"accountStatus\": \"active\",\n            \"loginScopes\": [\n                \"sso\",\n                \"otp\",\n                \"password\"\n            ]\n        }\n    }\n}"},{"id":"f1048087-07ec-4c47-b418-ef542cdc2b66","name":"Success - with SSO profile info","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetPublicUser($email: String!, $organizationUrl: String!) {\n    user(email: $email, organizationUrl: $organizationUrl) {\n        ... on Error {\n            __typename\n            message\n        }\n        ... on PublicUser {\n            firstName\n            lastName\n            accountStatus\n            loginScopes\n\n            ssoProfiles {\n                organization {\n                    name\n                    imageUrl\n                }\n                auth0Id\n                ssoId\n                ssoVendor\n                domain\n            }\n        }\n    }\n}\n","variables":"{\n    \"email\": \"test@hypercare.com\",\n    \"organizationUrl\": \"hc.hypercare.com\"\n}\n"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 05 Jul 2024 18:23:57 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"630"},{"key":"Connection","value":"close"},{"key":"X-Request-ID","value":"e0b70523-2e53-4c1c-888f-56465bc09ae3"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"user\": {\n            \"firstName\": \"Hamad\",\n            \"lastName\": \"Ahmad\",\n            \"accountStatus\": \"active\",\n            \"loginScopes\": [\n                \"otp\",\n                \"password\",\n                \"sso\"\n            ],\n            \"ssoProfiles\": [\n                {\n                    \"organization\": {\n                        \"name\": \"Hypercare\",\n                        \"imageUrl\": \"https://hypercare.github.io/public-uploads-prod/organization_logos/hypercare_icon_v2-01.png\"\n                    },\n                    \"auth0Id\": \"conn_01HVPXH6KHWCT3Q8PMEYBH14RX\",\n                    \"ssoId\": \"conn_01HVPXH6KHWCT3Q8PMEYBH14RX\",\n                    \"ssoVendor\": \"workos\",\n                    \"domain\": \"hypercare.com\"\n                }\n            ]\n        }\n    }\n}"},{"id":"12a9a53d-27a5-4aed-96bc-9ed7af479405","name":"Error - User Not Found","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetLoginScopeForUsername($email: String!, $organizationUrl: String!) {\n    user(email: $email, organizationUrl: $organizationUrl) {\n        ... on Error {\n            __typename\n            message\n        }\n        ... on PublicUser {\n            id\n            firstName\n            lastName\n            accountStatus\n            loginScopes\n        }\n    }\n}\n","variables":"{\n    \"email\": \"test@gmail.com\",\n    \"organizationUrl\": \"ds.hypercare.com\"\n}\n"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"216b2fd2-e422-4f82-8ba2-6de7726ac566"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"109"},{"key":"Date","value":"Tue, 28 May 2024 06:34:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"user\": {\n            \"__typename\": \"UserNotFound\",\n            \"message\": \"User not found\"\n        }\n    }\n}"},{"id":"e6a78112-3f0a-44d0-991e-226e80a1169d","name":"Error - Organization Not Found","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetLoginScopeForUsername($email: String!, $organizationUrl: String!) {\n    user(email: $email, organizationUrl: $organizationUrl) {\n        ... on Error {\n            __typename\n            message\n        }\n        ... on PublicUser {\n            id\n            firstName\n            lastName\n            accountStatus\n            loginScopes\n        }\n    }\n}\n","variables":"{\n    \"email\": \"test@gmail.com\",\n    \"organizationUrl\": \"ds2.hypercare.com\"\n}\n"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"422dc9df-f41c-40a0-85c0-0903dee2b8ed"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"125"},{"key":"Date","value":"Tue, 28 May 2024 06:34:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"user\": {\n            \"__typename\": \"OrganizationNotFound\",\n            \"message\": \"Organization not found\"\n        }\n    }\n}"}],"_postman_id":"5e6a328a-4509-47a2-b1e9-cb99f5e77289"},{"name":"Create Account","id":"ee946f67-71cd-40ee-8c08-7d2dc7df9c4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateAccount($challengeId: String!, $organizationUrl: URL!, $userDetails: SignupUserDetails!, $inviteCode: String) {\n    createAccount(challengeId: $challengeId, organizationUrl: $organizationUrl, userDetails: $userDetails, inviteCode: $inviteCode) {\n        ... on SelfUser {\n            id\n            firstName\n            lastName\n        }\n        ... on Error {\n            __typename\n            message\n        }\n    }\n}","variables":"{\n    \"challengeId\": {{challengeId}},\n    \"organizationUrl\": {{organizationURL}},\n    \"userDetails\": {\n        \"firstName\": {{firstName}},\n        \"lastName\": {{lastName}},\n        \"role\": {{role}},\n        \"password\": {{password}}\n    },\n    \"inviteCode\": {{inviteCode}}\n}"}},"url":"{{api_base_url}}/v2/graphql/public","description":"<h2 id=\"create-new-account-through-challengeid\">Create New Account Through ChallengeId</h2>\n<p>This GraphQL query creates a new user account within an organization. It validates the user details, verifies the address challenge, and ensures that the user meets the necessary requirements before creating the account.</p>\n<h3 id=\"challenge-id\">Challenge ID</h3>\n<p>The challengeId is a unique identifier used to verify the address associated with the user account. It ensures that the address provided by the user is valid and can be used for account creation.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p>organizationUrl (String): The URL of the organization.</p>\n</li>\n<li><p>userDetails (Object): An object containing the user's details:</p>\n<ul>\n<li><p>firstName (String): The first name of the user.</p>\n</li>\n<li><p>lastName (String): The last name of the user.</p>\n</li>\n<li><p>role (String): The role / job title of the user.</p>\n</li>\n<li><p>password (String): The password for the user account.</p>\n</li>\n</ul>\n</li>\n<li><p>challengeId (String): The ID of the address verification challenge.</p>\n</li>\n<li><p>inviteCode (String, optional): The invite code for the organization. If a user is not signing up with an email domain that is associated with out organization, an invite code is needed in order to join.</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<p>An object representing the result of the account creation process. If the account creation is successful, it returns the user details. If there is an error, it returns an error type and message.</p>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>InvalidDetailsError</code>: Returned if the user details do not meet the required validation criteria.</p>\n</li>\n<li><p><code>InvalidChallengeError</code>: Returned if the address verification challenge is invalid or cannot be verified.</p>\n</li>\n<li><p><code>OrganizationNotFoundError</code>: Returned if the organization URL does not match any existing organization.</p>\n</li>\n<li><p><code>MemberBlockedError</code>: Returned if the address is blacklisted for the organization.</p>\n</li>\n<li><p><code>AccessForbiddenError</code>: Returned if there is an error finalizing the user creation process.</p>\n</li>\n</ul>\n","urlObject":{"path":["v2","graphql","public"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"9b83e046-4cb9-4bff-bf9d-39cb84d835cd","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateAccount($challengeId: String!, $organizationUrl: URL!, $userDetails: SignupUserDetails!, $inviteCode: String) {\n    createAccount(challengeId: $challengeId, organizationUrl: $organizationUrl, userDetails: $userDetails, inviteCode: $inviteCode) {\n        ... on SelfUser {\n            id\n            firstName\n            lastName\n        }\n        ... on Error {\n            __typename\n            message\n        }\n    }\n}","variables":"{\n    \"challengeId\": \"b6d568fb-2c6f-4653-9fdd-680a62a54d3f\",\n    \"organizationUrl\": \"ds.hypercare.com\",\n    \"userDetails\": {\n        \"firstName\": \"Signup\",\n        \"lastName\": \"Tester\",\n        \"role\": \"Tester\",\n        \"password\": \"testPassword1234!\"\n    },\n    \"inviteCode\": \"ds11\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"b7bb4df0-3429-43af-a8b3-9c702ac5e15d"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"156"},{"key":"Date","value":"Mon, 27 May 2024 19:46:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"createAccount\": {\n            \"id\": \"e361294b-b90a-4c89-807c-2b3196dd0d95\",\n            \"firstName\": \"Signup\",\n            \"lastName\": \"Tester\"\n        }\n    }\n}"},{"id":"5b167bde-8c1f-4dd7-ac65-d5270216ae9b","name":"Error - ChallengeNotFound","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateAccount($challengeId: String!, $organizationUrl: URL!, $userDetails: SignupUserDetails!, $inviteCode: String) {\n    createAccount(challengeId: $challengeId, organizationUrl: $organizationUrl, userDetails: $userDetails, inviteCode: $inviteCode) {\n        ... on SelfUser {\n            id\n            username\n        }\n        ... on Error {\n            __typename\n            message\n        }\n    }\n}","variables":"{\n    \"challengeId\": \"b161d32b-c94e-478a-9f44-e01ff9801410\",\n    \"organizationUrl\": \"ds.hypercare.com\",\n    \"userDetails\": {\n        \"firstName\": \"Signup\",\n        \"lastName\": \"Tester\",\n        \"role\": \"Tester\",\n        \"password\": \"testPassword1234!\"\n    },\n    \"inviteCode\": null\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"9be2faae-5e31-41be-bbf7-20a2207dfdb7"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"128"},{"key":"Date","value":"Mon, 27 May 2024 14:12:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"createAccount\": {\n            \"__typename\": \"ChallengeNotFound\",\n            \"message\": \"Challenge not found\"\n        }\n    }\n}"},{"id":"1694594d-a40b-48c8-952e-2df0d4b90f4f","name":"Error - InputValidationError: user details error","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateAccount($challengeId: String!, $organizationUrl: URL!, $userDetails: SignupUserDetails!, $inviteCode: String) {\n    createAccount(challengeId: $challengeId, organizationUrl: $organizationUrl, userDetails: $userDetails, inviteCode: $inviteCode) {\n        ... on SelfUser {\n            id\n            username\n        }\n        ... on Error {\n            __typename\n            message\n        }\n    }\n}","variables":"{\n    \"challengeId\": \"2985c621-71d9-4ef9-803c-f4661fcd4dae\",\n    \"organizationUrl\": \"ds.hypercare.com\",\n    \"userDetails\": {\n        \"firstName\": \"01234567890123456789012345678901234567890123456789\",\n        \"lastName\": \"Tester\",\n        \"role\": \"Tester\",\n        \"password\": \"testPassword1234!\"\n    },\n    \"inviteCode\": null\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"2c8fce27-ee3d-4d1f-8ae4-b81b44cc0680"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"193"},{"key":"Date","value":"Mon, 27 May 2024 14:40:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"createAccount\": {\n            \"__typename\": \"InputValidationError\",\n            \"message\": \"\\\"userDetails.firstName\\\" length must be less than or equal to 40 characters long\"\n        }\n    }\n}"},{"id":"c08afd0e-a3f2-4b1c-ac56-c96960f05df9","name":"Error - AccessForbiddenError: no invite and not org domain","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateAccount($challengeId: String!, $organizationUrl: URL!, $userDetails: SignupUserDetails!, $inviteCode: String) {\n    createAccount(challengeId: $challengeId, organizationUrl: $organizationUrl, userDetails: $userDetails, inviteCode: $inviteCode) {\n        ... on SelfUser {\n            id\n            username\n        }\n        ... on Error {\n            __typename\n            message\n        }\n    }\n}","variables":"{\n    \"challengeId\": \"b6d568fb-2c6f-4653-9fdd-680a62a54d3f\",\n    \"organizationUrl\": \"ds.hypercare.com\",\n    \"userDetails\": {\n        \"firstName\": \"Signup\",\n        \"lastName\": \"Tester\",\n        \"role\": \"Tester\",\n        \"password\": \"testPassword1234!\"\n    },\n    \"inviteCode\": null\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"47849b65-5d6f-4bc5-b3a5-34ccd90eb77b"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"164"},{"key":"Date","value":"Mon, 27 May 2024 15:55:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"createAccount\": {\n            \"__typename\": \"AccessForbiddenError\",\n            \"message\": \"Access Forbidden cannot create user for organization\"\n        }\n    }\n}"},{"id":"0f6978fd-5df5-4272-a8a0-2549c858676e","name":"Error - OrganizationNotFound","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateAccount($challengeId: String!, $organizationUrl: URL!, $userDetails: SignupUserDetails!, $inviteCode: String) {\n    createAccount(challengeId: $challengeId, organizationUrl: $organizationUrl, userDetails: $userDetails, inviteCode: $inviteCode) {\n        ... on SelfUser {\n            id\n            firstName\n            lastName\n        }\n        ... on Error {\n            __typename\n            message\n        }\n    }\n}","variables":"{\n    \"challengeId\": \"b6d568fb-2c6f-4653-9fdd-680a62a54d3f\",\n    \"organizationUrl\": \"ds.hypercare.com\",\n    \"userDetails\": {\n        \"firstName\": \"Signup\",\n        \"lastName\": \"Tester\",\n        \"role\": \"Tester\",\n        \"password\": \"testPassword1234!\"\n    },\n    \"inviteCode\": \"ds11\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"e2dda68f-b7b2-42ce-b6ba-1dc90b1cdd70"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"146"},{"key":"Date","value":"Tue, 25 Jun 2024 15:29:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"createAccount\": {\n            \"__typename\": \"OrganizationNotFound\",\n            \"message\": \"No matching organization URL found\"\n        }\n    }\n}"},{"id":"76370b02-1340-4090-9b53-8a0a24f8cdfe","name":"Error - InvalidInviteCode","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateAccount($challengeId: String!, $organizationUrl: URL!, $userDetails: SignupUserDetails!, $inviteCode: String) {\n    createAccount(challengeId: $challengeId, organizationUrl: $organizationUrl, userDetails: $userDetails, inviteCode: $inviteCode) {\n        ... on SelfUser {\n            id\n            firstName\n            lastName\n        }\n        ... on Error {\n            __typename\n            message\n        }\n    }\n}","variables":"{\n    \"challengeId\": \"b6d568fb-2c6f-4653-9fdd-680a62a54d3f\",\n    \"organizationUrl\": \"hc.hypercare.com\",\n    \"userDetails\": {\n        \"firstName\": \"Signup\",\n        \"lastName\": \"Tester\",\n        \"role\": \"Tester\",\n        \"password\": \"testPassword1234!\"\n    },\n    \"inviteCode\": \"ds11\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"1dd81a2f-70af-4a44-b4ed-25e8f0a23b2d"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"136"},{"key":"Date","value":"Tue, 25 Jun 2024 15:33:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"createAccount\": {\n            \"__typename\": \"InvalidInviteCode\",\n            \"message\": \"Error verifying invite code\"\n        }\n    }\n}"}],"_postman_id":"ee946f67-71cd-40ee-8c08-7d2dc7df9c4f"},{"name":"Activate Inactive Account","id":"6fd443d0-1039-46ac-be63-33acdff2b81d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ActivateAccount($challengeId: String!, $organizationUrl: URL!, $userDetails: SignupUserDetails!) {\n    activateAccount(challengeId: $challengeId, organizationUrl: $organizationUrl, userDetails: $userDetails) {\n        ... on SelfUser {\n            id\n            firstName\n            lastName\n        }\n        ... on Error {\n            __typename\n            message\n        }\n    }\n}","variables":"{\n    \"challengeId\": {{challengeId}},\n    \"organizationUrl\": {{organizationUrl}},\n    \"userDetails\": {\n        \"firstName\": {{firstName}},\n        \"lastName\": {{lastName}},\n        \"role\": {{role}},\n        \"password\": {{password}}\n    }\n}"}},"url":"{{api_base_url}}/v2/graphql/public","description":"<h2 id=\"activate-inactive-account-via-challengeid\">Activate Inactive Account via ChallengeId</h2>\n<p>This GraphQL query activates an user account by claiming an inactive account associated with a given address. It verifies the address challenge, checks for an inactive member, and updates the user details to activate the account.</p>\n<h3 id=\"challenge-id\">Challenge ID</h3>\n<p>The <code>challengeId</code> is a unique identifier used to verify the address associated with the user account. It ensures that the address provided by the user is valid and can be used for account activation.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationUrl</code> (String): The URL of the organization.</p>\n</li>\n<li><p>userDetails (Object): An object containing the user's details:</p>\n<ul>\n<li><p><code>firstName</code> (String): The first name of the user.</p>\n</li>\n<li><p><code>lastName</code> (String): The last name of the user.</p>\n</li>\n<li><p><code>role</code> (String): The role of the user.</p>\n</li>\n<li><p>password (String, optional): The password for the user account.</p>\n</li>\n</ul>\n</li>\n<li><p><code>challengeId</code> (String): The ID of the address verification challenge.</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<p>An object representing the result of the account activation process. If the account activation is successful, it returns the user details. If there is an error, it returns an error type and message.</p>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationNotFound</code>: Returned if the organization URL does not match any existing organization.</p>\n</li>\n<li><p><code>ShellAccountNotFound</code>: Returned if no inactive member with the given address is found or if the member is not a shell account.</p>\n</li>\n<li><p><code>PasswordRequirementsNotMet</code>: Returned if the organization requires a password and it is not provided.</p>\n</li>\n<li><p><code>ErrorType</code>: Returned for any other errors that occur during the account activation process.</p>\n</li>\n</ul>\n","urlObject":{"path":["v2","graphql","public"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"f40e0d7e-970e-4dd1-b7d8-383b35f8e680","name":"Error - ShellAccountNotFound","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ActivateAccount($challengeId: String!, $organizationUrl: URL!, $userDetails: SignupUserDetails!) {\n    activateAccount(challengeId: $challengeId, organizationUrl: $organizationUrl, userDetails: $userDetails) {\n        ... on SelfUser {\n            id\n            firstName\n            lastName\n        }\n        ... on Error {\n            __typename\n            message\n        }\n    }\n}","variables":"{\n    \"challengeId\": \"b6d568fb-2c6f-4653-9fdd-680a62a54d4f\",\n    \"organizationUrl\": \"ds.hypercare.com\",\n    \"userDetails\": {\n        \"firstName\": \"Activate\",\n        \"lastName\": \"Tester\",\n        \"role\": \"Tester\",\n        \"password\": \"test123!\"\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"3816a253-6c1d-4958-919b-ca8454748018"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"149"},{"key":"Date","value":"Mon, 27 May 2024 20:48:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"activateAccount\": {\n            \"__typename\": \"ShellAccountNotFound\",\n            \"message\": \"Shell account not found for address\"\n        }\n    }\n}"}],"_postman_id":"6fd443d0-1039-46ac-be63-33acdff2b81d"},{"name":"Search Organizations by Name","id":"fe96513a-ddf9-4399-9a61-f8a251f24992","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query SearchOrganizationsByName($name: String!, $pageInfo: CursorPageInput) {\n  searchOrganizationsByName(name: $name, pageInfo: $pageInfo) {\n        ... on PaginatedOrganizationsResponse { \n            __typename\n            pageInfo {\n                hasNextPage\n                startCursor\n                endCursor\n                totalResults\n                resultsCount\n                pageSize\n                nextCursor\n            }\n            organizations {\n                __typename  \n                id\n                name\n                imageURL\n                url\n                loginMethods\n            }\n        }\n    }\n}\n","variables":"{\n    \"name\": \"test\",\n    \"pageInfo\": {\n        \"cursor\": null,\n        \"direction\": \"next\",\n        \"pageSize\": 5\n    }\n}"}},"url":"{{api_base_url}}/v2/graphql/public","description":"<h2 id=\"get-organization-by-name\">Get Organization by Name</h2>\n<p>This GraphQL query retrieves an array of organizations by fuzzy matching against its display name and returns the organization details or an error message if the organization is not found. Only public organizations will be returned. Organizations are private by default. Please contact our Customer Success team if you wish to enable public search for your organization.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>name</code> (String): The name of the organization to search for.</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li><p>An object representing the organization details or an error message. The possible return types are:</p>\n<ul>\n<li><p><code>Organization</code>: Contains the organization details if the organization is found.</p>\n</li>\n<li><p><code>OrganizationNotFound</code>: Returned if no organization with the given name is found.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>OrganizationNotFound</code>: Returned if no organization with the given name is found.</li>\n</ul>\n","urlObject":{"path":["v2","graphql","public"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"e24493b1-4043-4025-91d9-e290a3a27862","name":"Error - no input","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query SearchOrganizationsByName($name: String!, $offset: Int, $limit: Int) {\n  searchOrganizationsByName(name: $name, offset: $offset, limit: $limit) {\n        ... on PaginatedOrganizations { \n            ...FindOrganizationResultFragment\n        }\n    }\n}\nfragment FindOrganizationResultFragment on PaginatedOrganizations {\n    __typename\n    limit\n    offset\n    pageSize\n    total\n    organizations {\n        ...OrganizationFragment\n    }\n}\n\nfragment OrganizationFragment on Organization {\n  __typename  \n  id\n  name\n  imageURL\n  url\n  loginMethods\n}","variables":"{\n    \"name\": \"\",\n    \"offset\": 0,\n    \"limit\": 300\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"3831b61e-ded4-4af0-b2ba-ff1459d0a411"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"137"},{"key":"Date","value":"Thu, 16 Jan 2025 14:56:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"Must provide query string.\",\n            \"name\": \"BadRequestError\",\n            \"statusCode\": 400\n        }\n    ]\n}"},{"id":"dd01b4bf-c2d8-4dae-a3ab-09e21040967a","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query SearchOrganizationsByName($name: String!, $pageInfo: CursorPageInput) {\n  searchOrganizationsByName(name: $name, pageInfo: $pageInfo) {\n        ... on PaginatedOrganizationsResponse { \n            __typename\n            pageInfo {\n                hasNextPage\n                startCursor\n                endCursor\n                totalResults\n                resultsCount\n                pageSize\n                nextCursor\n            }\n            organizations {\n                __typename  \n                id\n                name\n                imageURL\n                url\n                loginMethods\n            }\n        }\n    }\n}\n","variables":"{\n    \"name\": \"org\",\n    \"pageInfo\": {\n        \"cursor\": null,\n        \"direction\": \"next\",\n        \"pageSize\": 5\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"999fff45-cd0d-48f9-a576-7f8afb07b71e"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1745"},{"key":"Date","value":"Thu, 16 Jan 2025 15:40:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"searchOrganizationsByName\": {\n            \"__typename\": \"PaginatedOrganizationsResponse\",\n            \"pageInfo\": {\n                \"hasNextPage\": true,\n                \"startCursor\": null,\n                \"endCursor\": null,\n                \"totalResults\": 15,\n                \"resultsCount\": 5,\n                \"pageSize\": 5,\n                \"nextCursor\": null\n            },\n            \"organizations\": [\n                {\n                    \"__typename\": \"Organization\",\n                    \"id\": 518,\n                    \"name\": \"Cheerful Org\",\n                    \"imageURL\": null,\n                    \"url\": \"cheerful.hypercare.com\",\n                    \"loginMethods\": [\n                        \"sso\",\n                        \"otp\",\n                        \"password\"\n                    ]\n                },\n                {\n                    \"__typename\": \"Organization\",\n                    \"id\": 533,\n                    \"name\": \"NonSsoOrg-Active-Otp\",\n                    \"imageURL\": null,\n                    \"url\": \"appi.hypercare.com\",\n                    \"loginMethods\": [\n                        \"otp\"\n                    ]\n                },\n                {\n                    \"__typename\": \"Organization\",\n                    \"id\": 530,\n                    \"name\": \"NonSsoOrg-Active-OtpPw\",\n                    \"imageURL\": null,\n                    \"url\": \"tifn.hypercare.com\",\n                    \"loginMethods\": [\n                        \"otp\",\n                        \"password\"\n                    ]\n                },\n                {\n                    \"__typename\": \"Organization\",\n                    \"id\": 528,\n                    \"name\": \"NonSsoOrg-Active-OtpPwSso\",\n                    \"imageURL\": null,\n                    \"url\": \"xrxo.hypercare.com\",\n                    \"loginMethods\": [\n                        \"sso\",\n                        \"otp\",\n                        \"password\"\n                    ]\n                },\n                {\n                    \"__typename\": \"Organization\",\n                    \"id\": 531,\n                    \"name\": \"NonSsoOrg-Active-OtpSso\",\n                    \"imageURL\": null,\n                    \"url\": \"5bnd.hypercare.com\",\n                    \"loginMethods\": [\n                        \"sso\",\n                        \"otp\"\n                    ]\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"fe96513a-ddf9-4399-9a61-f8a251f24992"},{"name":"Get Organization by Domain","id":"c2b5c087-f267-46b6-82d1-a337ac19be09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationByDomain($domain: String!) {\n    organizationForDomain(domain: $domain) {\n        ... OrganizationFragment\n    }\n}\n\nfragment OrganizationFragment on Organization {\n  __typename  \n  id\n  name\n  imageURL\n  url\n  isOpenDoor\n}","variables":"{\n    \"domain\": \"{{organizationEmailDomain}}\"\n}"}},"url":"{{api_base_url}}/v2/graphql/public","description":"<h2 id=\"get-organization-by-domain\">Get Organization by Domain</h2>\n<p>This GraphQL query retrieves organization details based on the provided domain. It searches for the organization associated with the given domain and returns the organization details or an error message if the organization is not found.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>domain</code> (String): The domain of the organization to search for.</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li><p>An object representing the organization details or an error message. The possible return types are:</p>\n<ul>\n<li><p><code>Organization</code>: Contains the organization details if the organization is found.</p>\n</li>\n<li><p><code>OrganizationNotFound</code>: Returned if no organization with the given domain is found.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>OrganizationNotFound</code>: Returned if no organization with the given domain is found.</li>\n</ul>\n","urlObject":{"path":["v2","graphql","public"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"2d2901b5-6410-4610-998c-8780f1909e47","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationByDomain($domain: String!) {\n    organizationForDomain(domain: $domain) {\n        ... OrganizationFragment\n    }\n}\n\nfragment OrganizationFragment on Organization {\n  __typename  \n  id\n  name\n  imageURL\n  url\n  isOpenDoor\n}","variables":"{\n    \"domain\":\"acmeteachinghospital.com\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 Dec 2024 18:09:21 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"309"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"5d6f9f75-ac6e-476d-9b4e-e5c4e7b3d0a9"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationForDomain\": {\n            \"__typename\": \"Organization\",\n            \"id\": 2,\n            \"name\": \"ACME Teaching Hospital\",\n            \"imageURL\": \"https://hypercare.github.io/public-uploads-prod/organization_logos/icha-logo.png\",\n            \"url\": \"acme.hypercare.com\",\n            \"isOpenDoor\": true\n        }\n    }\n}"}],"_postman_id":"c2b5c087-f267-46b6-82d1-a337ac19be09"},{"name":"Get Organization by URL","id":"abae99ca-0ccf-4c2a-8ce0-0a6a9d3f9e29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationByURL($url: String!) {\n  findOrganizationByURL(url: $url) {\n    ... FindOrganizationResultFragment\n    }\n}\nfragment FindOrganizationResultFragment on FindOrganizationResult {\n    __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... OrganizationFragment \n}\n\nfragment OrganizationFragment on Organization {\n  __typename\n  id\n  name\n  imageURL\n  url\n  loginMethods\n  isOpenDoor\n}","variables":"{\n    \"url\": \"{{organizationURL}}\"\n}"}},"url":"{{api_base_url}}/v2/graphql/public","description":"<h2 id=\"get-organization-by-url\">Get Organization by URL</h2>\n<p>This GraphQL query retrieves organization details based on the provided URL. It searches for the organization associated with the given URL and returns the organization details or an error message if the organization is not found.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>url</code> (String): The URL of the organization to search for.</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li><p>An object representing the organization details or an error message. The possible return types are:</p>\n<ul>\n<li><p><code>Organization</code>: Contains the organization details if the organization is found.</p>\n</li>\n<li><p><code>OrganizationNotFound</code>: Returned if no organization with the given domain is found.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>OrganizationNotFound</code>: Returned if no organization with the given domain is found.</li>\n</ul>\n","urlObject":{"path":["v2","graphql","public"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"af206a39-d1c9-4344-9db7-6539384e7a53","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationByURL($url: String!) {\n  findOrganizationByURL(url: $url) {\n    ... FindOrganizationResultFragment\n    }\n}\nfragment FindOrganizationResultFragment on FindOrganizationResult {\n    __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... OrganizationFragment \n}\n\nfragment OrganizationFragment on Organization {\n  __typename  \n  id\n  name\n  imageUrl\n  url\n}","variables":"{\n    \"url\":\"ds.hypercare.com\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"ba3631ac-a346-4711-a4cc-bb22ffefae30"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"277"},{"key":"Date","value":"Mon, 27 May 2024 17:04:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"findOrganizationByURL\": {\n            \"__typename\": \"Organization\",\n            \"id\": 14,\n            \"name\": \"ds-sta\",\n            \"imageUrl\": \"https://hypercare.github.io/public-uploads-prod/organization_logos/hypercare_icon_v2-01.png\",\n            \"url\": \"ds.hypercare.com\"\n        }\n    }\n}"}],"_postman_id":"abae99ca-0ccf-4c2a-8ce0-0a6a9d3f9e29"},{"name":"Get Organization by Name","id":"5b905962-be2f-42d3-9b26-24d6c25b8978","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationByName($name: String!) {\n  findOrganizationByName(name: $name) {\n    ... FindOrganizationResultFragment\n    }\n}\nfragment FindOrganizationResultFragment on FindOrganizationResult {\n    __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... OrganizationFragment \n}\n\nfragment OrganizationFragment on Organization {\n  __typename\n  id\n  name\n  imageURL\n  url\n  loginMethods\n  isOpenDoor\n}","variables":"{\n    \"name\": \"{{organizationName}}\"\n}"}},"url":"{{api_base_url}}/v2/graphql/public","description":"<h2 id=\"get-organization-by-name\">Get Organization by Name</h2>\n<p>This GraphQL query retrieves organization details by matching its exact display name and returns the organization details or an error message if the organization is not found.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>name</code> (String): The exact name of the organization to search for.</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li><p>An object representing the organization details or an error message. The possible return types are:</p>\n<ul>\n<li><p><code>Organization</code>: Contains the organization details if the organization is found.</p>\n</li>\n<li><p><code>OrganizationNotFound</code>: Returned if no organization with the given domain is found.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>OrganizationNotFound</code>: Returned if no organization with the given domain is found.</li>\n</ul>\n","urlObject":{"path":["v2","graphql","public"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"f5ba899c-4e6f-4217-9b12-fe2c22ea7ec0","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationByName($name: String!) {\n  findOrganizationByName(name: $name) {\n    ... FindOrganizationResultFragment\n    }\n}\nfragment FindOrganizationResultFragment on FindOrganizationResult {\n    __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... OrganizationFragment \n}\n\nfragment OrganizationFragment on Organization {\n  __typename\n  id\n  name\n  imageURL\n  url\n  loginMethods\n  isOpenDoor\n}","variables":"{\n    \"name\": \"Cheerful Org\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"7f302263-479c-4558-abf8-d5a87de293f4"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"310"},{"key":"Date","value":"Tue, 14 Jan 2025 20:38:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"findOrganizationByName\": {\n            \"__typename\": \"Organization\",\n            \"id\": 518,\n            \"name\": \"Cheerful Org\",\n            \"imageURL\": null,\n            \"url\": \"cheerful.hypercare.com\",\n            \"loginMethods\": [\n                \"sso\",\n                \"otp\",\n                \"password\"\n            ],\n            \"isOpenDoor\": true\n        }\n    }\n}"},{"id":"543b895e-a4d7-4043-a094-19192c112e1f","name":"OrganizationNotFound","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationByName($name: String!) {\n  findOrganizationByName(name: $name) {\n    ... FindOrganizationResultFragment\n    }\n}\nfragment FindOrganizationResultFragment on FindOrganizationResult {\n    __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... OrganizationFragment \n}\n\nfragment OrganizationFragment on Organization {\n  __typename\n  id\n  name\n  imageURL\n  url\n  loginMethods\n  isOpenDoor\n}","variables":"{\n    \"name\": \"CheerfulOrg\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"f6c814b5-1e2b-462b-9af6-9543e7cb13fc"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"143"},{"key":"Date","value":"Tue, 14 Jan 2025 20:38:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"findOrganizationByName\": {\n            \"__typename\": \"OrganizationNotFound\",\n            \"message\": \"Organization not found\"\n        }\n    }\n}"}],"_postman_id":"5b905962-be2f-42d3-9b26-24d6c25b8978"},{"name":"Get Organization by Invite Code","id":"f0d90d75-6b7c-4bf0-8d77-1f875b89a795","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationByInviteCode($code: String!) {\n  findOrganizationByInviteCode(code: $code) {\n    ... FindOrganizationResultFragment\n    }\n}\nfragment FindOrganizationResultFragment on FindOrganizationResult {\n    __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... OrganizationFragment \n}\n\nfragment OrganizationFragment on Organization {\n  __typename  \n  id\n  name\n  imageURL\n  url\n  loginMethods\n  isOpenDoor\n}","variables":"{\n    \"code\": {{inviteCode}}\n}"}},"url":"{{api_base_url}}/v2/graphql/public","description":"<h2 id=\"get-organization-by-invite-code\">Get Organization by Invite Code</h2>\n<p>This GraphQL query retrieves organization details based on the provided invite code. It searches for the organization associated with the given invite code and returns the organization details or an error message if the organization is not found.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>code</code> (String): The invite code of the organization to search for.</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li><p>An object representing the organization details or an error message. The possible return types are:</p>\n<ul>\n<li><p><code>Organization</code>: Contains the organization details if the organization is found.</p>\n</li>\n<li><p><code>OrganizationNotFound</code>: Returned if no organization with the given domain is found.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>OrganizationNotFound</code>: Returned if no organization with the given domain is found.</li>\n</ul>\n","urlObject":{"path":["v2","graphql","public"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"e8ec6a19-2d7e-48aa-b626-6a4842a7c2fa","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationByInviteCode($code: String!) {\n  findOrganizationByInviteCode(code: $code) {\n    ... FindOrganizationResultFragment\n    }\n}\nfragment FindOrganizationResultFragment on FindOrganizationResult {\n    __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... OrganizationFragment \n}\n\nfragment OrganizationFragment on Organization {\n  __typename  \n  id\n  name\n  imageURL\n  url\n  loginMethods\n  isOpenDoor\n}","variables":"{\n    \"code\":\"haipe87\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/public"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 11 Dec 2024 18:13:36 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"398"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"572bb793-a18f-476e-8e6e-633501c50094"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"findOrganizationByInviteCode\": {\n            \"__typename\": \"Organization\",\n            \"id\": 2,\n            \"name\": \"ACME Teaching Hospital\",\n            \"imageURL\": \"https://hypercare.github.io/public-uploads-prod/organization_logos/logo.png\",\n            \"url\": \"acme.hypercare.com\",\n            \"loginMethods\": [\n                \"sso\",\n                \"otp\",\n                \"password\"\n            ],\n            \"isOpenDoor\": true\n        }\n    }\n}"}],"_postman_id":"f0d90d75-6b7c-4bf0-8d77-1f875b89a795"}],"id":"d8a927b0-74f1-4d84-b107-8595540ac56a","_postman_id":"d8a927b0-74f1-4d84-b107-8595540ac56a","description":""},{"name":"Private (Authenticated)","item":[{"name":"Organizational Unit","item":[{"name":"Admin","item":[{"name":"Invite","item":[{"name":"Fetch Invite by ID","id":"a8fac093-847d-40aa-96d5-200143001241","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query UserInvite($inviteId: Int!, $organizationalUnit: OrganizationalUnitInput!) {\n  adminQuery {\n    ... on AdminQuery {\n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        ... on AdminOrganizationQuery {\n          invite(id: $inviteId) {\n            ... on UserInvite {\n              id\n              status\n              organization {\n                id\n                name\n              }\n              invitedBy {\n                id\n                firstName\n                lastName\n                role\n                memberStatus\n              }\n              resolvedBy {\n                id\n                firstName\n                lastName\n                role\n                memberStatus\n              }\n              user {\n                id\n                firstName\n                lastName\n                role\n                memberStatus\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"inviteId\": {{inviteId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-invite-by-id-admin\">Fetch Invite by ID (Admin)</h2>\n<p>GraphQL query for admins to fetch a specific invite by its ID.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>inviteId</code> (Int): The ID of the invite</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the invite, which can contain the invited user information, who they were invited by, and who resolved the invite</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>InviteNotFound</code>: No invite found for the given ID</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"17f06f1e-a83a-41eb-9ce6-ad1670dc1618","name":"Success Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query UserInvite($inviteId: Int!, $organizationalUnit: OrganizationalUnitInput!) {\n  adminQuery {\n    ... on AdminQuery {\n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        ... on AdminOrganizationQuery {\n          invite(id: $inviteId) {\n            ... on UserInvite {\n              id\n              status\n              organization {\n                id\n                name\n              }\n              invitedBy {\n                id\n                firstName\n                lastName\n                role\n                memberStatus\n              }\n              resolvedBy {\n                id\n                firstName\n                lastName\n                role\n                memberStatus\n              }\n              user {\n                id\n                firstName\n                lastName\n                role\n                memberStatus\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"inviteId\": 292\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 03 Jan 2025 15:05:20 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"997"},{"key":"Connection","value":"close"},{"key":"X-Request-ID","value":"daaa5c56-170e-42b1-a5e0-36e143334b45"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminQuery\": {\n            \"organizationalUnit\": {\n                \"invite\": {\n                    \"id\": 292,\n                    \"status\": \"pending_user_acceptance\",\n                    \"organization\": {\n                        \"id\": \"1\",\n                        \"name\": \"Hypercare\"\n                    },\n                    \"invitedBy\": {\n                        \"id\": \"1d4af5d5-b755-492c-bad6-c0b4d58651ea\",\n                        \"firstName\": \"Test001\",\n                        \"lastName\": \"User\",\n                        \"role\": \"Nurse\",\n                        \"memberStatus\": \"active\"\n                    },\n                    \"resolvedBy\": {\n                        \"id\": \"9e026a33-d192-4d5e-a217-85a2834ecbd6\",\n                        \"firstName\": \"SSOUser\",\n                        \"lastName\": \"testQA\",\n                        \"role\": \"QA\",\n                        \"memberStatus\": \"active\"\n                    },\n                    \"user\": {\n                        \"id\": \"e9e18c26-08ed-464e-abcd-d691d6da7779\",\n                        \"firstName\": \"test002@gmail.com\",\n                        \"lastName\": \"\",\n                        \"role\": \"\",\n                        \"memberStatus\": \"inactive\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"a8fac093-847d-40aa-96d5-200143001241"},{"name":"Fetch Paginated Pending Invites With Cursor","id":"fdd46e8f-0fcb-43b1-9e44-0bbcdcda0052","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query FetchPaginatedUsers($organizationalUnit: OrganizationalUnitInput!, $filters: AdminSearchPendingInvitesFilters, $pageInfo: CursorPageInput) {\n  adminQuery {\n    __typename\n    ... on Error {\n      message\n    }\n    ... on AdminQuery { \n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        __typename\n        ... on AdminOrganizationQuery {\n          paginatedPendingInvites(filters: $filters, pageInfo: $pageInfo) {\n            __typename\n            ... on PaginatedPendingInvitesResponse {\n                ...PaginatedPendingInvitesFragment\n            }\n          } \n        }\n      }\n    }\n  }\n}\n\nfragment PaginatedPendingInvitesFragment on PaginatedPendingInvitesResponse {\n    pageInfo {\n        hasNextPage\n        startCursor\n        nextCursor\n        totalResults\n        pageSize\n        resultsCount\n    }\n    invites {\n        id\n        status\n        invitedBy {\n            ...OrganizationMemberFragment\n        }\n        user {\n            ...OrganizationMemberFragment\n        }\n        resolvedBy {\n            ...OrganizationMemberFragment\n        }\n        organization {\n            id\n            name\n        }\n        createdAt\n        updatedAt\n    }\n}\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    id\n    firstName\n    lastName\n    role\n    memberStatus\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"filters\": {\n        \"searchQuery\": null,\n        \"inviteStatus\": [\"pending_user_acceptance\"]\n    },\n    \"pageInfo\": {\n        \"cursor\": null,\n        \"pageSize\": 35\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-paginated-pending-invites-admin\">Fetch Paginated Pending Invites (Admin)</h2>\n<p>GraphQL query for admins to retrieve a paginated list of pending invites for an organization. It supports filtering by invite status and search query, and it uses cursor-based pagination.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organization for which pending invites are being retrieved</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>filters</code> (Object): An object containing the following optional filters</p>\n<ul>\n<li><p><code>searchQuery</code>(String, optional): A search query to filter invites by</p>\n</li>\n<li><p><code>inviteStatus</code> (Array, optional): An array of invite statuses to filter by. Defaults to <code>[InviteStatus.pendingUserAcceptance, InviteStatus.pendingAdminApproval]</code>.</p>\n</li>\n</ul>\n</li>\n<li><p><code>pageInfo</code>(Object): An object containing pagination information:</p>\n<ul>\n<li><p><code>cursor</code>(String, optional): The cursor for the current page</p>\n</li>\n<li><p><code>pageSize</code> (Int, optional): The number of results per page</p>\n</li>\n<li><p><code>direction</code>(String, optional): The direction of pagination (e.g., \"forward\" or \"backward\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the paginated list of pending invites</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"4b0472e7-0ec5-4247-90c9-e08cbd05c1cd","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text","disabled":true}],"body":{"mode":"graphql","graphql":{"query":"query FetchPaginatedUsers($organizationalUnit: OrganizationalUnitInput!, $filters: AdminSearchPendingInvitesFilters, $pageInfo: CursorPageInput) {\n  adminQuery {\n    __typename\n    ... on Error {\n      message\n    }\n    ... on AdminQuery { \n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        __typename\n        ... on AdminOrganizationQuery {\n          paginatedPendingInvites(filters: $filters, pageInfo: $pageInfo) {\n            __typename\n            ... on PaginatedPendingInvitesResponse {\n                ...PaginatedPendingInvitesFragment\n            }\n          } \n        }\n      }\n    }\n  }\n}\n\nfragment PaginatedPendingInvitesFragment on PaginatedPendingInvitesResponse {\n    pageInfo {\n        hasNextPage\n        startCursor\n        nextCursor\n        totalResults\n        pageSize\n        resultsCount\n    }\n    invites {\n        id\n        status\n        invitedBy {\n            ...OrganizationMemberFragment\n        }\n        user {\n            ...OrganizationMemberFragment\n        }\n        resolvedBy {\n            ...OrganizationMemberFragment\n        }\n        organization {\n            id\n            name\n        }\n        createdAt\n        updatedAt\n    }\n}\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    id\n    firstName\n    lastName\n    role\n    memberStatus\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"filters\": {\n        \"searchQuery\": null,\n        \"inviteStatus\": [\"pending_user_acceptance\"]\n    },\n    \"pageInfo\": {\n        \"cursor\": null,\n        \"pageSize\": 5\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 03 Jan 2025 14:55:02 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"5111"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"89dad60c-f893-4f31-a38d-a50cbeab87fa"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminQuery\": {\n            \"__typename\": \"AdminQuery\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationQuery\",\n                \"paginatedPendingInvites\": {\n                    \"__typename\": \"PaginatedPendingInvitesResponse\",\n                    \"pageInfo\": {\n                        \"hasNextPage\": true,\n                        \"startCursor\": null,\n                        \"nextCursor\": \"LGFiaGlzaGVrLnNyaXZhc3RhdmErcHcrMkBhY21ldGVhY2hpbmdob3NwaXRhbC5jb20sLDNmY2FjZThkLWI3MjQtNGRmNC1iM2NlLWUxM2UxZTU1MGFiMw==\",\n                        \"totalResults\": 75,\n                        \"pageSize\": 5,\n                        \"resultsCount\": 5\n                    },\n                    \"invites\": [\n                        {\n                            \"id\": 160,\n                            \"status\": \"pending_user_acceptance\",\n                            \"invitedBy\": {\n                                \"id\": \"7d73096e-4cb0-41e5-bd4b-275ad75dd7f3\",\n                                \"firstName\": \"Test\",\n                                \"lastName\": \"User001\",\n                                \"role\": \"\",\n                                \"memberStatus\": \"active\"\n                            },\n                            \"user\": {\n                                \"id\": \"2610ff8b-281f-4ff2-bfda-837d9a2bad0e\",\n                                \"firstName\": \"testinvite1@gmail.com\",\n                                \"lastName\": \"\",\n                                \"role\": \"\",\n                                \"memberStatus\": \"inactive\"\n                            },\n                            \"resolvedBy\": null,\n                            \"organization\": {\n                                \"id\": \"1\",\n                                \"name\": \"Hypercare\"\n                            },\n                            \"createdAt\": \"2024-12-20T15:22:35.000Z\",\n                            \"updatedAt\": \"2025-01-03T04:57:28.000Z\"\n                        },\n                        {\n                            \"id\": 273,\n                            \"status\": \"pending_user_acceptance\",\n                            \"invitedBy\": {\n                                \"id\": \"1d4af5d5-b755-492c-bad6-c0b4d58651ea\",\n                                \"firstName\": \"Test01\",\n                                \"lastName\": \"User01\",\n                                \"role\": \"Nurse\",\n                                \"memberStatus\": \"active\"\n                            },\n                            \"user\": {\n                                \"id\": \"ae591928-d48b-4c82-a997-71d2446c360c\",\n                                \"firstName\": \"test001@gmail.com\",\n                                \"lastName\": \"\",\n                                \"role\": \"\",\n                                \"memberStatus\": \"inactive\"\n                            },\n                            \"resolvedBy\": null,\n                            \"organization\": {\n                                \"id\": \"1\",\n                                \"name\": \"Hypercare\"\n                            },\n                            \"createdAt\": \"2024-12-24T16:42:52.000Z\",\n                            \"updatedAt\": \"2024-12-24T16:42:52.000Z\"\n                        },\n                        {\n                            \"id\": 328,\n                            \"status\": \"pending_user_acceptance\",\n                            \"invitedBy\": {\n                                \"id\": \"4a5a1242-3252-4fd0-b52a-61ea4a420e02\",\n                                \"firstName\": \"SSOUser\",\n                                \"lastName\": \"Test\",\n                                \"role\": \"QA\",\n                                \"memberStatus\": \"active\"\n                            },\n                            \"user\": {\n                                \"id\": \"edeff9ee-c383-41bc-8a9b-68d4635d0a05\",\n                                \"firstName\": \"ssotestuser001@gmail.com\",\n                                \"lastName\": \"\",\n                                \"role\": \"\",\n                                \"memberStatus\": \"inactive\"\n                            },\n                            \"resolvedBy\": null,\n                            \"organization\": {\n                                \"id\": \"1\",\n                                \"name\": \"Hypercare\"\n                            },\n                            \"createdAt\": \"2025-01-02T16:46:47.000Z\",\n                            \"updatedAt\": \"2025-01-02T16:46:47.000Z\"\n                        },\n                        {\n                            \"id\": 173,\n                            \"status\": \"pending_user_acceptance\",\n                            \"invitedBy\": {\n                                \"id\": \"1d4af5d5-b755-492c-bad6-c0b4d58651ea\",\n                                \"firstName\": \"Test01\",\n                                \"lastName\": \"User01\",\n                                \"role\": \"Nurse\",\n                                \"memberStatus\": \"active\"\n                            },\n                            \"user\": {\n                                \"id\": \"150acc59-6f25-47b8-85c4-f66a1cc7d946\",\n                                \"firstName\": \"testInvite2@gmail.com\",\n                                \"lastName\": \"\",\n                                \"role\": \"\",\n                                \"memberStatus\": \"inactive\"\n                            },\n                            \"resolvedBy\": null,\n                            \"organization\": {\n                                \"id\": \"1\",\n                                \"name\": \"Hypercare\"\n                            },\n                            \"createdAt\": \"2024-12-20T18:10:35.000Z\",\n                            \"updatedAt\": \"2025-01-03T04:59:28.000Z\"\n                        },\n                        {\n                            \"id\": 73,\n                            \"status\": \"pending_user_acceptance\",\n                            \"invitedBy\": {\n                                \"id\": \"4b04444c-4b29-43b3-aca0-7cd0ce0835cc\",\n                                \"firstName\": \"Active01\",\n                                \"lastName\": \"User\",\n                                \"role\": \"QA\",\n                                \"memberStatus\": \"active\"\n                            },\n                            \"user\": {\n                                \"id\": \"3fcace8d-b724-4df4-b3ce-e13e1e550ab3\",\n                                \"firstName\": \"test02@acmeteachinghospital.com\",\n                                \"lastName\": \"\",\n                                \"role\": \"\",\n                                \"memberStatus\": \"inactive\"\n                            },\n                            \"resolvedBy\": null,\n                            \"organization\": {\n                                \"id\": \"1\",\n                                \"name\": \"Hypercare\"\n                            },\n                            \"createdAt\": \"2024-12-06T21:48:55.000Z\",\n                            \"updatedAt\": \"2024-12-06T21:48:55.000Z\"\n                        },\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"fdd46e8f-0fcb-43b1-9e44-0bbcdcda0052"},{"name":"Invite Users","event":[{"listen":"prerequest","script":{"id":"fca07318-e426-4233-927f-dec84d75ab86","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"2f9e4a0a-104c-4398-a7b4-cae5d88e3bdb","exec":[""],"type":"text/javascript","packages":{}}}],"id":"f65cfd56-30d4-4798-a72e-99db2eabf502","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation AdminInviteUsers($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminInviteUserDetails!]!) {\n    ## will create shell account\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    inviteUsers(invitees: $accounts) {\n                        ... on InviteUsersResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            invitees {\n                                __typename\n                                ... on UserInvite {\n                                    id\n                                    status\n                                    invitedBy { ...OrganizationMemberFragment }\n                                    user { ...OrganizationMemberFragment }\n                                    resolvedBy { ...OrganizationMemberFragment }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                                ... on InvitePendingAdminApproval {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    id\n    firstName\n    lastName\n    role\n    memberStatus\n    addresses {\n        address\n        access\n        label\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {\n                \"firstName\": {{firstName}},\n                \"lastName\": {{lastName}},\n                \"role\": {{jobTitle}}\n            },\n            \"addresses\": [\n                {\n                    \"address\": {{email}},\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"addresses\": [\n                {\n                    \"address\": {{email}},\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"invite-users-admin\">Invite Users (Admin)</h2>\n<p>GraphQL mutation for admins to invite users to an organization. It verifies the user's permissions and then sends invitations to the specified users. If an address being invited was previously blackedlisted, this will first whitelist the address, then re-invite.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>accounts</code> (Object):</p>\n<ul>\n<li><p><code>addresses</code>(Object)</p>\n<ul>\n<li><p><code>address</code> (String): The email address to which invitation will be sent</p>\n</li>\n<li><p><code>type</code> (String): The type of address (e.g. \"email\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>profile</code>(Object, optional): Additional user information that can be added during the inactive/shell account invite/creation process. If no profile information is provided, the invited email will be used as the first name by default</p>\n<ul>\n<li><p><code>firstName</code> (String)</p>\n</li>\n<li><p><code>lastName</code> (String)</p>\n</li>\n<li><p><code>role</code> (String)</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An array of objects representing the result of the invitation process, including the list of successfully invited users and any errors encountered. The order of results returned in the array is the same as the order of the inputted invites, with <code>FullOrganizationMember</code> being the successful result</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>AddressInUse</code>: One or more addresses are linked with an existing user in the organization</p>\n</li>\n<li><p><code>EmailAddressMissing</code>: Email is required for invites</p>\n</li>\n</ul>\n","urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"453cf961-9011-4cf6-92dc-9ed5374e5ac9","name":"Account Blocked","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"umar+3@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+9@hypercare.com\",\n                    \"type\": \"email\"\n                },\n                {\n                    \"address\": \"6476784077\",\n                    \"type\": \"pager\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"9a2a839e-8713-40ca-abfb-2d3d3ebe00e6"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"665"},{"key":"Date","value":"Fri, 13 Sep 2024 20:19:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"AddressInUse\",\n                            \"message\": \"One or more addresses are not available for organization\",\n                            \"address\": \"umar+3@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"AccountBlocked\",\n                            \"message\": \"One or more addresses are blacklisted for organization\",\n                            \"address\": \"ralph+9@hypercare.com\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"e21ef20b-0f5f-47ce-9a2f-0cd0eb48a2ab","name":"Address In Use","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"umar+3@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+10@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"3e27874e-2ab9-40ee-8c58-f0f13f4719ce"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"920"},{"key":"Date","value":"Fri, 13 Sep 2024 20:24:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"AddressInUse\",\n                            \"message\": \"One or more addresses are not available for organization\",\n                            \"address\": \"umar+3@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"534ade3e-dd79-4a62-aca4-348c37939fca\",\n                            \"firstName\": \"ralph+10@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"ralph+10@hypercare.com\",\n                                    \"access\": \"public\",\n                                    \"label\": null\n                                }\n                            ]\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"639eb389-4125-4564-9a5c-d47a5f897f1f","name":"Successfully Created All Accounts","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"umar+5@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+11@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"de64a477-0ec5-4fb6-88ce-bc9f79fef055"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1172"},{"key":"Date","value":"Fri, 13 Sep 2024 20:25:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"b669e2ff-36ac-4710-a417-1df9d2d20c6a\",\n                            \"firstName\": \"umar+5@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"umar+5@hypercare.com\",\n                                    \"access\": \"public\",\n                                    \"label\": null\n                                }\n                            ]\n                        },\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"5b978dcf-a41d-4d75-9022-ec99379d8dc5\",\n                            \"firstName\": \"ralph+11@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"ralph+11@hypercare.com\",\n                                    \"access\": \"public\",\n                                    \"label\": null\n                                }\n                            ]\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"71d03313-cfc4-42c9-a256-431e4604e944","name":"All Possible Errors","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {\n                \"password\": \"password12\"\n            },\n            \"addresses\": [\n                {\n                    \"address\": \"umar+13@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+17@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+9@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {\n                \"password\": \"password\"\n            },\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+18@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+19@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"f0debfcd-ed79-4219-9860-21af5bb9492f"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1550"},{"key":"Date","value":"Fri, 13 Sep 2024 20:58:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"PasswordRequirementsNotMet\",\n                            \"message\": \"\\\"value\\\" with value \\\"password12\\\" fails to match the required pattern: /^(?=.*[^a-zA-Z0-9])(?!.*\\\\\\\\s).{8,30}$/\"\n                        },\n                        {\n                            \"__typename\": \"AddressInUse\",\n                            \"message\": \"One or more addresses are linked with an existing user in the organization\",\n                            \"address\": \"ralph+17@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"AccountBlocked\",\n                            \"message\": \"One or more addresses are linked to a removed user and are blacklisted for this organization.\",\n                            \"address\": \"ralph+9@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"VulnerablePassword\",\n                            \"message\": \"Vulnerable password detected\"\n                        },\n                        {\n                            \"__typename\": \"AddressInUse\",\n                            \"message\": \"One or more addresses are linked with an existing user in the organization\",\n                            \"address\": \"ralph+21@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"EmailAddressMissing\",\n                            \"message\": \"Email address is required\"\n                        },\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"6c9577fe-3bbe-4021-ab23-f082164242d1\",\n                            \"firstName\": \"umar+15@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"umar+15@hypercare.com\",\n                                    \"access\": \"private\",\n                                    \"label\": null\n                                },\n                                {\n                                    \"address\": \"+16476784079\",\n                                    \"access\": \"private\",\n                                    \"label\": null\n                                }\n                            ]\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"04724c8b-7ec7-40cd-a877-a7e3f87966ff","name":"Invite Pending Admin Approval","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                                ... on InvitePendingAdminApproval {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"hamlu647+232@gmail.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"umar+16@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"c702139b-472b-48c7-8391-43427fca9702"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"939"},{"key":"Date","value":"Sat, 14 Sep 2024 06:15:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"InvitePendingAdminApproval\",\n                            \"message\": \"One or more addresses are pending admin approval for invites\",\n                            \"address\": \"hamlu647+232@gmail.com\"\n                        },\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"ad43f39b-7749-4f97-b3cd-2902ddb2dbd6\",\n                            \"firstName\": \"umar+16@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"umar+16@hypercare.com\",\n                                    \"access\": \"private\",\n                                    \"label\": null\n                                }\n                            ]\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"f65cfd56-30d4-4798-a72e-99db2eabf502"},{"name":"Approve Invite","id":"e2746c51-a49c-473c-9814-93e810981353","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ApproveInvite($inviteId: ID!, $organizationalUnit: OrganizationalUnitInput!) {\n  adminMutation {\n    ... on AdminMutation {\n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        ... on AdminOrganizationMutation {\n          invite(id: $inviteId) {\n            ... on AdminInviteMutation {\n              approve {\n                __typename\n                ... on Error {\n                    message\n                }\n                ... on UserInvite {\n                  id\n                  invitedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  organization {\n                    id\n                    name\n                  }\n                  status\n                  resolvedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  user {\n                    id\n                    firstName\n                    lastName\n                    role\n                    memberStatus\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"inviteId\": {{inviteId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"approve-invite-admin\">Approve Invite (Admin)</h2>\n<p>GraphQL mutation for admins to approve a pending invite given its ID.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>inviteId</code> (Int): The ID of the invite</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the approved invite, which can contain the invited user information, who they were invited by, and who resolved the invite</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>InviteNotFound</code>: No invite found for the given ID</p>\n</li>\n<li><p><code>InviteAlreadyAccepted</code>: Invite has already been accepted by the invitee</p>\n</li>\n<li><p><code>InviteAlreadyDeclined</code>: Invite has already been declined by the invitee</p>\n</li>\n<li><p><code>InviteAlreadyCanceled</code>: Invite has already been canceled by an admin</p>\n</li>\n<li><p><code>InviteAlreadyRejected</code>: Invite has already been rejected by an admin</p>\n</li>\n<li><p><code>ApprovalNotRequired</code>: This invite does not require admin approval</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"b3a925be-9b2f-4184-bd40-8b85412af946","name":"Success Sample Response","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation Invite($inviteId: ID!, $organizationalUnit: OrganizationalUnitInput!) {\n  adminMutation {\n    ... on AdminMutation {\n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        ... on AdminOrganizationMutation {\n          invite(id: $inviteId) {\n            ... on AdminInviteMutation {\n              approve {\n                ... on UserInvite {\n                  id\n                  invitedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  organization {\n                    id\n                    name\n                  }\n                  status\n                  resolvedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  user {\n                    id\n                    firstName\n                    lastName\n                    role\n                    memberStatus\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"inviteId\": 62\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"_postman_previewlanguage":"","header":[{}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"invite\": {\n                    \"approve\": {\n                        \"id\": 62,\n                        \"invitedBy\": {\n                            \"id\": \"3e7552a7-f765-4e4c-b3cb-27d70412480d\",\n                            \"firstName\": \"Alex\",\n                            \"lastName\": \"StaTester\",\n                            \"role\": \"tester\"\n                        },\n                        \"organization\": {\n                            \"id\": \"1\",\n                            \"name\": \"Hypercare\"\n                        },\n                        \"status\": \"pending_user_acceptance\",\n                        \"resolvedBy\": {\n                            \"id\": \"9e026a33-d192-4d5e-a217-85a2834ecbd6\",\n                            \"firstName\": \"SsoOrg-Active-OwnSsoEmail-OtpPwSso\",\n                            \"lastName\": \"Umar (Azhar)\",\n                            \"role\": \"QA 2\"\n                        },\n                        \"user\": {\n                            \"id\": \"456a2860-57c0-408b-aa54-8ebfc800b763\",\n                            \"firstName\": \"alex+testpending4@acmeteachinghospital.com\",\n                            \"lastName\": \"\",\n                            \"role\": \"\",\n                            \"memberStatus\": \"inactive\"\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"55a20c1b-5025-4fba-a048-34cd5be298f5","name":"Approval Not Required","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation Invite($inviteId: ID!, $organizationalUnit: OrganizationalUnitInput!) {\n  adminMutation {\n    ... on AdminMutation {\n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        ... on AdminOrganizationMutation {\n          invite(id: $inviteId) {\n            ... on AdminInviteMutation {\n              approve {\n                ... on UserInvite {\n                  id\n                  invitedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  organization {\n                    id\n                    name\n                  }\n                  status\n                  resolvedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  user {\n                    id\n                    firstName\n                    lastName\n                    role\n                    memberStatus\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"inviteId\": 62\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"_postman_previewlanguage":"","header":[{}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"invite\": {\n                    \"approve\": {\n                        \"__typename\": \"ApprovalNotRequired\",\n                        \"message\": \"Invite does not require admin approval\"\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"3e48758a-b3d0-4c22-aa42-c9679495ef69","name":"Invite Already Rejected","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation Invite($inviteId: ID!, $organizationalUnit: OrganizationalUnitInput!) {\n  adminMutation {\n    ... on AdminMutation {\n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        ... on AdminOrganizationMutation {\n          invite(id: $inviteId) {\n            ... on AdminInviteMutation {\n              approve {\n                ... on UserInvite {\n                  id\n                  invitedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  organization {\n                    id\n                    name\n                  }\n                  status\n                  resolvedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  user {\n                    id\n                    firstName\n                    lastName\n                    role\n                    memberStatus\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"inviteId\": 288\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"_postman_previewlanguage":"","header":[{}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"invite\": {\n                    \"approve\": {\n                        \"__typename\": \"InviteAlreadyRejected\",\n                        \"message\": \"Invite has already been declined by admin\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"e2746c51-a49c-473c-9814-93e810981353"},{"name":"Reject Invite","id":"fdca96d1-46c6-4d3b-885e-63eb0d13a54a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation RejectInvite($inviteId: ID!, $organizationalUnit: OrganizationalUnitInput!) {\n  adminMutation {\n    ... on AdminMutation {\n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        ... on AdminOrganizationMutation {\n          invite(id: $inviteId) {\n            ... on AdminInviteMutation {\n              reject {\n                __typename\n                ... on Error { message }\n                ... on UserInvite {\n                  id\n                  invitedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  organization {\n                    id\n                    name\n                  }\n                  status\n                  resolvedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  user {\n                    id\n                    firstName\n                    lastName\n                    role\n                    memberStatus\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"inviteId\": 288\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"reject-invite-admin\">Reject Invite (Admin)</h2>\n<p>GraphQL mutation for admins to reject a pending invite given its ID.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>inviteId</code> (Int): The ID of the invite</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the rejected invite, which can contain the invited user information, who they were invited by, and who resolved the invite</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>InviteNotFound</code>: No invite found for the given ID</p>\n</li>\n<li><p><code>InviteAlreadyAccepted</code>: Invite has already been accepted by the invitee</p>\n</li>\n<li><p><code>InviteAlreadyDeclined</code>: Invite has already been declined by the invitee</p>\n</li>\n<li><p><code>InviteAlreadyCanceled</code>: Invite has already been canceled by an admin</p>\n</li>\n<li><p><code>InviteAlreadyRejected</code>: Invite has already been rejected by an admin</p>\n</li>\n<li><p><code>ApprovalNotRequired</code>: This invite does not require admin approval</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"a045c129-c11d-409b-bf2f-4248b65bb57f","name":"Success Sample Response","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation RejectInvite($inviteId: ID!, $organizationalUnit: OrganizationalUnitInput!) {\n  adminMutation {\n    ... on AdminMutation {\n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        ... on AdminOrganizationMutation {\n          invite(id: $inviteId) {\n            ... on AdminInviteMutation {\n              reject {\n                __typename\n                ... on Error { message }\n                ... on UserInvite {\n                  id\n                  invitedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  organization {\n                    id\n                    name\n                  }\n                  status\n                  resolvedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  user {\n                    id\n                    firstName\n                    lastName\n                    role\n                    memberStatus\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"inviteId\": 288\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"_postman_previewlanguage":"","header":[{}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"invite\": {\n                    \"reject\": {\n                        \"__typename\": \"UserInvite\",\n                        \"id\": 288,\n                        \"invitedBy\": {\n                            \"id\": \"1d4af5d5-b755-492c-bad6-c0b4d58651ea\",\n                            \"firstName\": \"Test001\",\n                            \"lastName\": \"User\",\n                            \"role\": \"Dev\"\n                        },\n                        \"organization\": {\n                            \"id\": \"1\",\n                            \"name\": \"Hypercare\"\n                        },\n                        \"status\": \"admin_rejected\",\n                        \"resolvedBy\": {\n                            \"id\": \"9e026a33-d192-4d5e-a217-85a2834ecbd6\",\n                            \"firstName\": \"SSOUser\",\n                            \"lastName\": \"TestQA\",\n                            \"role\": \"QA\"\n                        },\n                        \"user\": {\n                            \"id\": \"b6f0ade8-09a0-435b-81d8-92070c68e1d8\",\n                            \"firstName\": \"test003@gmail.com\",\n                            \"lastName\": \"\",\n                            \"role\": \"\",\n                            \"memberStatus\": \"archived\"\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"24be36b7-8a0c-4096-a80e-5f2a5853e03e","name":"Approval Not Required","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation RejectInvite($inviteId: ID!, $organizationalUnit: OrganizationalUnitInput!) {\n  adminMutation {\n    ... on AdminMutation {\n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        ... on AdminOrganizationMutation {\n          invite(id: $inviteId) {\n            ... on AdminInviteMutation {\n              reject {\n                __typename\n                ... on Error { message }\n                ... on UserInvite {\n                  id\n                  invitedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  organization {\n                    id\n                    name\n                  }\n                  status\n                  resolvedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  user {\n                    id\n                    firstName\n                    lastName\n                    role\n                    memberStatus\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"inviteId\": 160\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"_postman_previewlanguage":"","header":[{}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"invite\": {\n                    \"reject\": {\n                        \"__typename\": \"ApprovalNotRequired\",\n                        \"message\": \"Invite does not require admin approval\"\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"8e9e5e36-dbad-40dc-8db1-7f0cd23f5809","name":"Invite Already Rejected","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation RejectInvite($inviteId: ID!, $organizationalUnit: OrganizationalUnitInput!) {\n  adminMutation {\n    ... on AdminMutation {\n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        ... on AdminOrganizationMutation {\n          invite(id: $inviteId) {\n            ... on AdminInviteMutation {\n              reject {\n                __typename\n                ... on Error { message }\n                ... on UserInvite {\n                  id\n                  invitedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  organization {\n                    id\n                    name\n                  }\n                  status\n                  resolvedBy {\n                    id\n                    firstName\n                    lastName\n                    role\n                  }\n                  user {\n                    id\n                    firstName\n                    lastName\n                    role\n                    memberStatus\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"inviteId\": 320\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"_postman_previewlanguage":"","header":[{}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"invite\": {\n                    \"reject\": {\n                        \"__typename\": \"InviteAlreadyRejected\",\n                        \"message\": \"Invite has already been rejected by admin\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"fdca96d1-46c6-4d3b-885e-63eb0d13a54a"}],"id":"cd48b789-4735-432f-98a6-82bd850dd203","_postman_id":"cd48b789-4735-432f-98a6-82bd850dd203","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Create Site","id":"a972b03e-0d35-4bb3-b08d-6f44ffa3d842","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateSite($organizationalUnit: OrganizationalUnitInput!, $siteDetails: CreateSiteDetails!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    createSite(details: $siteDetails) {\n                        id\n                        name\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"siteDetails\": {\n        \"name\": \"Test create site\"\n    }\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"create-site-admin\">Create Site (Admin)</h2>\n<p>GraphQL mutation for admins to create a new site within an organization. It verifies the user's permissions and then creates the site with the specified details.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code>(Int): The ID of the organization where the site is being created.</p>\n</li>\n<li><p><code>type</code> (String): organization</p>\n</li>\n</ul>\n</li>\n<li><p><code>siteDetails</code> (Object)</p>\n<ul>\n<li><p><code>name</code> (String): The name of the site</p>\n</li>\n<li><p><code>image</code> (String): The image URL of the site. See <strong>Upload Files</strong></p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object of the created site</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID is invalid</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: The current user does not have permission to create a site within the organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"4a34bc65-2c5f-438a-8aa9-4b5f11b5a054","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateSite($organizationalUnit: OrganizationalUnitInput!, $siteDetails: CreateSiteDetails!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    createSite(details: $siteDetails) {\n                        id\n                        name\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"siteDetails\": {\n        \"name\": \"test create site\"\n    }\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"267"},{"key":"Date","value":"Thu, 23 Mar 2023 19:23:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createSite\": {\n                    \"id\": \"10\",\n                    \"name\": \"test create site\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"a972b03e-0d35-4bb3-b08d-6f44ffa3d842"},{"name":"Create Department","id":"80603d88-4e66-49f4-8ba8-e93c5942a24c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateDepartment($organizationalUnit: OrganizationalUnitInput!, $departmentDetails: CreateDepartmentDetails!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminSiteMutation {\n                    __typename\n                    createDepartment(details: $departmentDetails) {\n                        id\n                        name\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{siteId}},\n\t\t\"type\": \"site\"\n\t},\n    \"departmentDetails\": {\n        \"name\": \"Test create department\"\n    }\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"create-department-admin\">Create Department (Admin)</h2>\n<p>GraphQL mutation for admins to create a new department within a site. It verifies the user's permissions and then creates the department with the specified details.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code>(Int): The ID of the site where the department is being created.</p>\n</li>\n<li><p><code>type</code> (String): \"site\"</p>\n</li>\n</ul>\n</li>\n<li><p><code>departmentDetails</code> (Object)</p>\n<ul>\n<li><p><code>name</code> (String): The name of the department</p>\n</li>\n<li><p><code>image</code> (String): The image URL of the department. See <strong>Upload Files</strong></p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object of the created department</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The site ID given is invalid</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: The current user does not have permission to create a department within the site</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"b1e1e89f-e9ce-40dc-9851-e1d097d167d0","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateDepartment($organizationalUnit: OrganizationalUnitInput!, $departmentDetails: CreateDepartmentDetails!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminSiteMutation {\n                    __typename\n                    createDepartment(details: $departmentDetails) {\n                        id\n                        name\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"site\"\n\t},\n    \"departmentDetails\": {\n        \"name\": \"test create department\"\n    }\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"271"},{"key":"Date","value":"Tue, 28 Mar 2023 19:47:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminSiteMutation\",\n                \"createDepartment\": {\n                    \"id\": \"13\",\n                    \"name\": \"test create department\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"80603d88-4e66-49f4-8ba8-e93c5942a24c"},{"name":"Organizational Unit Sync Status","id":"f910e5ee-8fb4-4501-93ad-fdb51f8e6363","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query OrganizationalUnitSyncStatus($organizationalUnit: OrganizationalUnitInput!) {\n    adminQuery {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminQuery { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationQuery {\n                    __typename\n                    syncStatus\n                }\n                ... on AdminSiteQuery {\n                    __typename\n                    syncStatus\n                }\n                ... on AdminDepartmentQuery {\n                    __typename\n                    syncStatus\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t}\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"organization-sync-status-admin\">Organization Sync Status (Admin)</h2>\n<p>GraphQL query for admins to retrieve the synchronization status of an organizational unit with an external directory such as AzureAD.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code>(Object)</p>\n<ul>\n<li><p><code>id</code>(Int): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organizational unit type (e.g. organization/site/department)</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>A boolean indicating if organizational unit is synced or not</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organizational unit being check cannot be found</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"d0682608-4af8-49a7-85aa-bbb7ce95bd18","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query OrganizationalUnitQuery($organizationalUnit: OrganizationalUnitInput!) {\n    adminQuery {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminQuery { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationQuery {\n                    __typename\n                    syncStatus\n                }\n                ... on AdminSiteQuery {\n                    __typename\n                    syncStatus\n                }\n                ... on AdminDepartmentQuery {\n                    __typename\n                    syncStatus\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t}\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"193"},{"key":"Date","value":"Tue, 31 Oct 2023 17:57:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminQuery\": {\n            \"__typename\": \"AdminQuery\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationQuery\",\n                \"syncStatus\": false\n            }\n        }\n    }\n}"}],"_postman_id":"f910e5ee-8fb4-4501-93ad-fdb51f8e6363"},{"name":"Search Paginated Blacklisted Users With Cursor","id":"7cf598eb-ef22-4edf-9afa-168093a7d4e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query FetchPaginatedBlacklistedUsers($organizationalUnit: OrganizationalUnitInput!, $pageInfo: CursorPageInput, $filters: AdminPaginatedRemovedMembersFilter) {\n  adminQuery {\n    __typename\n    ... on Error {\n      message\n    }\n    ... on AdminQuery { \n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        __typename\n        ... on AdminOrganizationQuery {\n          paginatedBlacklistedUsers(filters: $filters, pageInfo: $pageInfo) {\n            __typename\n            ... on PaginatedBlacklistedUsersResponse {\n                ...PaginatedBlackListUsersFragment\n            }\n          } \n        }\n      }\n    }\n  }\n}\n\nfragment PaginatedBlackListUsersFragment on PaginatedBlacklistedUsersResponse {\n    pageInfo {\n        hasNextPage\n        startCursor\n        nextCursor\n        totalResults\n        pageSize\n        resultsCount\n    }\n    users {\n      ...PublicUserFragment\n    }\n}\n\nfragment PublicUserFragment on FullOrganizationMember {\n    id\n    firstName\n    lastName\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"filters\": {\n        \"searchQuery\": \"test\"\n    },\n    \"pageInfo\": {\n        \"pageSize\": 10,\n        \"cursor\": null\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"search-paginated-blacklisted-users-admin\">Search Paginated Blacklisted Users (Admin)</h2>\n<p>GraphQL query for admins to retrieve a paginated list of users who's address has been blacklisted for an organization. It supports filtering by search query and uses cursor-based pagination.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>filters</code> (Object): An object containing the following optional filters</p>\n<ul>\n<li><code>searchQuery</code>(String, optional): A search query to filter invites by</li>\n</ul>\n</li>\n<li><p><code>pageInfo</code>(Object): An object containing pagination information:</p>\n<ul>\n<li><p><code>cursor</code>(String, optional): The cursor for the current page</p>\n</li>\n<li><p><code>pageSize</code> (Int, optional): The number of results per page</p>\n</li>\n<li><p><code>direction</code>(String, optional): The direction of pagination (e.g., \"forward\" or \"backward\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the paginated list of blacklisted users</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"dab43e63-3407-4a75-bef7-805a066b19af","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text","disabled":true}],"body":{"mode":"graphql","graphql":{"query":"query FetchPaginatedUsers($organizationalUnit: OrganizationalUnitInput!, $pageInfo: CursorPageInput, $filters: AdminPaginatedRemovedMembersFilter) {\n  adminQuery {\n    __typename\n    ... on Error {\n      message\n    }\n    ... on AdminQuery { \n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        __typename\n        ... on AdminOrganizationQuery {\n          paginatedBlacklistedUsers(filters: $filters, pageInfo: $pageInfo) {\n            __typename\n            ... on PaginatedBlacklistedUsersResponse {\n                ...PaginatedBlackListUsersFragment\n            }\n          } \n        }\n      }\n    }\n  }\n}\n\nfragment PaginatedBlackListUsersFragment on PaginatedBlacklistedUsersResponse {\n    pageInfo {\n        hasNextPage\n        startCursor\n        nextCursor\n        totalResults\n        pageSize\n        resultsCount\n    }\n    users {\n      ...PublicUserFragment\n    }\n}\n\nfragment PublicUserFragment on FullOrganizationMember {\n    id\n    firstName\n    lastName\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"filters\": {\n        \"searchQuery\": \"test\"\n    },\n    \"pageInfo\": {\n        \"pageSize\": 5,\n        \"cursor\": null\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 03 Jan 2025 14:56:28 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1022"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"15712877-d499-4aa5-921c-b00084e14714"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminQuery\": {\n            \"__typename\": \"AdminQuery\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationQuery\",\n                \"paginatedBlacklistedUsers\": {\n                    \"__typename\": \"PaginatedBlacklistedUsersResponse\",\n                    \"pageInfo\": {\n                        \"hasNextPage\": false,\n                        \"startCursor\": null,\n                        \"nextCursor\": null,\n                        \"totalResults\": 3,\n                        \"pageSize\": 5,\n                        \"resultsCount\": 3\n                    },\n                    \"users\": [\n                        {\n                            \"id\": \"865e9ad3-36c4-4373-8532-1b42a3f802c8\",\n                            \"firstName\": \"Blacklisted001\",\n                            \"lastName\": \"Tester\"\n                        },\n                        {\n                            \"id\": \"1467fec0-6bd6-4b48-b1b7-e1aa8b2d96c5\",\n                            \"firstName\": \"Blacklisted002\",\n                            \"lastName\": \"Tester\"\n                        },\n                        {\n                            \"id\": \"9ee4ca39-0ff9-413d-844d-e776a66c3f9f\",\n                            \"firstName\": \"Blacklisted003\",\n                            \"lastName\": \"Tester\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"7cf598eb-ef22-4edf-9afa-168093a7d4e4"}],"id":"5645c79c-c122-402c-962e-092eac7e087a","description":"<p>This section contains functionalities only accessable to users with administrator privileges. The error <code>UserNotAdminForScope</code> will return for all unauthorized access.</p>\n","_postman_id":"5645c79c-c122-402c-962e-092eac7e087a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Non-admin","item":[{"name":"Organization Members","item":[{"name":"Fetch Paginated Users","id":"7867eb9f-e1e1-4111-800d-ddf24db6359e","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true}},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchPaginatedUser($organizationalUnit: OrganizationalUnitInput!, $filters: PaginatedMembersFilter, $pageInfo: CursorPageInput) {\n    organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n\n      ... on Organization {\n        members(filters: $filters, pageInfo: $pageInfo) {\n            __typename\n          ...PaginatedMembersFragment\n        }\n      }\n    }\n  }\n}\n\nfragment PaginatedMembersFragment on PaginatedMembersResponse {\n    pageInfo {\n        hasNextPage\n        nextCursor\n        startCursor\n        endCursor\n        totalResults\n        resultsCount\n    }\n    users {\n      ...OrganizationMemberFragment\n    }\n}\n\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    id\n    firstName\n    lastName\n    accountStatus\n    memberStatus\n    avatar {\n        id\n        url\n    }\n    addresses {\n        address\n        label\n        type\n        access\n    }\n    workStatus {\n        value\n        alternateContact {\n            id\n            firstName\n            lastName\n        }\n        message\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"pageInfo\": {\n        \"pageSize\": 200,\n        \"cursor\": null\n    },\n    \"filters\": {\n        \"memberStatus\": [\"active\"],\n        \"organizationalUnits\": [\n            {\n                \"id\": {{ID}},\n                \"type\": \"site\"\n            }\n        ]\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-paginated-users\">Fetch Paginated Users</h2>\n<p>GraphQL query for retrieving a paginated list of users for an organization. It supports filtering by member status, multiple organizational scopes, and search string, and it uses cursor-based pagination.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>filters</code> (Object): An object containing the following optional filters</p>\n<ul>\n<li><p><code>memberStatus</code>([String], optional): The statuses of the users you wish to retreve (e.g. \"active\", \"inactive\", \"blocked\", \"archived\")</p>\n</li>\n<li><p><code>organizationaUnits</code> ([String], optional): The scope which the users being retrived are in</p>\n</li>\n<li><p><code>searchQuery</code> (String, optional): Search terms</p>\n</li>\n</ul>\n</li>\n<li><p><code>pageInfo</code>(Object): An object containing pagination information:</p>\n<ul>\n<li><p><code>cursor</code>(String, optional): The cursor for the current page</p>\n</li>\n<li><p><code>pageSize</code> (Int, optional): The number of results per page</p>\n</li>\n<li><p><code>direction</code>(String, optional): The direction of pagination (e.g., \"next\" or \"previous\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the paginated list of users</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"d7c0992e-0d38-474d-ba91-3a7f0f23272c","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"},{"key":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15","type":"text","disabled":true}],"body":{"mode":"graphql","graphql":{"query":"query FetchPaginatedUser($organizationalUnit: OrganizationalUnitInput!, $filters: PaginatedMembersFilter, $pageInfo: CursorPageInput) {\n    organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n\n      ... on Organization {\n        members(filters: $filters, pageInfo: $pageInfo) {\n            __typename\n          ...PaginatedMembersFragment\n        }\n      }\n    }\n  }\n}\n\nfragment PaginatedMembersFragment on PaginatedMembersResponse {\n    pageInfo {\n        hasNextPage\n        nextCursor\n        startCursor\n        endCursor\n        totalResults\n        resultsCount\n    }\n    users {\n      ...OrganizationMemberFragment\n    }\n}\n\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    id\n    firstName\n    lastName\n    accountStatus\n    memberStatus\n    avatar {\n        id\n        url\n    }\n    addresses {\n        address\n        label\n        type\n        access\n    }\n    workStatus {\n        value\n        alternateContact {\n            id\n            firstName\n            lastName\n        }\n        message\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"pageInfo\": {\n        \"pageSize\": 5,\n        \"cursor\": null\n    },\n    \"filters\": {\n        \"memberStatus\": [\"active\"],\n        \"organizationalUnits\": []\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 03 Jan 2025 14:57:34 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"4128"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"f745e6fb-2e54-4654-8544-24d61eb263ae"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"members\": {\n                    \"__typename\": \"PaginatedMembersResponse\",\n                    \"pageInfo\": {\n                        \"hasNextPage\": true,\n                        \"nextCursor\": \"QVNUZXN0ZXIsQWJoaXNoZWtUZXN0ZXIxNCxUZXN0ZXIsNDIxNmM1MzMtNzQ3MS00YzM1LThhZWQtNjU0OTI5ZjgzNjhi\",\n                        \"startCursor\": null,\n                        \"endCursor\": null,\n                        \"totalResults\": 357,\n                        \"resultsCount\": 5\n                    },\n                    \"users\": [\n                        {\n                            \"id\": \"645dde01-a04e-4057-8174-2d4503ef7fcf\",\n                            \"firstName\": \"Tester01\",\n                            \"lastName\": \"Tester\",\n                            \"accountStatus\": \"active\",\n                            \"memberStatus\": \"active\",\n                            \"avatar\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"tester01@acmeteachinghospital.com\",\n                                    \"label\": null,\n                                    \"type\": \"email\",\n                                    \"access\": \"public\"\n                                }\n                            ],\n                            \"workStatus\": {\n                                \"value\": \"on_shift\",\n                                \"alternateContact\": null,\n                                \"message\": null\n                            }\n                        },\n                        {\n                            \"id\": \"ad631d2f-fa31-432f-b488-d5dfb48d113e\",\n                            \"firstName\": \"Tester02\",\n                            \"lastName\": \"Tester\",\n                            \"accountStatus\": \"active\",\n                            \"memberStatus\": \"active\",\n                            \"avatar\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"tester02@acmeteachinghospital.com\",\n                                    \"label\": null,\n                                    \"type\": \"email\",\n                                    \"access\": \"public\"\n                                }\n                            ],\n                            \"workStatus\": {\n                                \"value\": \"on_shift\",\n                                \"alternateContact\": null,\n                                \"message\": null\n                            }\n                        },\n                        {\n                            \"id\": \"12661335-7491-4d2e-abb6-c24eeec08747\",\n                            \"firstName\": \"Tester12\",\n                            \"lastName\": \"Tester\",\n                            \"accountStatus\": \"active\",\n                            \"memberStatus\": \"active\",\n                            \"avatar\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"tester12@acmeteachinghospital.com\",\n                                    \"label\": null,\n                                    \"type\": \"email\",\n                                    \"access\": \"public\"\n                                }\n                            ],\n                            \"workStatus\": {\n                                \"value\": \"on_shift\",\n                                \"alternateContact\": null,\n                                \"message\": null\n                            }\n                        },\n                        {\n                            \"id\": \"3f8d8d9e-cd8b-4444-83b8-b75275dfdc60\",\n                            \"firstName\": \"Tester13\",\n                            \"lastName\": \"Tester\",\n                            \"accountStatus\": \"active\",\n                            \"memberStatus\": \"active\",\n                            \"avatar\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"tester13@acmeteachinghospital.com\",\n                                    \"label\": null,\n                                    \"type\": \"email\",\n                                    \"access\": \"public\"\n                                }\n                            ],\n                            \"workStatus\": {\n                                \"value\": \"on_shift\",\n                                \"alternateContact\": null,\n                                \"message\": null\n                            }\n                        },\n                        {\n                            \"id\": \"4216c533-7471-4c35-8aed-654929f8368b\",\n                            \"firstName\": \"Tester14\",\n                            \"lastName\": \"Tester\",\n                            \"accountStatus\": \"active\",\n                            \"memberStatus\": \"active\",\n                            \"avatar\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"tester14@acmeteachinghospital.com\",\n                                    \"label\": null,\n                                    \"type\": \"email\",\n                                    \"access\": \"public\"\n                                }\n                            ],\n                            \"workStatus\": {\n                                \"value\": \"on_shift\",\n                                \"alternateContact\": null,\n                                \"message\": null\n                            }\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"7867eb9f-e1e1-4111-800d-ddf24db6359e"},{"name":"Fetch Profile Fields for User","id":"2f785f37-994e-4629-a590-92af86507d47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchProfileFields($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            ... on OrganizationalUnitInterface {\n                member(id: $userId) {\n                    __typename\n                    ... on OrganizationMember {\n                        id\n                        customFields {\n                            id\n                            label\n                            labelOptions\n                            fields {\n                                ...ProfileFieldFragment\n                            }\n                        }\n                    }\n                    ... on FullOrganizationMember {\n                        id\n                        customFields {\n                            id\n                            sectionId\n                            label\n                            labelOptions\n                            maxFields\n                            sections {\n                                id\n                                label\n                            }\n                            fields {\n                                ...ProfileFieldFragment\n                            }\n                            __typename\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment ProfileFieldFragment on ProfileField {\n    ... on Node {\n        id\n    }\n    label\n    labelOptions\n    visibility\n    __typename\n    ... on ProfilePhoneField {\n        phoneNumber\n        placeholder\n    }\n    ... on ProfileTextField {\n        text\n        placeholder\n    }\n    ... on ProfileDropdownField {\n        options\n        selectedOptions\n    }\n    ... on ProfileNumericField {\n        value\n    }\n    ... on ProfileLinkField {\n        url\n    }\n    ... on ProfileEmailField {\n        email\n    }\n    ... on ProfileDateField {\n        date\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"userId\": {{userId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-profile-fields-for-user\">Fetch Profile Fields for User</h2>\n<p>GraphQL query to fetch the profile fields for a user as it's seen on their user profile page.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>userId</code> (Int): The ID of the user</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the member, and it's custom profile fields.</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>UserNotFound</code>: No user found for the given ID</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"aa39ffc5-5e0d-48c1-8be9-89e8a06943aa","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchProfileFields($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            ... on OrganizationalUnitInterface {\n                member(id: $userId) {\n                    __typename\n                    ... on OrganizationMember {\n                        id\n                        customFields {\n                            id\n                            label\n                            labelOptions\n                            fields {\n                                ...ProfileFieldFragment\n                            }\n                        }\n                    }\n                    ... on FullOrganizationMember {\n                        id\n                        customFields {\n                            id\n                            sectionId\n                            label\n                            labelOptions\n                            maxFields\n                            sections {\n                                id\n                                label\n                            }\n                            fields {\n                                ...ProfileFieldFragment\n                            }\n                            __typename\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment ProfileFieldFragment on ProfileField {\n    ... on Node {\n        id\n    }\n    label\n    labelOptions\n    visibility\n    __typename\n    ... on ProfilePhoneField {\n        phoneNumber\n        placeholder\n    }\n    ... on ProfileTextField {\n        text\n        placeholder\n    }\n    ... on ProfileDropdownField {\n        options\n        selectedOptions\n    }\n    ... on ProfileNumericField {\n        value\n    }\n    ... on ProfileLinkField {\n        url\n    }\n    ... on ProfileEmailField {\n        email\n    }\n    ... on ProfileDateField {\n        date\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"userId\": \"645dde01-a04e-4057-8174-2d4503ef7fcf\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 03 Jan 2025 15:01:15 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1410"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"8fd98d2f-63cc-48a5-a5bb-be94b7280dee"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"member\": {\n                    \"__typename\": \"FullOrganizationMember\",\n                    \"id\": \"645dde01-a04e-4057-8174-2d4503ef7fcf\",\n                    \"customFields\": [\n                        {\n                            \"id\": \"67730588e8ed001bb4bd348f\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 10,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"67730588e8ed001bb4bd3490\",\n                            \"sectionId\": \"section2\",\n                            \"label\": \"Address\",\n                            \"labelOptions\": [\n                                \"Address\"\n                            ],\n                            \"maxFields\": 30,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"67730588e8ed001bb4bd3491\",\n                            \"sectionId\": \"section3\",\n                            \"label\": \"Personal Details\",\n                            \"labelOptions\": [\n                                \"Personal Details\"\n                            ],\n                            \"maxFields\": 20,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"2f785f37-994e-4629-a590-92af86507d47"}],"id":"d84305cc-61d1-4417-98c6-ce2a65a5844e","_postman_id":"d84305cc-61d1-4417-98c6-ce2a65a5844e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Invite","item":[{"name":"Get Paginated Sent Invites","id":"9e6b691f-e561-4a80-aa8c-a5c8a0e09ba5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query PaginatedSentInvites(\n  $filters: InviteFilters\n  $pageInfo: CursorPageInput\n) {\n  selfQuery {\n    invites(filters: $filters, pageInfo: $pageInfo) {\n      __typename\n      ... on PaginatedPendingInvitesResponse {\n        invites {\n          ...InviteFragment\n        }\n        pageInfo {\n          hasNextPage\n          startCursor\n          endCursor\n          totalResults\n          nextCursor\n          pageSize\n          resultsCount\n        }\n      }\n    }\n  }\n}\nfragment InviteFragment on UserInvite {\n  id\n  status\n  user {\n    ...OrganizationMemberFragment\n  }\n}\nfragment OrganizationMemberFragment on OrganizationMember {\n  id\n  firstname: firstName\n  lastname: lastName\n  role\n  memberStatus\n}\n","variables":"{\n    \"pageInfo\": {\n        \"pageSize\": 5,\n        \"cursor\": null\n    },\n    \"filters\": {\n        \"inviteStatus\": [\"pending_admin_approval\"]\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-paginated-sent-invites\">Fetch Paginated Sent Invites</h2>\n<p>GraphQL query for retrieving a paginated list of invites sent by the user. It supports filtering by invite status and search query, and it uses cursor-based pagination.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>filters</code> (Object): An object containing the following optional filters</p>\n<ul>\n<li><p><code>searchQuery</code>(String, optional): A search query to filter invites by</p>\n</li>\n<li><p><code>inviteStatus</code> ([String], optional): An array of invite statuses to filter by. Defaults to <code>[\"pending_user_acceptance\", \"pending_admin_approval\"]</code>.</p>\n</li>\n</ul>\n</li>\n<li><p><code>pageInfo</code>(Object): An object containing pagination information:</p>\n<ul>\n<li><p><code>cursor</code>(String, optional): The cursor for the current page</p>\n</li>\n<li><p><code>pageSize</code> (Int, optional): The number of results per page</p>\n</li>\n<li><p><code>direction</code>(String, optional): The direction of pagination (e.g., \"forward\" or \"backward\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the paginated list of sent invites</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</li>\n</ul>\n","urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"683e64cb-40ca-4ba7-9229-482656c94784","name":"Success Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query PaginatedSentInvites(\n  $filters: InviteFilters\n  $pageInfo: CursorPageInput\n) {\n  selfQuery {\n    invites(filters: $filters, pageInfo: $pageInfo) {\n      __typename\n      ... on PaginatedPendingInvitesResponse {\n        invites {\n          ...InviteFragment\n        }\n        pageInfo {\n          hasNextPage\n          startCursor\n          endCursor\n          totalResults\n          nextCursor\n          pageSize\n          resultsCount\n        }\n      }\n    }\n  }\n}\nfragment InviteFragment on UserInvite {\n  id\n  status\n  user {\n    ...OrganizationMemberFragment\n  }\n}\nfragment OrganizationMemberFragment on OrganizationMember {\n  id\n  firstname: firstName\n  lastname: lastName\n  role\n  memberStatus\n}\n","variables":"{\n    \"pageInfo\": {\n        \"pageSize\": 5,\n        \"cursor\": null\n    },\n    \"filters\": {\n        \"inviteStatus\": []\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 03 Jan 2025 15:02:10 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2229"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"88f2a8a7-61b6-4282-9eff-85b535335dcd"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfQuery\": {\n            \"invites\": {\n                \"__typename\": \"PaginatedPendingInvitesResponse\",\n                \"invites\": [\n                    {\n                        \"id\": 73,\n                        \"status\": \"pending_user_acceptance\",\n                        \"user\": {\n                            \"id\": \"3fcace8d-b724-4df4-b3ce-e13e1e550ab3\",\n                            \"firstname\": \"tester2@acmeteachinghospital.com\",\n                            \"lastname\": \"\",\n                            \"role\": \"\",\n                            \"memberStatus\": \"inactive\"\n                        }\n                    },\n                    {\n                        \"id\": 72,\n                        \"status\": \"pending_user_acceptance\",\n                        \"user\": {\n                            \"id\": \"2e670c84-4a47-4a7d-9ece-6a5f563407dc\",\n                            \"firstname\": \"blocked@hypercarecanada.com\",\n                            \"lastname\": \"\",\n                            \"role\": \"\",\n                            \"memberStatus\": \"inactive\"\n                        }\n                    },\n                    {\n                        \"id\": 335,\n                        \"status\": \"pending_user_acceptance\",\n                        \"user\": {\n                            \"id\": \"5842b9d6-449a-452c-a985-1e782f8d56f7\",\n                            \"firstname\": \"test2233@hypercare.com\",\n                            \"lastname\": \"\",\n                            \"role\": \"\",\n                            \"memberStatus\": \"inactive\"\n                        }\n                    },\n                    {\n                        \"id\": 334,\n                        \"status\": \"pending_user_acceptance\",\n                        \"user\": {\n                            \"id\": \"ee3a5196-5cbd-45af-ae83-64dd83a35a8a\",\n                            \"firstname\": \"test2234@hypercare.com\",\n                            \"lastname\": \"\",\n                            \"role\": \"\",\n                            \"memberStatus\": \"inactive\"\n                        }\n                    },\n                    {\n                        \"id\": 333,\n                        \"status\": \"pending_user_acceptance\",\n                        \"user\": {\n                            \"id\": \"f2c4403e-7eab-4346-bf76-10598dca41e3\",\n                            \"firstname\": \"test223@hypercare.com\",\n                            \"lastname\": \"\",\n                            \"role\": \"\",\n                            \"memberStatus\": \"inactive\"\n                        }\n                    }\n                ],\n                \"pageInfo\": {\n                    \"hasNextPage\": true,\n                    \"startCursor\": null,\n                    \"endCursor\": null,\n                    \"totalResults\": 15,\n                    \"nextCursor\": \"LHRlc3QyMjNAaHlwZXJjYXJlLmNvbSwsZjJjNDQwM2UtN2VhYi00MzQ2LWJmNzYtMTA1OThkY2E0MWUz\",\n                    \"pageSize\": 5,\n                    \"resultsCount\": 5\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"9e6b691f-e561-4a80-aa8c-a5c8a0e09ba5"},{"name":"Invite Users","id":"d70b18cb-6ad3-4f1a-80f4-77937c155698","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation InviteUsers($invitees: [InviteUserDetails!]!) {\n    organizationMutation {\n        inviteUsers(invitees: $invitees) {\n            ... on InviteUsersResponse {\n                invitees {\n                    __typename\n                    ... on Error {\n                        message\n                    }\n                    ... on UserInvite {\n                        id\n                        status\n                        invitedBy {\n                            ...OrganizationMemberFragment\n                        }\n                        user {\n                            ...OrganizationMemberFragment\n                        }\n                        resolvedBy {\n                            ...OrganizationMemberFragment\n                        }\n                    }\n                    ... on AddressInUse {\n                        address\n                    }\n                    ... on AccountBlocked {\n                        address\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    id\n    firstName\n    lastName\n    role\n    memberStatus\n    addresses {\n        address\n        type\n        access\n    }\n}","variables":"{\n    \"invitees\": [\n        {\n            \"addresses\": [\n                {\n                    \"address\": \"test@gmail.com\",\n                    \"type\": \"email\",\n                    \"access\": \"public\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"invite-users\">Invite Users</h2>\n<p>GraphQL mutation for non-admins to invite users to an organization. It verifies the user's permissions and then sends invitations to the specified users. If an address was previously blacklisted for the organization, an error will be thrown</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>invitees</code> (Object):</p>\n<ul>\n<li><p><code>addresses</code>(Object)</p>\n<ul>\n<li><p><code>address</code> (String): The email address to which invitation will be sent</p>\n</li>\n<li><p><code>type</code> (String): The type of address (e.g. \"email\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>profile</code>(Object, optional): Additional user information that can be added during the inactive/shell account invite/creation process. If no profile information is provided, the invited email will be used as the first name by default</p>\n<ul>\n<li><p><code>firstName</code> (String)</p>\n</li>\n<li><p><code>lastName</code> (String)</p>\n</li>\n<li><p><code>role</code> (String)</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An array of objects representing the result of the invitation process, including the list of successfully invited users and any errors encountered. The order of results returned in the array is the same as the order of the inputted invites, with <code>OrganizationMember</code> being the successful result</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>AddressInUse</code>: One or more addresses are linked with an existing user in the organization</p>\n</li>\n<li><p><code>EmailAddressMissing</code>: Email is required for invites</p>\n</li>\n<li><p><code>AccountBlocked</code>: Cannot invite an email that belongs to an blacklisted account</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"a68dd95d-7e3d-4f6c-8d7e-d6bec9c26942","name":"Address In Use","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation InviteUsers($invitees: [InviteUserDetails!]!) {\n    organizationMutation {\n        inviteUsers(invitees: $invitees) {\n            ... on InviteUsersResponse {\n                invitees {\n                    __typename\n                    ... on Error {\n                        message\n                    }\n                    ... on OrganizationMember {\n                        id\n                        firstName\n                        lastName\n                        addresses {\n                            address\n                            type\n                            access\n                            label\n                        }\n                    }\n                    ... on AddressInUse {\n                        address\n                    }\n                    ... on AccountBlocked {\n                        address\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"invitees\": [\n        {\n            \"addresses\": [\n                {\n                    \"address\": \"umar+test2@hypercare.com\",\n                    \"type\": \"email\",\n                    \"access\": \"public\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"ef4270d1-181a-40ab-bfad-4e96ddd83e5b"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"335"},{"key":"Date","value":"Sat, 14 Sep 2024 18:00:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationMutation\": {\n            \"inviteUsers\": {\n                \"invitees\": [\n                    {\n                        \"__typename\": \"AddressInUse\",\n                        \"message\": \"One or more addresses are linked with an existing user in the organization\",\n                        \"address\": \"umar+test2@hypercare.com\"\n                    }\n                ]\n            }\n        }\n    }\n}"},{"id":"668ca45e-9895-44fe-94a8-575128ac8d06","name":"Account Blocked","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation InviteUsers($invitees: [InviteUserDetails!]!) {\n    organizationMutation {\n        inviteUsers(invitees: $invitees) {\n            ... on InviteUsersResponse {\n                invitees {\n                    __typename\n                    ... on Error {\n                        message\n                    }\n                    ... on OrganizationMember {\n                        id\n                        firstName\n                        lastName\n                        addresses {\n                            address\n                            type\n                            access\n                            label\n                        }\n                    }\n                    ... on AddressInUse {\n                        address\n                    }\n                    ... on AccountBlocked {\n                        address\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"invitees\": [\n        {\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+9@hypercare.com\",\n                    \"type\": \"email\",\n                    \"access\": \"public\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"176edec8-e140-4805-bebc-6b64dde35569"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"353"},{"key":"Date","value":"Sat, 14 Sep 2024 18:01:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationMutation\": {\n            \"inviteUsers\": {\n                \"invitees\": [\n                    {\n                        \"__typename\": \"AccountBlocked\",\n                        \"message\": \"One or more addresses are linked to a removed user and are blacklisted for this organization.\",\n                        \"address\": \"ralph+9@hypercare.com\"\n                    }\n                ]\n            }\n        }\n    }\n}"},{"id":"ec47b15e-bd0b-4f68-9d1c-b83bdccc2332","name":"Pending Invite","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation InviteUsers($invitees: [InviteUserDetails!]!) {\n    organizationMutation {\n        inviteUsers(invitees: $invitees) {\n            ... on InviteUsersResponse {\n                invitees {\n                    __typename\n                    ... on Error {\n                        message\n                    }\n                    ... on OrganizationMember {\n                        id\n                        firstName\n                        lastName\n                        addresses {\n                            address\n                            type\n                            access\n                            label\n                        }\n                    }\n                    ... on AddressInUse {\n                        address\n                    }\n                    ... on AccountBlocked {\n                        address\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"invitees\": [\n        {\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+9@hypercare.com\",\n                    \"type\": \"email\",\n                    \"access\": \"public\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"176edec8-e140-4805-bebc-6b64dde35569"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"353"},{"key":"Date","value":"Sat, 14 Sep 2024 18:01:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationMutation\": {\n            \"inviteUsers\": {\n                \"invitees\": [\n                    {\n                        \"__typename\": \"InvitePendingAdminApproval\",\n                        \"message\": \"One or more addresses are pending admin approval for invites\",\n                        \"address\": \"ralph+9@hypercare.com\"\n                    }\n                ]\n            }\n        }\n    }\n}"},{"id":"f3e5c656-0704-4030-a307-3cb7e0105960","name":"Missing Email Address","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation InviteUsers($invitees: [InviteUserDetails!]!) {\n    organizationMutation {\n        inviteUsers(invitees: $invitees) {\n            ... on InviteUsersResponse {\n                invitees {\n                    __typename\n                    ... on Error {\n                        message\n                    }\n                    ... on OrganizationMember {\n                        id\n                        firstName\n                        lastName\n                        addresses {\n                            address\n                            type\n                            access\n                            label\n                        }\n                    }\n                    ... on AddressInUse {\n                        address\n                    }\n                    ... on AccountBlocked {\n                        address\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"invitees\": [\n        {\n            \"addresses\": [\n                {\n                    \"address\": \"+16476784076\",\n                    \"type\": \"phoneNumber\",\n                    \"access\": \"public\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"5951072e-7729-4ff0-8469-18df107fd1d7"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"242"},{"key":"Date","value":"Sat, 14 Sep 2024 18:01:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationMutation\": {\n            \"inviteUsers\": {\n                \"invitees\": [\n                    {\n                        \"__typename\": \"EmailAddressMissing\",\n                        \"message\": \"Email address is required\"\n                    }\n                ]\n            }\n        }\n    }\n}"},{"id":"f4f4db1a-795c-40be-9638-d4079f582c3a","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation InviteUsers($invitees: [InviteUserDetails!]!) {\n    organizationMutation {\n        inviteUsers(invitees: $invitees) {\n            ... on InviteUsersResponse {\n                invitees {\n                    __typename\n                    ... on Error {\n                        message\n                    }\n                    ... on OrganizationMember {\n                        id\n                        firstName\n                        lastName\n                        addresses {\n                            address\n                            type\n                            access\n                            label\n                        }\n                    }\n                    ... on AddressInUse {\n                        address\n                    }\n                    ... on AccountBlocked {\n                        address\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"invitees\": [\n        {\n            \"addresses\": [\n                {\n                    \"address\": \"umar+test3@hypercare.com\",\n                    \"type\": \"email\",\n                    \"access\": \"public\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"3c296e00-6a82-45bc-9b19-c9422e31fe69"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"558"},{"key":"Date","value":"Sat, 14 Sep 2024 18:02:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationMutation\": {\n            \"inviteUsers\": {\n                \"invitees\": [\n                    {\n                        \"__typename\": \"OrganizationMember\",\n                        \"id\": \"b3608627-dd9a-41a6-bc5c-1e1e721a79ec\",\n                        \"firstName\": \"umar+test3@hypercare.com\",\n                        \"lastName\": null,\n                        \"addresses\": [\n                            {\n                                \"address\": \"umar+test3@hypercare.com\",\n                                \"type\": \"email\",\n                                \"access\": \"public\",\n                                \"label\": null\n                            }\n                        ]\n                    }\n                ]\n            }\n        }\n    }\n}"},{"id":"ae65c571-4a95-4d91-b9d1-2a3872353d40","name":"Success and Failure Responses","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation InviteUsers($invitees: [InviteUserDetails!]!) {\n    organizationMutation {\n        inviteUsers(invitees: $invitees) {\n            ... on InviteUsersResponse {\n                invitees {\n                    __typename\n                    ... on Error {\n                        message\n                    }\n                    ... on OrganizationMember {\n                        id\n                        firstName\n                        lastName\n                        addresses {\n                            address\n                            type\n                            access\n                            label\n                        }\n                    }\n                    ... on AddressInUse {\n                        address\n                    }\n                    ... on AccountBlocked {\n                        address\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"invitees\": [\n        {\n            \"addresses\": [\n                {\n                    \"address\": \"umar+test4@hypercare.com\",\n                    \"type\": \"email\",\n                    \"access\": \"public\"\n                }\n            ]\n        },\n        {\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+9@hypercare.com\",\n                    \"type\": \"email\",\n                    \"access\": \"public\"\n                }\n            ]\n        },\n        {\n            \"addresses\": [\n                {\n                    \"address\": \"umar+test2@hypercare.com\",\n                    \"type\": \"email\",\n                    \"access\": \"public\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"914eb5b7-38e7-4f55-918d-9a64ae891fec"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1012"},{"key":"Date","value":"Sat, 14 Sep 2024 18:02:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationMutation\": {\n            \"inviteUsers\": {\n                \"invitees\": [\n                    {\n                        \"__typename\": \"OrganizationMember\",\n                        \"id\": \"dbc8e104-ae20-4386-95f3-9d100b839680\",\n                        \"firstName\": \"umar+test4@hypercare.com\",\n                        \"lastName\": null,\n                        \"addresses\": [\n                            {\n                                \"address\": \"umar+test4@hypercare.com\",\n                                \"type\": \"email\",\n                                \"access\": \"public\",\n                                \"label\": null\n                            }\n                        ]\n                    },\n                    {\n                        \"__typename\": \"AccountBlocked\",\n                        \"message\": \"One or more addresses are linked to a removed user and are blacklisted for this organization.\",\n                        \"address\": \"ralph+9@hypercare.com\"\n                    },\n                    {\n                        \"__typename\": \"AddressInUse\",\n                        \"message\": \"One or more addresses are linked with an existing user in the organization\",\n                        \"address\": \"umar+test2@hypercare.com\"\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"d70b18cb-6ad3-4f1a-80f4-77937c155698"}],"id":"f34d08b8-54cd-4140-ae44-573fd980991b","_postman_id":"f34d08b8-54cd-4140-ae44-573fd980991b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Fetch Admin Status for My Organizations, Sites, Departments","event":[{"listen":"test","script":{"id":"ed546556-9574-47e5-ab7a-b7609da3a8b2","exec":["let jsonBody = pm.response.json();","var response = jsonBody.data.me;"," ","pm.test(\"get number of organizations\", function(){"," let org =   response.organizations.length;"," console.log(\"number of organizations are:\", org);","    ","})"," pm.test(\"get the names of the organizations\", function(){","     console.log(\"the organizations are:\")","     for(var i=0;i<response.organizations.length;i++){","   let orgNames = response.organizations[i].name","   console.log(orgNames)","     }","     ","     "," })"," "," pm.test(\"get the sites\",function(){","    for(var k=0;k<response.organizations.length;k++) {","        ","        ","        console.log(\"the organizations And their respective sites are\");  ","        for(var l=0;l<response.organizations[k].sites.length;l++){","           let orgSites = response.organizations[k].sites[l].name;","           console.log(\"gfkujlk\",orgSites);","           ","        }","    }","})"," "],"type":"text/javascript"}}],"id":"d3afee69-158b-406c-9974-a710634c431f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query fetchMyOrganizations {\n    me {\n        organizations {\n            id\n            name\n            isAdmin\n            sites {\n                id\n                name\n                isAdmin\n                departments {\n                    id\n                    name\n                    isAdmin\n                }\n            }\n        }\n    }\n}","variables":""}},"url":"https://{{api_hostname}}/graphql/private","description":"<h2 id=\"fetch-my-admin-status\">Fetch My Admin Status</h2>\n<p>GraphQL query to fetch the admin status of all organizational units I am a part of</p>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object with my scopes, and if <code>isAdmin</code> is true for each</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"47d2acaa-3e51-41b1-b3d1-8cd22443a1a5","name":"Success Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query fetchMyOrganizations {\n    me {\n        organizations {\n            id\n            name\n            isAdmin\n            sites {\n                id\n                name\n                isAdmin\n                departments {\n                    id\n                    name\n                    isAdmin\n                }\n            }\n        }\n    }\n}","variables":""}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"Surrogate-Control","value":"no-store","enabled":true},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate","enabled":true},{"key":"Pragma","value":"no-cache","enabled":true},{"key":"Expires","value":"0","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Content-Length","value":"985","enabled":true},{"key":"Date","value":"Wed, 19 Jun 2019 19:44:29 GMT","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"me\": {\n            \"organizations\": [\n                {\n                    \"id\": 1,\n                    \"name\": \"Hypercare\",\n                    \"isAdmin\": true,\n                    \"sites\": [\n                        {\n                            \"id\": 1,\n                            \"name\": \"Toronto Office\",\n                            \"isAdmin\": true,\n                            \"departments\": [\n                                {\n                                    \"id\": 1,\n                                    \"name\": \"Engineering\",\n                                    \"isAdmin\": true\n                                },\n                                {\n                                    \"id\": 2,\n                                    \"name\": \"Sales\",\n                                    \"isAdmin\": true\n                                },\n                                {\n                                    \"id\": 3,\n                                    \"name\": \"Customer Success\",\n                                    \"isAdmin\": true\n                                }\n                            ]\n                        },\n                        {\n                            \"id\": 18,\n                            \"name\": \"Montreal Office\",\n                            \"isAdmin\": true,\n                            \"departments\": [\n                                {\n                                    \"id\": 6,\n                                    \"name\": \"Marketing\",\n                                    \"isAdmin\": true\n                                },\n                                {\n                                    \"id\": 7,\n                                    \"name\": \"HR\",\n                                    \"isAdmin\": true\n                                },\n                                {\n                                    \"id\": 13,\n                                    \"name\": \"Engineering\",\n                                    \"isAdmin\": true\n                                }\n                            ]\n                        }\n                    ]\n                },\n                {\n                    \"id\": 2,\n                    \"name\": \"ACME Teaching Hospital\",\n                    \"isAdmin\": false,\n                    \"sites\": [\n                        {\n                            \"id\": 2,\n                            \"name\": \"London Hospital\",\n                            \"isAdmin\": false,\n                            \"departments\": [\n                                {\n                                    \"id\": 4,\n                                    \"name\": \"Cardiology\",\n                                    \"isAdmin\": false\n                                },\n                                {\n                                    \"id\": 5,\n                                    \"name\": \"General Surgery\",\n                                    \"isAdmin\": true\n                                }\n                            ]\n                        },\n                        {\n                            \"id\": 5,\n                            \"name\": \"Guelph General Hospital\",\n                            \"isAdmin\": true,\n                            \"departments\": [\n                                {\n                                    \"id\": 8,\n                                    \"name\": \"Paediatrics\",\n                                    \"isAdmin\": true\n                                },\n                                {\n                                    \"id\": 9,\n                                    \"name\": \"OB/GYN\",\n                                    \"isAdmin\": true\n                                }\n                            ]\n                        }\n                    ]\n                },\n                {\n                    \"id\": 25,\n                    \"name\": \"Rainforest\",\n                    \"isAdmin\": false,\n                    \"sites\": [\n                        {\n                            \"id\": 20,\n                            \"name\": \"Site 1\",\n                            \"isAdmin\": false,\n                            \"departments\": [\n                                {\n                                    \"id\": 50,\n                                    \"name\": \"Department 1\",\n                                    \"isAdmin\": false\n                                }\n                            ]\n                        },\n                        {\n                            \"id\": 21,\n                            \"name\": \"Site 2\",\n                            \"isAdmin\": true,\n                            \"departments\": [\n                                {\n                                    \"id\": 51,\n                                    \"name\": \"Department 2\",\n                                    \"isAdmin\": true\n                                }\n                            ]\n                        }\n                    ]\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"d3afee69-158b-406c-9974-a710634c431f"},{"name":"Fetch Organizational Unit by ID","event":[{"listen":"test","script":{"id":"ed546556-9574-47e5-ab7a-b7609da3a8b2","exec":["let jsonBody = pm.response.json();","var response = jsonBody.data.me;"," ","pm.test(\"get number of organizations\", function(){"," let org =   response.organizations.length;"," console.log(\"number of organizations are:\", org);","    ","})"," pm.test(\"get the names of the organizations\", function(){","     console.log(\"the organizations are:\")","     for(var i=0;i<response.organizations.length;i++){","   let orgNames = response.organizations[i].name","   console.log(orgNames)","     }","     ","     "," })"," "," pm.test(\"get the sites\",function(){","    for(var k=0;k<response.organizations.length;k++) {","        ","        ","        console.log(\"the organizations And their respective sites are\");  ","        for(var l=0;l<response.organizations[k].sites.length;l++){","           let orgSites = response.organizations[k].sites[l].name;","           console.log(\"gfkujlk\",orgSites);","           ","        }","    }","})"," "],"type":"text/javascript"}}],"id":"feb577a0-04b7-445d-a996-4fdbe70b27e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationalUnit($organizationalUnit: OrganizationalUnitInput!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            __typename\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                ...OrganizationFragment\n            }\n            ... on Site {\n                __typename\n                ...SiteFragment\n            }\n            ... on Department {\n                __typename\n                ...DepartmentFragment\n            }\n        }\n    }\n}\n\nfragment OrganizationFragment on Organization {\n    id\n    name\n    imageURL\n    createdAt\n    termsOfServiceURL\n    privacyPolicyURL\n    allowInvites\n}\n\nfragment SiteFragment on Site {\n    id\n    name\n    createdAt\n}\n\nfragment DepartmentFragment on Department {\n    id\n    name\n    createdAt\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organization_id}},\n\t\t\"type\": \"organization\"\n\t}\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-organizational-unit\">Fetch Organizational Unit</h2>\n<p>GraphQL query for fetching an organizational unit by it's ID.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the organizational unit</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>OrganizationalUnitNotFoundError</code>: The inputted organizational unit ID does not exist</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"b9e6634e-734e-4dc1-bb2a-5ad044a7b4dc","name":"Success Sample Response - Organization","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationalUnit($organizationalUnit: OrganizationalUnitInput!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            __typename\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                ...OrganizationFragment\n            }\n            ... on Site {\n                __typename\n                ...SiteFragment\n            }\n            ... on Department {\n                __typename\n                ...DepartmentFragment\n            }\n        }\n    }\n}\n\nfragment OrganizationFragment on Organization {\n    id\n    name\n    imageURL\n    createdAt\n    termsOfServiceURL\n    privacyPolicyURL\n    allowInvites\n}\n\nfragment SiteFragment on Site {\n    id\n    name\n    createdAt\n}\n\nfragment DepartmentFragment on Department {\n    id\n    name\n    createdAt\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t}\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 21:47:48 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"433"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"4553344d-1470-4a85-9c3c-b78187d3acf2"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"id\": \"1\",\n                \"name\": \"Hypercare\",\n                \"imageURL\": null,\n                \"createdAt\": \"2022-05-19T04:05:05.000Z\",\n                \"termsOfServiceURL\": \"https://www.hypercare.com/terms-of-service\",\n                \"privacyPolicyURL\": \"https://www.hypercare.com/privacy-policy\",\n                \"allowInvites\": true\n            }\n        }\n    }\n}"},{"id":"6c656106-6376-469d-9434-463228e9aded","name":"Success Sample Response - Site","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationalUnit($organizationalUnit: OrganizationalUnitInput!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            __typename\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                ...OrganizationFragment\n            }\n            ... on Site {\n                __typename\n                ...SiteFragment\n            }\n            ... on Department {\n                __typename\n                ...DepartmentFragment\n            }\n        }\n    }\n}\n\nfragment OrganizationFragment on Organization {\n    id\n    name\n    imageURL\n    createdAt\n    termsOfServiceURL\n    privacyPolicyURL\n    allowInvites\n}\n\nfragment SiteFragment on Site {\n    id\n    name\n    createdAt\n}\n\nfragment DepartmentFragment on Department {\n    id\n    name\n    createdAt\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{siteId}},\n\t\t\"type\": \"site\"\n\t}\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 21:48:34 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"227"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"b8f50367-5040-48f9-8cc1-c6a8097e99e8"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Site\",\n                \"id\": \"1\",\n                \"name\": \"Toronto Office\",\n                \"createdAt\": \"2022-05-19T04:40:05.000Z\"\n            }\n        }\n    }\n}"},{"id":"86d24607-b6cb-4100-b63d-6b1e53c680d7","name":"Success Sample Response - Department","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationalUnit($organizationalUnit: OrganizationalUnitInput!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            __typename\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                ...OrganizationFragment\n            }\n            ... on Site {\n                __typename\n                ...SiteFragment\n            }\n            ... on Department {\n                __typename\n                ...DepartmentFragment\n            }\n        }\n    }\n}\n\nfragment OrganizationFragment on Organization {\n    id\n    name\n    imageURL\n    createdAt\n    termsOfServiceURL\n    privacyPolicyURL\n    allowInvites\n}\n\nfragment SiteFragment on Site {\n    id\n    name\n    createdAt\n}\n\nfragment DepartmentFragment on Department {\n    id\n    name\n    createdAt\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{departmentId}},\n\t\t\"type\": \"department\"\n\t}\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 21:48:45 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"230"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"76de739f-0908-4408-b862-087d7893d0ec"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Department\",\n                \"id\": \"1\",\n                \"name\": \"Engineering\",\n                \"createdAt\": \"2022-05-19T04:39:28.000Z\"\n            }\n        }\n    }\n}"}],"_postman_id":"feb577a0-04b7-445d-a996-4fdbe70b27e9"},{"name":"Fetch All Sites for Organization","event":[{"listen":"test","script":{"id":"ed546556-9574-47e5-ab7a-b7609da3a8b2","exec":["let jsonBody = pm.response.json();","var response = jsonBody.data.me;"," ","pm.test(\"get number of organizations\", function(){"," let org =   response.organizations.length;"," console.log(\"number of organizations are:\", org);","    ","})"," pm.test(\"get the names of the organizations\", function(){","     console.log(\"the organizations are:\")","     for(var i=0;i<response.organizations.length;i++){","   let orgNames = response.organizations[i].name","   console.log(orgNames)","     }","     ","     "," })"," "," pm.test(\"get the sites\",function(){","    for(var k=0;k<response.organizations.length;k++) {","        ","        ","        console.log(\"the organizations And their respective sites are\");  ","        for(var l=0;l<response.organizations[k].sites.length;l++){","           let orgSites = response.organizations[k].sites[l].name;","           console.log(\"gfkujlk\",orgSites);","           ","        }","    }","})"," "],"type":"text/javascript"}}],"id":"1557e1f1-b756-46ec-8f58-ba4aefc06c12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationalUnit($organizationalUnit: OrganizationalUnitInput!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            __typename\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                ...OrganizationFragment\n            }\n            ... on Site {\n                __typename\n                ...SiteFragment\n            }\n            ... on Department {\n                __typename\n                ...DepartmentFragment\n            }\n        }\n    }\n}\n\nfragment OrganizationFragment on Organization {\n    id\n    name\n    imageURL\n    createdAt\n    termsOfServiceURL\n    privacyPolicyURL\n    allowInvites\n\n    sites {\n        __typename\n        ...SiteFragment\n    }\n}\n\nfragment SiteFragment on Site {\n    id\n    name\n    createdAt\n}\n\nfragment DepartmentFragment on Department {\n    id\n    name\n    createdAt\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organization_id}},\n\t\t\"type\": \"organization\"\n\t}\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","description":"<p>Get all your organizations.</p>\n<p><strong>@return</strong> a list of all your organizations</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"27e28598-911e-4b48-b460-fee2c0150ac0","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationalUnit($organizationalUnit: OrganizationalUnitInput!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            __typename\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                ...OrganizationFragment\n            }\n            ... on Site {\n                __typename\n                ...SiteFragment\n            }\n            ... on Department {\n                __typename\n                ...DepartmentFragment\n            }\n        }\n    }\n}\n\nfragment OrganizationFragment on Organization {\n    id\n    name\n    imageURL\n    createdAt\n    termsOfServiceURL\n    privacyPolicyURL\n    allowInvites\n\n    sites {\n        __typename\n        ...SiteFragment\n    }\n}\n\nfragment SiteFragment on Site {\n    id\n    name\n    createdAt\n}\n\nfragment DepartmentFragment on Department {\n    id\n    name\n    createdAt\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t}\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 21:51:01 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1323"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"7bb24e52-7a45-4a96-ac1e-72105a20c42b"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"id\": \"1\",\n                \"name\": \"Hypercare\",\n                \"imageURL\": null,\n                \"createdAt\": \"2022-05-19T04:05:05.000Z\",\n                \"termsOfServiceURL\": \"https://www.hypercare.com/terms-of-service\",\n                \"privacyPolicyURL\": \"https://www.hypercare.com/privacy-policy\",\n                \"allowInvites\": true,\n                \"sites\": [\n                    {\n                        \"__typename\": \"Site\",\n                        \"id\": \"1\",\n                        \"name\": \"Toronto Office\",\n                        \"createdAt\": \"2022-05-19T04:40:05.000Z\"\n                    },\n                    {\n                        \"__typename\": \"Site\",\n                        \"id\": \"3\",\n                        \"name\": \"Montreal Office\",\n                        \"createdAt\": \"2022-05-19T17:07:17.000Z\"\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"1557e1f1-b756-46ec-8f58-ba4aefc06c12"},{"name":"Fetch All Sites and Departments for Organization","event":[{"listen":"test","script":{"id":"ed546556-9574-47e5-ab7a-b7609da3a8b2","exec":["let jsonBody = pm.response.json();","var response = jsonBody.data.me;"," ","pm.test(\"get number of organizations\", function(){"," let org =   response.organizations.length;"," console.log(\"number of organizations are:\", org);","    ","})"," pm.test(\"get the names of the organizations\", function(){","     console.log(\"the organizations are:\")","     for(var i=0;i<response.organizations.length;i++){","   let orgNames = response.organizations[i].name","   console.log(orgNames)","     }","     ","     "," })"," "," pm.test(\"get the sites\",function(){","    for(var k=0;k<response.organizations.length;k++) {","        ","        ","        console.log(\"the organizations And their respective sites are\");  ","        for(var l=0;l<response.organizations[k].sites.length;l++){","           let orgSites = response.organizations[k].sites[l].name;","           console.log(\"gfkujlk\",orgSites);","           ","        }","    }","})"," "],"type":"text/javascript"}}],"id":"0cf282d2-701e-4659-bcff-06a9054b999c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationalUnit($organizationalUnit: OrganizationalUnitInput!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            __typename\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                ...OrganizationFragment\n            }\n            ... on Site {\n                __typename\n                ...SiteFragment\n            }\n            ... on Department {\n                __typename\n                ...DepartmentFragment\n            }\n        }\n    }\n}\n\nfragment OrganizationFragment on Organization {\n    id\n    name\n    imageURL\n    createdAt\n    termsOfServiceURL\n    privacyPolicyURL\n    allowInvites\n\n    sites {\n        __typename\n        ...SiteFragment\n    }\n}\n\nfragment SiteFragment on Site {\n    id\n    name\n    createdAt\n\n    departments {\n        __typename\n        ...DepartmentFragment\n    }\n}\n\nfragment DepartmentFragment on Department {\n    id\n    name\n    createdAt\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organization_id}},\n\t\t\"type\": \"organization\"\n\t}\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","description":"<p>Get all your organizations.</p>\n<p><strong>@return</strong> a list of all your organizations</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"609c314f-9304-4c55-9f97-9cfe7a443472","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationalUnit($organizationalUnit: OrganizationalUnitInput!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            __typename\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                ...OrganizationFragment\n            }\n            ... on Site {\n                __typename\n                ...SiteFragment\n            }\n            ... on Department {\n                __typename\n                ...DepartmentFragment\n            }\n        }\n    }\n}\n\nfragment OrganizationFragment on Organization {\n    id\n    name\n    imageURL\n    createdAt\n    termsOfServiceURL\n    privacyPolicyURL\n    allowInvites\n\n    sites {\n        __typename\n        ...SiteFragment\n    }\n}\n\nfragment SiteFragment on Site {\n    id\n    name\n    createdAt\n\n    departments {\n        __typename\n        ...DepartmentFragment\n    }\n}\n\nfragment DepartmentFragment on Department {\n    id\n    name\n    createdAt\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t}\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 21:53:05 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3831"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"c129a954-62c2-4021-bf6b-5d6674225644"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"id\": \"1\",\n                \"name\": \"Hypercare\",\n                \"imageURL\": null,\n                \"createdAt\": \"2022-05-19T04:05:05.000Z\",\n                \"termsOfServiceURL\": \"https://www.hypercare.com/terms-of-service\",\n                \"privacyPolicyURL\": \"https://www.hypercare.com/privacy-policy\",\n                \"allowInvites\": true,\n                \"sites\": [\n                    {\n                        \"__typename\": \"Site\",\n                        \"id\": \"1\",\n                        \"name\": \"Toronto Office\",\n                        \"createdAt\": \"2022-05-19T04:40:05.000Z\",\n                        \"departments\": [\n                            {\n                                \"__typename\": \"Department\",\n                                \"id\": \"1\",\n                                \"name\": \"Engineering\",\n                                \"createdAt\": \"2022-05-19T04:39:28.000Z\"\n                            },\n                            {\n                                \"__typename\": \"Department\",\n                                \"id\": \"2\",\n                                \"name\": \"Sales\",\n                                \"createdAt\": \"2022-05-19T04:39:44.000Z\"\n                            },\n                            {\n                                \"__typename\": \"Department\",\n                                \"id\": \"3\",\n                                \"name\": \"Customer Success\",\n                                \"createdAt\": \"2022-05-19T04:39:51.000Z\"\n                            }\n                        ]\n                    },\n                    {\n                        \"__typename\": \"Site\",\n                        \"id\": \"3\",\n                        \"name\": \"Montreal Office\",\n                        \"createdAt\": \"2022-05-19T17:07:17.000Z\",\n                        \"departments\": [\n                            {\n                                \"__typename\": \"Department\",\n                                \"id\": \"6\",\n                                \"name\": \"Marketing\",\n                                \"createdAt\": \"2022-05-19T17:08:03.000Z\"\n                            },\n                            {\n                                \"__typename\": \"Department\",\n                                \"id\": \"7\",\n                                \"name\": \"HR\",\n                                \"createdAt\": \"2022-05-19T17:08:07.000Z\"\n                            },\n                            {\n                                \"__typename\": \"Department\",\n                                \"id\": \"13\",\n                                \"name\": \"Engineering\",\n                                \"createdAt\": \"2023-05-05T15:55:52.000Z\"\n                            }\n                        ]\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"0cf282d2-701e-4659-bcff-06a9054b999c"}],"id":"d3fbe0dd-fae1-4846-95d5-64f59e01eacb","description":"<p>This section contains functionalities accessable to all users with and without administrator privileges.</p>\n","_postman_id":"d3fbe0dd-fae1-4846-95d5-64f59e01eacb","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}}],"id":"ee861d48-6630-4d9f-8099-1d64402dbfcb","description":"<p>This section will provide developers with all the necessary information to integrate into Hypercare's organizational unit management features. An organizational unit can be the organization, site, or department of an institution. Through our GraphQL API, you'll have the capability to structure and manipulate organizational hierarchical data, ranging from user invites and permissions, site and departmental structures, and unit wide analytics.</p>\n","_postman_id":"ee861d48-6630-4d9f-8099-1d64402dbfcb","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"User","item":[{"name":"Admin","item":[{"name":"Addresses","item":[{"name":"Add Addresses","id":"c348e508-fcd1-4cb6-8000-b49fcbf6a2b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation AddAddresses($organizationalUnit: OrganizationalUnitInput!, $id: ID!, $addresses: [CreateAddressInput!]!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $id) {\n                        ... on UserNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            addAddresses(addresses: $addresses) {\n                                __typename\n                                    ... on AdminAddAddressesResponse {\n                                    addresses {\n                                        __typename\n                                        ... on Address {\n                                            address\n                                            type\n                                            organization {\n                                                id\n                                                name\n                                            }\n                                            syncStatus\n                                            label\n                                            createdAt\n                                            updatedAt\n                                        }\n                                        ... on AddressInUse { \n                                            __typename \n                                            message \n                                        }\n                                        ... on UserNotFoundError { \n                                            __typename \n                                            message \n                                        }\n                                    }\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": {{organizationId}}\n    },\n    \"id\": \"{{userId}}\",\n    \"addresses\": [\n        {\n            \"address\": \"email@test.com\",\n            \"type\": \"email\",\n            \"access\": \"public\"\n        },\n        {\n            \"address\": \"+16471234567\",\n            \"type\": \"phoneNumber\",\n            \"access\": \"private\"\n        },\n        {\n            \"address\": \"9051234567\",\n            \"type\": \"alphanumeric_pager\",\n            \"access\": \"public\"\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"add-addresses-admin\">Add Addresses (Admin)</h2>\n<p>GraphQL mutation for admins to add an array of addresses and their properties to the given user. Results will be returned for each added address individually, in the inputted order.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>id</code> (String): The ID of the user to whom addresses are being added</p>\n</li>\n<li><p><code>addresses</code> (Object): An array of address objects to be added to the given user</p>\n<ul>\n<li><p><code>address</code> (String): The address to be added</p>\n</li>\n<li><p><code>type</code> (String): The type of the address (e.g. \"phoneNumber\", \"email\", \"pager\", \"alphanumberic_pager\")</p>\n</li>\n<li><p><code>access</code> (String): The access type of the address. Public addresses can be viewed by all members of the organization, private addresses are visiable to the admin only (e.g. \"public\", \"private\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An array of ordered results cooresponding to the success or failure of each address to be added, returned in the same order as they are inputted</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>AddressInUse</code>: One or more addresses are linked with an existing user in the organization</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"b7368ab5-41cb-4267-bd76-7a3e24f43889","name":"Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation AddAddresses($organizationalUnit: OrganizationalUnitInput!, $memberId: ID!, $addresses: [CreateAddressInput!]!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $id) {\n                        addAddresses(addresses: $addresses) {\n                            __typename\n                            addresses {\n                            __typename\n                                ... on Address {\n                                    address\n                                    type\n                                }\n                                ... on AddressInUse { \n                                    __typename \n                                    message \n                                }\n                                ... on UserNotFoundError { \n                                    __typename \n                                    message \n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": {{organizationId}}\n    },\n    \"id\": \"93a41347-f236-4c9c-97aa-a7ec8f64fef4\",\n    \"addresses\": [\n        {\n            \"address\": \"+16470981235\",\n            \"type\": \"phoneNumber\",\n            \"access\": \"public\"\n        },\n        {\n            \"address\": \"email@test.com\",\n            \"type\": \"email\",\n            \"access\": \"public\"\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"73da7ec6-111e-4611-82ce-6b1b67f7f472"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"553"},{"key":"Date","value":"Mon, 25 Nov 2024 17:53:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"member\": {\n                    \"addAddresses\": {\n                        \"__typename\": \"AdminAddAddressesResponse\",\n                        \"addresses\": [\n                            {\n                                \"__typename\": \"Address\",\n                                \"address\": \"+6470981235\",\n                                \"type\": \"phoneNumber\"\n                            },\n                            {\n                                \"__typename\": \"AddressInUse\",\n                                \"message\": \"Address already in use for organization\"\n                            }\n                        ]\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"c348e508-fcd1-4cb6-8000-b49fcbf6a2b7"},{"name":"Remove Addresses","id":"e26095e8-9cf2-471d-b9ab-96856b6d7dbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation RemoveAddress($organizationalUnit: OrganizationalUnitInput!, $id: ID!, $addressIds: [String!]!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $id) {\n                        ... on UserNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            removeAddresses(addressIds: $addressIds) {\n                                __typename\n                                addresses {\n                                __typename\n                                    ... on DeletedAddress {\n                                        address\n                                    }\n                                    ... on AddressNotOwnedByUser { \n                                        __typename \n                                        message \n                                    }\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": {{organizationId}}\n    },\n    \"id\": \"{{userId}}\",\n    \"addressIds\": [\n        \"{{base64Address1}}\",\n        \"{{base64Address2}}\"\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"remove-addresses-admin\">Remove Addresses (Admin)</h2>\n<p>GraphQL mutation that allows admins to remove an array of addresses from a given user. Results will be returned for each removed address individually, in the inputted order.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>id</code> (String): The ID of the user to whom addresses are being removed</p>\n</li>\n<li><p><code>addressIds</code> ([String]): An array of base64 encoded addresses to be removed from the given user</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An array of ordered results cooresponding to the success or failure of each address to be removed, returned in the same order as they are inputted</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>AddressNotOwnedByUser</code>: The address to be removed does not belong to the user</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"cea524a8-5515-4edc-8918-e08d856408a6","name":"Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation RemoveAddresses($organizationalUnit: OrganizationalUnitInput!, $memberId: ID!, $addressIds: [String!]!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $memberId) {\n                        ... on UserNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            removeAddresses(addressIds: $addressIds) {\n                                __typename\n                                addresses {\n                                __typename\n                                    ... on DeletedAddress {\n                                        address\n                                    }\n                                    ... on AddressNotOwnedByUser { \n                                        __typename \n                                        message \n                                    }\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": {{organizationId}}\n    },\n    \"memberId\": \"93a41347-f236-4c9c-97aa-a7ec8f64fef4\",\n    \"addressIds\": [\n        \"KzY0NzA5ODEyMzQ=\",\n        \"KzY0NzA5ODEyMzU=\"\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"08809b36-ab00-459b-9a4f-6f295c1006a4"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"529"},{"key":"Date","value":"Tue, 26 Nov 2024 19:39:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"member\": {\n                    \"removeAddresses\": {\n                        \"__typename\": \"AdminDeleteAddressesResponse\",\n                        \"addresses\": [\n                            {\n                                \"__typename\": \"AddressNotOwnedByUser\",\n                                \"message\": \"The address is not owned by user\"\n                            },\n                            {\n                                \"__typename\": \"DeletedAddress\",\n                                \"address\": \"+6470981235\"\n                            }\n                        ]\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"e26095e8-9cf2-471d-b9ab-96856b6d7dbe"},{"name":"Update Address Access","id":"9afb489a-b641-4684-9935-82630fbf844e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateAddressAccess($organizationalUnit: OrganizationalUnitInput!, $id: ID!, $address: String!, $access: AccessType!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $id) {\n                        ... on UserNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            address(address: $address) {\n                                __typename\n                                ... on AddressMutation {\n                                    updateAccess(access: $access) {\n                                        __typename\n                                        ... on Address { \n                                            __typename\n                                            id\n                                            address\n                                            type\n                                            access\n                                            label\n                                        }\n                                    }\n                                }\n                                ... on AddressNotFound { \n                                    __typename \n                                    message \n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": {{organizationId}}\n    },\n    \"id\": \"{{userId}}\",\n    \"address\": \"{{address}}\",\n    \"access\": \"private\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"update-address-access-admin\">Update Address Access (Admin)</h2>\n<p>GraphQL mutation for admins to update the access permissions for a specific address for a given user</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>id</code> (String): The ID of the user to be updated</p>\n</li>\n<li><p><code>address</code> (String): The address to be updated</p>\n</li>\n<li><p><code>access</code> (String): The new access (e.g. \"public\", \"private\")</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object of the newly updated address</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>AddressNotOwnedByUser</code>: The address to be removed does not belong to the user</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"8bc70de9-2181-4b5c-918c-a9951cb26d87","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateAddressAccess($organizationalUnit: OrganizationalUnitInput!, $id: ID!, $address: String!, $access: AccessType!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $id) {\n                        ... on UserNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            address(address: $address) {\n                                __typename\n                                ... on AddressMutation {\n                                    updateAccess(access: $access) {\n                                        __typename\n                                        ... on Address { \n                                            __typename\n                                            id\n                                            address\n                                            type\n                                            access\n                                            label\n                                        }\n                                    }\n                                }\n                                ... on AddressNotFound { \n                                    __typename \n                                    message \n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": {{organizationId}}\n    },\n    \"id\": \"0278f9ce-ec2f-4f9c-a073-71436bb98139\",\n    \"address\": \"test003@gmail.com\",\n    \"access\": \"private\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"58fc453b-7242-423d-a51d-c4b795b18583"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"489"},{"key":"Date","value":"Thu, 05 Dec 2024 21:42:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"member\": {\n                    \"address\": {\n                        \"__typename\": \"AddressMutation\",\n                        \"updateAccess\": {\n                            \"__typename\": \"Address\",\n                            \"id\": \"bW9zdXNpZXl1K3Rlc3QwMDNAZ21haWwuY29t\",\n                            \"address\": \"test003@gmail.com\",\n                            \"type\": \"email\",\n                            \"access\": \"private\",\n                            \"label\": null\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"9afb489a-b641-4684-9935-82630fbf844e"},{"name":"Update Address Label","id":"19db1ee1-8eb7-43ec-a604-cc2a52aeb3e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateAddressLabel($organizationalUnit: OrganizationalUnitInput!, $id: ID!, $address: String!, $label: AddressLabel) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $id) {\n                        ... on UserNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            address(address: $address) {\n                                __typename\n                                ... on AddressMutation {\n                                    updateLabel(label: $label) {\n                                        __typename\n                                        ... on Address { \n                                            __typename\n                                            id\n                                            address\n                                            type\n                                            access\n                                            label\n                                        }\n                                    }\n                                }\n                                ... on AddressNotFound { \n                                    __typename \n                                    message \n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": {{organizationId}}\n    },\n    \"id\": {{userId}},\n    \"address\": {{address}},\n    \"label\": \"Work\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"update-address-label-admin\">Update Address Label (Admin)</h2>\n<p>GraphQL mutation for admins to update the label for a specific address for a given user</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organization for which pending invites are being retrieved</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>id</code> (String): The ID of the user to be updated</p>\n</li>\n<li><p><code>address</code> (String): The address to be updated</p>\n</li>\n<li><p><code>label</code> (String): The new address label (e.g. \"work\", \"home\", etc, as determined by your organization)</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object of the newly updated address</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>AddressNotOwnedByUser</code>: The address to be removed does not belong to the user</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"26d60352-b7ba-4e04-a0ad-d48f1a4c7263","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateAddressLabel($organizationalUnit: OrganizationalUnitInput!, $id: ID!, $address: String!, $label: AddressLabel) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $id) {\n                        ... on UserNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            address(address: $address) {\n                                __typename\n                                ... on AddressMutation {\n                                    updateLabel(label: $label) {\n                                        __typename\n                                        ... on Address { \n                                            __typename\n                                            id\n                                            address\n                                            type\n                                            access\n                                            label\n                                        }\n                                    }\n                                }\n                                ... on AddressNotFound { \n                                    __typename \n                                    message \n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": {{organizationId}}\n    },\n    \"id\": \"0278f9ce-ec2f-4f9c-a073-71436bb98139\",\n    \"address\": \"test003@gmail.com\",\n    \"label\": \"Work\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"0875268d-0cc8-43e8-8154-8fb6f34b8fbc"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"489"},{"key":"Date","value":"Thu, 05 Dec 2024 21:44:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"member\": {\n                    \"address\": {\n                        \"__typename\": \"AddressMutation\",\n                        \"updateLabel\": {\n                            \"__typename\": \"Address\",\n                            \"id\": \"bW9zdXNpZXl1K3Rlc3QwMDNAZ21haWwuY29t\",\n                            \"address\": \"test003@gmail.com\",\n                            \"type\": \"email\",\n                            \"access\": \"public\",\n                            \"label\": \"Work\"\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"19db1ee1-8eb7-43ec-a604-cc2a52aeb3e9"},{"name":"Update Address Order Preference","id":"5b471f3c-3442-4803-996d-70fc65c9a72d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateAddressOrderPreference($organizationalUnit: OrganizationalUnitInput!, $id: ID!, $address: [String!]!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $id) {\n                        ... on UserNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            updateAddressPreference(address: $address) {\n                                __typename\n                                ...SetAddressOrderResultFields\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment SetAddressOrderResultFields on UpdateAddressPreferenceResult {\n  __typename\n  ... on FullOrganizationMember {\n    addresses {\n      ...AddressFields\n    }\n  }\n  ... on InvalidAddressUpdateRequest {\n    message\n  }\n  ... on DuplicateAddresses {\n    message\n  }\n  ... on UnverifiedAddress {\n    message\n  }\n  ... on InvalidAddressCount {\n    message\n  }\n}\n\nfragment AddressFields on Address {\n  __typename\n  id\n  address\n  type\n  access\n}\n\n","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": {{organizationId}}\n    },\n    \"id\": {{userId}},\n    \"address\": [\n        {{address1}},\n        {{address2}}\n   ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"update-address-order-admin\">Update Address Order (Admin)</h2>\n<p>GraphQL mutation for admins to update the ordering of the addresses as they are shown on a user's profile</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organization for which pending invites are being retrieved</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>id</code> (String): The ID of the user to be updated</p>\n</li>\n<li><p><code>address</code> ([String]): An array of addresses in the order to be displayed on the user's profile</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the updated user and addresses</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n<li><p><code>InvalidAddressUpdateRequest</code>: The request is invalid or misformed</p>\n</li>\n<li><p><code>DuplicateAddresses</code>: One or more of the inputted address is a duplicate</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"845fd74c-bfb4-476f-80ec-a764e41b10cb","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateAddressPreference($organizationalUnit: OrganizationalUnitInput!, $id: ID!, $address: [String!]!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $id) {\n                        ... on UserNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            updateAddressPreference(address: $address) {\n                                __typename\n                                ...SetAddressOrderResultFields\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment SetAddressOrderResultFields on UpdateAddressPreferenceResult {\n  __typename\n  ... on FullOrganizationMember {\n    addresses {\n      ...AddressFields\n    }\n  }\n  ... on InvalidAddressUpdateRequest {\n    message\n  }\n  ... on DuplicateAddresses {\n    message\n  }\n  ... on UnverifiedAddress {\n    message\n  }\n  ... on InvalidAddressCount {\n    message\n  }\n}\n\nfragment AddressFields on Address {\n  __typename\n  id\n  address\n  type\n  access\n}\n\n","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": {{organizationId}}\n    },\n    \"id\": \"0278f9ce-ec2f-4f9c-a073-71436bb98139\",\n    \"address\": [\n        \"test003@gmail.com\"\n   ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"bc1ef065-93f6-4d31-a2b8-ca96ff1922c1"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"521"},{"key":"Date","value":"Thu, 05 Dec 2024 21:51:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"member\": {\n                    \"updateAddressPreference\": {\n                        \"__typename\": \"FullOrganizationMember\",\n                        \"addresses\": [\n                            {\n                                \"__typename\": \"Address\",\n                                \"id\": \"bW9zdXNpZXl1K3Rlc3QwMDNAZ21haWwuY29t\",\n                                \"address\": \"test003@gmail.com\",\n                                \"type\": \"email\",\n                                \"access\": \"public\"\n                            }\n                        ]\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"5b471f3c-3442-4803-996d-70fc65c9a72d"}],"id":"17f65842-9f71-411d-83c1-fce1ae822fd5","_postman_id":"17f65842-9f71-411d-83c1-fce1ae822fd5","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Profile Fields","item":[{"name":"Fetch Profile Fields for User","id":"9dfc9d76-6b92-4b8c-814d-60c3a15e4414","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n    adminQuery {\n        ... on AdminQuery {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                 ... on Error {\n          __typename\n          message\n      }\n                ... on AdminOrganizationQuery {\n                \n                    member(id: $userId) {\n                        ... on FullOrganizationMember {\n                            id\n                            firstName\n                            lastName\n                            username\n                            customFields {\n                                id\n                                sectionId\n                                label\n                                labelOptions\n                                maxFields\n                                sections {\n                                    id\n                                    label\n                                }\n                                fields {\n                                    ... on Node {\n                                        id\n                                    }\n                                    ...ProfileFieldFragment\n                                    __typename\n                                    ... on ProfilePhoneField {\n                                        phoneNumber\n                                        placeholder\n                                    }\n                                    ... on ProfileTextField {\n                                        text\n                                        placeholder\n                                    }\n                                    ... on ProfileDropdownField {\n                                        options\n                                        selectedOption\n                                    }\n                                    ... on ProfileNumericField {\n                                        value\n                                    }\n                                    ... on ProfileLinkField {\n                                        url\n                                    }\n                                    ... on ProfileEmailField {\n                                        email\n                                    }\n                                    ... on ProfileDateField {\n                                        date\n                                    }\n                                }\n                                __typename\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment ProfileFieldFragment on ProfileField {\n    fieldId\n    label\n    labelOptions\n    visibility\n    isSynced\n    isEditable\n    isRemovable\n    isRequired\n    validationRules {\n        regex\n    }\n}\n","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"userId\": \"{{userId}}\"\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-profile-fields-for-user-admin\">Fetch Profile Fields for User (Admin)</h2>\n<p>GraphQL query that returns all profile fields for a given user</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>userId</code> (String): The ID of the user to be updated</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the user and their profile fields</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"8535cf18-72aa-4eab-8c66-53a0f10fbb6c","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n    adminQuery {\n        ... on AdminQuery {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                 ... on Error {\n          __typename\n          message\n      }\n                ... on AdminOrganizationQuery {\n                \n                    member(id: $userId) {\n                        ... on FullOrganizationMember {\n                            id\n                            firstName\n                            lastName\n                            username\n                            customFields {\n                                id\n                                sectionId\n                                label\n                                labelOptions\n                                maxFields\n                                sections {\n                                    id\n                                    label\n                                }\n                                fields {\n                                    ... on Node {\n                                        id\n                                    }\n                                    ...ProfileFieldFragment\n                                    __typename\n                                    ... on ProfilePhoneField {\n                                        phoneNumber\n                                        placeholder\n                                    }\n                                    ... on ProfileTextField {\n                                        text\n                                        placeholder\n                                    }\n                                    ... on ProfileDropdownField {\n                                        options\n                                        selectedOption\n                                    }\n                                    ... on ProfileNumericField {\n                                        value\n                                    }\n                                    ... on ProfileLinkField {\n                                        url\n                                    }\n                                    ... on ProfileEmailField {\n                                        email\n                                    }\n                                    ... on ProfileDateField {\n                                        date\n                                    }\n                                }\n                                __typename\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment ProfileFieldFragment on ProfileField {\n    fieldId\n    label\n    labelOptions\n    visibility\n    isSynced\n    isEditable\n    isRemovable\n    isRequired\n    validationRules {\n        regex\n    }\n}\n","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"userId\": \"9b6324bb-40f0-42f7-b81a-24dae957a913\"\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 08 Mar 2024 16:38:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3805"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"010e9caf-4fe4-4117-a081-2cae47d801d8"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminQuery\": {\n            \"organizationalUnit\": {\n                \"member\": {\n                    \"id\": \"9b6324bb-40f0-42f7-b81a-24dae957a913\",\n                    \"firstName\": \"John\",\n                    \"lastName\": \"Smith\",\n                    \"username\": \"user001\",\n                    \"customFields\": [\n                        {\n                            \"id\": \"6535312890a4603dd2030feb\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [\n                                {\n                                    \"id\": \"6548f973048f292e3e546979\",\n                                    \"fieldId\": \"field1\",\n                                    \"label\": \"Wife\",\n                                    \"labelOptions\": [\n                                        \"Wife\",\n                                        \"Brother\",\n                                        \"Sister\",\n                                        \"Parent\"\n                                    ],\n                                    \"visibility\": \"public\",\n                                    \"isSynced\": false,\n                                    \"isEditable\": true,\n                                    \"isRemovable\": true,\n                                    \"isRequired\": false,\n                                    \"validationRules\": {\n                                        \"regex\": null\n                                    },\n                                    \"__typename\": \"ProfilePhoneField\",\n                                    \"phoneNumber\": \"+16471234567x890\",\n                                    \"placeholder\": null\n                                },\n                                {\n                                    \"id\": \"654a6c062f06c43bef5f5ffb\",\n                                    \"fieldId\": \"field1\",\n                                    \"label\": \"Brother\",\n                                    \"labelOptions\": [\n                                        \"Wife\",\n                                        \"Brother\",\n                                        \"Sister\",\n                                        \"Parent\"\n                                    ],\n                                    \"visibility\": \"private\",\n                                    \"isSynced\": false,\n                                    \"isEditable\": true,\n                                    \"isRemovable\": true,\n                                    \"isRequired\": false,\n                                    \"validationRules\": {\n                                        \"regex\": null\n                                    },\n                                    \"__typename\": \"ProfilePhoneField\",\n                                    \"phoneNumber\": \"+11234567890\",\n                                    \"placeholder\": null\n                                }\n                            ],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"6535313a90a46072ac030ff2\",\n                            \"sectionId\": \"section2\",\n                            \"label\": \"Address\",\n                            \"labelOptions\": [\n                                \"Address\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [\n                                {\n                                    \"id\": \"6548f973048f29e414546982\",\n                                    \"fieldId\": \"field3\",\n                                    \"label\": \"Country\",\n                                    \"labelOptions\": [\n                                        \"Country\"\n                                    ],\n                                    \"visibility\": \"private\",\n                                    \"isSynced\": false,\n                                    \"isEditable\": true,\n                                    \"isRemovable\": true,\n                                    \"isRequired\": false,\n                                    \"validationRules\": {\n                                        \"regex\": null\n                                    },\n                                    \"__typename\": \"ProfileDropdownField\",\n                                    \"options\": [\n                                        \"Canada\",\n                                        \"United States\",\n                                        \"Spain\"\n                                    ],\n                                    \"selectedOption\": null\n                                }\n                            ],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"6535314d90a4605df4030ff9\",\n                            \"sectionId\": \"section3\",\n                            \"label\": \"Personal Details\",\n                            \"labelOptions\": [\n                                \"Personal Details\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"9dfc9d76-6b92-4b8c-814d-60c3a15e4414"},{"name":"Add Profile Fields","id":"6200cf09-77b5-43fa-b5be-085ec8fdb480","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation AddProfileFields($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $uniqueSectionId: ID!, $fields: [CreateProfileFieldInput!]!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $userId) {\n                        profileSection(id: $uniqueSectionId) {\n                            addFields(fields: $fields) {\n                                ... on ProfileSection {\n                                    fields {\n                                        ... on Node {\n                                            id\n                                        }\n                                        ...ProfileFieldFragment\n                                        __typename\n                                        ... on ProfilePhoneField {\n                                            phoneNumber\n                                            placeholder\n                                        }\n                                        ... on ProfileTextField {\n                                            text\n                                            placeholder\n                                        }\n                                        ... on ProfileDropdownField {\n                                            options\n                                            selectedOption\n                                        }\n                                        ... on ProfileNumericField {\n                                            value\n                                        }\n                                        ... on ProfileLinkField {\n                                            url\n                                        }\n                                        ... on ProfileEmailField {\n                                            email\n                                        }\n                                        ... on ProfileDateField {\n                                            date\n                                        }\n                                    }\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment ProfileFieldFragment on ProfileField {\n    fieldId\n    label\n    labelOptions\n    visibility\n    isSynced\n    isEditable\n    isRemovable\n    isRequired\n    validationRules {\n        regex\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"userId\": \"{{userId}}\",\n    \"uniqueSectionId\": \"656cf925dd39f1597f57481e\",\n    \"fields\": [\n        {\n            \"fieldId\": \"083fb944-19de-4556-97d0-cc360704bb97\",\n            \"label\": \"Fax - Primary\",\n            \"visibility\": \"public\",\n            \"details\": {\n                \"phoneNumber\": \"4161234567\",\n                \"text\": \"4161234567\",\n                \"value\": \"4161234567\",\n                \"email\": \"4161234567\",\n                \"link\": \"4161234567\",\n                \"date\": \"4161234567\"\n            }\n        }\n    ]\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6200cf09-77b5-43fa-b5be-085ec8fdb480"},{"name":"Update Profile Fields","id":"1581511c-f750-4a56-adfd-f69b5fe2daa9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateProfileFields(\n    $organizationalUnit: OrganizationalUnitInput!\n    $userId: ID!\n    $uniqueFieldId: ID!\n    $fieldData: ProfileFieldInput!\n  ) {\n    adminMutation {\n      ... on AdminMutation {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n          ... on AdminOrganizationMutation {\n            member(id: $userId) {\n                ... on Error {\n                    __typename\n                    message\n                }\n                ... on FullOrganizationMemberMutation {\n                    profileField(id: $uniqueFieldId) {\n                        update(fieldData: $fieldData) {\n                        ... on Node {\n                            id\n                        }\n                        ... on ProfilePhoneField {\n                            ...ProfileFieldFragment\n                            phoneNumber\n                            placeholder\n                        }\n                        ... on ProfileTextField {\n                            ...ProfileFieldFragment\n                            text\n                            placeholder\n                        }\n                        ... on ProfileDropdownField {\n                            options\n                            selectedOption\n                        }\n                        ... on ProfileNumericField {\n                            value\n                        }\n                        ... on ProfileLinkField {\n                            url\n                        }\n                        ... on ProfileEmailField {\n                            email\n                        }\n                        ... on ProfileDateField {\n                            date\n                        }\n                        }\n                    }\n                }\n            }\n          }\n        }\n      }\n    }\n  }\n\n  fragment ProfileFieldFragment on ProfileField {\n    fieldId\n    label\n    labelOptions\n    visibility\n    isSynced\n    isEditable\n    isRemovable\n    isRequired\n    validationRules {\n      regex\n    }\n  }","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"userId\": \"{{userId}}\",\n    \"uniqueFieldId\": \"65642daf2c0c0972cd455ac6\",\n    \"fieldData\": \n        {\n            \"label\": \"Brother\",\n            \"visibility\": \"private\",\n            \"details\": {\n                \"phoneNumber\": \"+1234567890\"\n            }\n        }\n    \n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1581511c-f750-4a56-adfd-f69b5fe2daa9"},{"name":"Delete Profile Fields","id":"9780dae8-372e-4edf-80c8-34a75f83e237","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"  mutation DeleteProfileFields(\n        $organizationalUnit: OrganizationalUnitInput!\n        $userId: ID!\n        $uniqueFieldId: ID!\n        $fieldData: ProfileFieldInput!\n    ) {\n        adminMutation {\n            ... on AdminMutation {\n                organizationalUnit(organizationalUnit: $organizationalUnit) {\n                    ... on AdminOrganizationMutation {\n                        member(id: $userId) {\n                            ... on Error {\n                                __typename\n                                message\n                            }\n                            ... on FullOrganizationMemberMutation {\n                                    profileField(id: $uniqueFieldId) {\n                                        deleteField(fieldData: $fieldData) {\n                                            ... on Node {\n                                                id\n                                            }\n                                            ... on ProfilePhoneField {\n                                                ...ProfileFieldFragment\n                                                phoneNumber\n                                                placeholder\n                                            }\n                                            ... on ProfileTextField {\n                                                ...ProfileFieldFragment\n                                                text\n                                                placeholder\n                                            }\n                                            ... on ProfileDropdownField {\n                                                options\n                                                selectedOption\n                                            }\n                                            ... on ProfileNumericField {\n                                                value\n                                            }\n                                            ... on ProfileLinkField {\n                                                url\n                                            }\n                                            ... on ProfileEmailField {\n                                                email\n                                            }\n                                            ... on ProfileDateField {\n                                                date\n                                            }\n                                        }\n                                    }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n}\n\n  fragment ProfileFieldFragment on ProfileField {\n    fieldId\n    label\n    labelOptions\n    visibility\n    isSynced\n    isEditable\n    isRemovable\n    isRequired\n    validationRules {\n      regex\n    }\n  }","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"userId\": \"{{userId}}\",\n    \"uniqueFieldId\": \"65642daf2c0c0972cd455ac6\",\n    \"fieldData\": \n        {\n            \"label\": \"Brother\",\n            \"visibility\": \"private\",\n            \"details\": {\n                \"phoneNumber\": \"+1234567890\"\n            }\n        }\n    \n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9780dae8-372e-4edf-80c8-34a75f83e237"},{"name":"Add Profile Section","id":"595ef179-251b-47d0-8b0c-7c825dc29c73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation AddProfileFields($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $sectionDetails: CreateProfileSectionInput!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $userId) {\n                        ... on Error {\n                                __typename\n                                message\n                            }\n                            ... on FullOrganizationMemberMutation {\n                                addSection(details: $sectionDetails) {\n                                    ... on ProfileSection {\n                                        id\n                                        sectionId\n                                        fields {\n                                            ... on Node {\n                                                id\n                                            }\n                                            ...ProfileFieldFragment\n                                            __typename\n                                            ... on ProfilePhoneField {\n                                                phoneNumber\n                                                placeholder\n                                            }\n                                            ... on ProfileTextField {\n                                                text\n                                                placeholder\n                                            }\n                                            ... on ProfileDropdownField {\n                                                options\n                                                selectedOption\n                                            }\n                                            ... on ProfileNumericField {\n                                                value\n                                            }\n                                            ... on ProfileLinkField {\n                                                url\n                                            }\n                                            ... on ProfileEmailField {\n                                                email\n                                            }\n                                            ... on ProfileDateField {\n                                                date\n                                            }\n                                        }\n                                    }\n                                }\n                            }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment ProfileFieldFragment on ProfileField {\n    fieldId\n    label\n    labelOptions\n    visibility\n    isSynced\n    isEditable\n    isRemovable\n    isRequired\n    validationRules {\n        regex\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"userId\": \"{{userId}}\",\n    \"sectionDetails\": {\n        \"sectionId\": \"00623847-7b4f-4c08-9713-53b70832bb50\",\n        \"label\": \"Emergency Contact Information\",\n        \"sections\": [],\n        \"fields\": []\n    }\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"595ef179-251b-47d0-8b0c-7c825dc29c73"}],"id":"60af7c89-d97e-43a5-97d3-02ea1383f2cb","_postman_id":"60af7c89-d97e-43a5-97d3-02ea1383f2cb","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Profile Notes","item":[{"name":"Create Profile Note","id":"9450b36d-0efe-4d9c-bfbc-3d9ec2795485","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $details: CreateHiddenNoteDetails!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                 ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    member(id: $userId) {\n                        ... on UserNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            createNote(details: $details) {\n                                ... on ProfileNote {\n                                    __typename\n                                    id\n                                    note\n                                    access\n                                }\n                                ... on ExceedMaxNoteCountError {\n                                    __typename\n                                    message\n                                }\n                                ... on ExceedMaxWordCountError {\n                                    __typename\n                                    message\n                                    maxCount\n                                }\n                            }\n                        }\n                        \n                    }\n                }\n                ... on AdminSiteMutation {\n                    __typename\n                    member(id: $userId) {\n                        ... on UserNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            createNote(details: $details) {\n                                ... on ProfileNote {\n                                    __typename\n                                    id\n                                    note\n                                    access\n                                }\n                                ... on ExceedMaxNoteCountError {\n                                    __typename\n                                    message\n                                }\n                                ... on ExceedMaxWordCountError {\n                                    __typename\n                                    message\n                                    maxCount\n                                }\n                            }\n                        }\n                    }\n                }\n                ... on AdminDepartmentMutation {\n                    __typename\n                    member(id: $userId) {\n                        ... on UserNotFoundError{\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            createNote(details: $details) {\n                                ... on ProfileNote {\n                                    __typename\n                                    id\n                                    note\n                                    access\n                                    createdAt\n                                    updatedAt\n                                }\n                                ... on ExceedMaxNoteCountError {\n                                    __typename\n                                    message\n                                }\n                                ... on ExceedMaxWordCountError {\n                                    __typename\n                                    message\n                                    maxCount\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": {{userId}},\n\t\"details\": {\n\t\t\"note\": \"test note\",\n\t\t\"access\": \"public\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"create-profile-note-admin\">Create Profile Note (Admin)</h2>\n<p>GraphQL mutation for admins to create a new profile note for a given user</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>userId</code> (String): The ID of the user to be updated</p>\n</li>\n<li><p><code>details</code> (Object):</p>\n<ul>\n<li><p><code>note</code> (String)</p>\n</li>\n<li><p><code>access</code>(String): The visiability of the note, where public is viewable by anyone in the organization, and private is only visiable to admins and the user themselves (e.g. \"public\", \"private\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the newly created note</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n<li><p><code>ExceedMaxNoteCountError</code>: A user can have maximum number of 25 notes</p>\n</li>\n<li><p><code>ExceedMaxWordCountError</code>: A note cannot be more than 1000 characters long</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"ce239175-1b92-402a-bdcf-0a0de8ecf900","name":"UserNotAdminForScope","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($organizationId: Int!, $userId: ID!, $details: CreateHiddenNoteDetails!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organization(id: $organizationId) {\n                user(id: $userId) {\n                    createNote(details: $details) {\n                        ... on ProfileNote {\n                            __typename\n                            id\n                            note\n                            access\n                        }\n                        ... on ExceedMaxNoteCountError {\n                            __typename\n                            message\n                        }\n                        ... on ExceedMaxWordCountError {\n                            __typename\n                            message\n                            maxCount\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationId\": 1,\n    \"userId\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n\t\"details\": {\n\t\t\"note\": \"test note test note test note test note test note test note test note test note\",\n\t\t\"access\": \"public\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"139"},{"key":"Date","value":"Wed, 15 Mar 2023 20:25:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"UserNotAdminForScope\",\n            \"message\": \"User is not admin for scope\"\n        }\n    }\n}"},{"id":"f2bd0f2f-f087-4680-abee-76de213a1550","name":"OrgUnit Admin Create Profile Note - Organization","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $details: CreateHiddenNoteDetails!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                 ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    user(id: $userId) {\n                        createNote(details: $details) {\n                            ... on ProfileNote {\n                                __typename\n                                id\n                                note\n                                access\n                            }\n                            ... on ExceedMaxNoteCountError {\n                                __typename\n                                message\n                            }\n                            ... on ExceedMaxWordCountError {\n                                __typename\n                                message\n                                maxCount\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n\t\"details\": {\n\t\t\"note\": \"test note test note test note test note test note test note test note test note\",\n\t\t\"access\": \"public\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"461"},{"key":"Date","value":"Mon, 27 Mar 2023 22:32:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"member\": {\n                    \"createNote\": {\n                        \"__typename\": \"ProfileNote\",\n                        \"id\": \"64221966b3aefe6d591ab989\",\n                        \"note\": \"test note test note test note test note test note test note test note test note\",\n                        \"access\": \"public\"\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"56365ac7-6123-4bce-a013-8d1f10edffd5","name":"ExceedMaxWordCountError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $details: CreateHiddenNoteDetails!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                 ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    user(id: $userId) {\n                        createNote(details: $details) {\n                            ... on ProfileNote {\n                                __typename\n                                id\n                                note\n                                access\n                            }\n                            ... on ExceedMaxNoteCountError {\n                                __typename\n                                message\n                            }\n                            ... on ExceedMaxWordCountError {\n                                __typename\n                                message\n                                maxCount\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n\t\"details\": {\n\t\t\"note\": \"test note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test notetest note test note test note test note test note test note test note test note\",\n\t\t\"access\": \"public\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"405"},{"key":"Date","value":"Mon, 27 Mar 2023 22:38:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"user\": {\n                    \"createNote\": {\n                        \"__typename\": \"ExceedMaxWordCountError\",\n                        \"message\": \"Input note length of 2054 exceeds allowed max word count\",\n                        \"maxCount\": 1000\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"9450b36d-0efe-4d9c-bfbc-3d9ec2795485"},{"name":"Update Profile Note","id":"dc658094-3219-49e9-a836-188e466b55ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateProfileNote($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $details: UpdateHiddenNoteDetails!, $noteId: ID!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                 ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    member(id: $userId) {\n                        ... on UserNotFoundError{\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            note(id: $noteId) {\n                                __typename\n                                ... on AccessForbiddenError {\n                                    __typename\n                                    message\n                                }\n                                ... on NoteNotFoundError {\n                                    __typename\n                                    message\n                                }\n                                ... on NoteDeletedError {\n                                    __typename\n                                    message\n                                }\n                                ... on ProfileNoteMutation {\n                                    update(details: $details) {\n                                        ... on ProfileNote {\n                                            __typename\n                                            id\n                                            note\n                                            access\n                                            editedBy  {\n                                                __typename\n                                                ...OrganizationUserResultFields\n                                            }\n                                            createdBy {\n                                                __typename\n                                                ...OrganizationUserResultFields\n                                            }\n                                        }\n                                        ... on ExceedMaxWordCountError {\n                                            __typename\n                                            message\n                                            maxCount\n                                        }\n                                    }\n                                }\n                            }\n                        }\n                    }\n                }\n                ... on AdminSiteMutation {\n                    __typename\n                    member(id: $userId) {\n                        ... on UserNotFoundError{\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            note(id: $noteId) {\n                                __typename\n                                ... on AccessForbiddenError {\n                                    __typename\n                                    message\n                                }\n                                ... on NoteNotFoundError {\n                                    __typename\n                                    message\n                                }\n                                ... on NoteDeletedError {\n                                    __typename\n                                    message\n                                }\n                                ... on ProfileNoteMutation {\n                                    update(details: $details) {\n                                        ... on ProfileNote {\n                                            __typename\n                                            id\n                                            note\n                                            access\n                                            editedBy  {\n                                                __typename\n                                                ...OrganizationUserResultFields\n                                            }\n                                            createdBy {\n                                                __typename\n                                                ...OrganizationUserResultFields\n                                            }\n                                        }\n                                        ... on ExceedMaxWordCountError {\n                                            __typename\n                                            message\n                                            maxCount\n                                        }\n                                    }\n                                }\n                            }\n                        }\n                    }\n                }\n                ... on AdminDepartmentMutation {\n                    __typename\n                    member(id: $userId) {\n                        ... on UserNotFoundError{\n                            __typename\n                            message\n                        }\n                        ... on FullOrganizationMemberMutation {\n                            note(id: $noteId) {\n                                __typename\n                                ... on AccessForbiddenError {\n                                    __typename\n                                    message\n                                }\n                                ... on NoteNotFoundError {\n                                    __typename\n                                    message\n                                }\n                                ... on NoteDeletedError {\n                                    __typename\n                                    message\n                                }\n                                ... on ProfileNoteMutation {\n                                    update(details: $details) {\n                                        ... on ProfileNote {\n                                            __typename\n                                            id\n                                            note\n                                            access\n                                            editedBy  {\n                                                __typename\n                                                ...OrganizationUserResultFields\n                                            }\n                                            createdBy {\n                                                __typename\n                                                ...OrganizationUserResultFields\n                                            }\n                                        }\n                                        ... on ExceedMaxWordCountError {\n                                            __typename\n                                            message\n                                            maxCount\n                                        }\n                                    }\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment OrganizationUserResultFields on OrganizationUserResult {\n  __typename\n  ... on Node {\n    id\n  }\n  ... on OrganizationMember {\n    ...NamePartsUserFields\n    role\n  }\n  ... on PublicUser {\n    ...NamePartsUserFields\n  }\n}\n\nfragment NamePartsUserFields on GeneralUser {\n  username\n  firstName\n  lastName\n}\n","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": {{userId}},\n\t\"details\": {\n\t\t\"note\": \"update note test\",\n\t\t\"access\": \"public\"\n\t},\n    \"noteId\": {{noteId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"update-profile-note-admin\">Update Profile Note (Admin)</h2>\n<p>GraphQL mutation for admins to update an existing profile note for a given user</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>userId</code> (String): The ID of the user to be updated</p>\n</li>\n<li><p><code>noteId</code> (String): The ID of the note to be updated</p>\n</li>\n<li><p><code>details</code> (Object):</p>\n<ul>\n<li><p><code>note</code> (String)</p>\n</li>\n<li><p><code>access</code>(String): The visiability of the note, where public is viewable by anyone in the organization, and private is only visiable to admins and the user themselves (e.g. \"public\", \"private\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the updated note</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n<li><p><code>AccessForbiddenError</code>: You do not have access to update this note</p>\n</li>\n<li><p><code>NoteNotFoundError</code>: The note being udpated does not exist</p>\n</li>\n<li><p><code>NoteDeletedError</code>: Cannot update archived notes</p>\n</li>\n<li><p><code>ExceedMaxNoteCountError</code>: A user can have maximum number of 25 notes</p>\n</li>\n<li><p><code>ExceedMaxWordCountError</code>: A note cannot be more than 1000 characters long</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"f46af3f8-d300-4e70-a9e0-a07346fe722e","name":"UserNotAdminForScope","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($organizationId: Int!, $userId: ID!, $details: CreateHiddenNoteDetails!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organization(id: $organizationId) {\n                user(id: $userId) {\n                    createNote(details: $details) {\n                        ... on ProfileNote {\n                            __typename\n                            id\n                            note\n                            access\n                        }\n                        ... on ExceedMaxNoteCountError {\n                            __typename\n                            message\n                        }\n                        ... on ExceedMaxWordCountError {\n                            __typename\n                            message\n                            maxCount\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationId\": 1,\n    \"userId\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n\t\"details\": {\n\t\t\"note\": \"test note test note test note test note test note test note test note test note\",\n\t\t\"access\": \"public\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"139"},{"key":"Date","value":"Wed, 15 Mar 2023 20:25:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"UserNotAdminForScope\",\n            \"message\": \"User is not admin for scope\"\n        }\n    }\n}"},{"id":"db85bdac-3076-45d9-846f-e34a90265f77","name":"OrgUnit Admin Update Profile Note","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $details: UpdateHiddenNoteDetails!, $noteId: ID!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                 ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    user(id: $userId) {\n                        note(id: $noteId) {\n                        __typename\n                        ... on AccessForbiddenError {\n                            __typename\n                            message\n                        }\n                        ... on NoteNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on NoteDeletedError {\n                            __typename\n                            message\n                        }\n                        ... on ProfileNoteMutation {\n                            update(details: $details) {\n                                ... on ProfileNote {\n                                    __typename\n                                    id\n                                    note\n                                    access\n                                }\n                                ... on ExceedMaxWordCountError {\n                                    __typename\n                                    message\n                                    maxCount\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n\t\"details\": {\n\t\t\"note\": \"update note test\",\n\t\t\"access\": \"public\"\n\t},\n    \"noteId\": \"64221a33b3aefe6d591ab991\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"487"},{"key":"Date","value":"Mon, 27 Mar 2023 22:37:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"member\": {\n                    \"note\": {\n                        \"__typename\": \"ProfileNoteMutation\",\n                        \"update\": {\n                            \"__typename\": \"ProfileNote\",\n                            \"id\": \"64221a33b3aefe6d591ab991\",\n                            \"note\": \"update note test\",\n                            \"access\": \"public\"\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"5666f9af-b4cb-424d-9475-d92f07009a0e","name":"ExceedMaxWordCountError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $details: UpdateHiddenNoteDetails!, $noteId: ID!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                 ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    user(id: $userId) {\n                        note(id: $noteId) {\n                        __typename\n                        ... on AccessForbiddenError {\n                            __typename\n                            message\n                        }\n                        ... on NoteNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on NoteDeletedError {\n                            __typename\n                            message\n                        }\n                        ... on ProfileNoteMutation {\n                            update(details: $details) {\n                                ... on ProfileNote {\n                                    __typename\n                                    id\n                                    note\n                                    access\n                                }\n                                ... on ExceedMaxWordCountError {\n                                    __typename\n                                    message\n                                    maxCount\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n\t\"details\": {\n\t\t\"note\": \"update note testExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountErrorExceedMaxWordCountError\",\n\t\t\"access\": \"public\"\n\t},\n    \"noteId\": \"64221a33b3aefe6d591ab991\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"492"},{"key":"Date","value":"Mon, 27 Mar 2023 22:38:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"user\": {\n                    \"note\": {\n                        \"__typename\": \"ProfileNoteMutation\",\n                        \"update\": {\n                            \"__typename\": \"ExceedMaxWordCountError\",\n                            \"message\": \"Input note length of 1304 exceeds allowed max word count\",\n                            \"maxCount\": 1000\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"8f68e477-6ef8-400a-9a0f-053cf6a6d8d5","name":"NoteDeletedError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $details: UpdateHiddenNoteDetails!, $noteId: ID!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                 ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    user(id: $userId) {\n                        note(id: $noteId) {\n                        __typename\n                        ... on AccessForbiddenError {\n                            __typename\n                            message\n                        }\n                        ... on NoteNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on NoteDeletedError {\n                            __typename\n                            message\n                        }\n                        ... on ProfileNoteMutation {\n                            update(details: $details) {\n                                ... on ProfileNote {\n                                    __typename\n                                    id\n                                    note\n                                    access\n                                }\n                                ... on ExceedMaxWordCountError {\n                                    __typename\n                                    message\n                                    maxCount\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n\t\"details\": {\n\t\t\"note\": \"update note test\",\n\t\t\"access\": \"public\"\n\t},\n    \"noteId\": \"64221a33b3aefe6d591ab991\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"345"},{"key":"Date","value":"Mon, 27 Mar 2023 22:41:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"user\": {\n                    \"note\": {\n                        \"__typename\": \"NoteDeletedError\",\n                        \"message\": \"The note you're looking for is archived\"\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"6bfe0573-ee88-4458-aa6b-ce4bfdf9bb70","name":"NoteNotFoundError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $details: UpdateHiddenNoteDetails!, $noteId: ID!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                 ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    user(id: $userId) {\n                        note(id: $noteId) {\n                        __typename\n                        ... on AccessForbiddenError {\n                            __typename\n                            message\n                        }\n                        ... on NoteNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on NoteDeletedError {\n                            __typename\n                            message\n                        }\n                        ... on ProfileNoteMutation {\n                            update(details: $details) {\n                                ... on ProfileNote {\n                                    __typename\n                                    id\n                                    note\n                                    access\n                                }\n                                ... on ExceedMaxWordCountError {\n                                    __typename\n                                    message\n                                    maxCount\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n\t\"details\": {\n\t\t\"note\": \"update note test\",\n\t\t\"access\": \"public\"\n\t},\n    \"noteId\": \"64221a33b3aefe6d591ab990\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"349"},{"key":"Date","value":"Mon, 27 Mar 2023 22:42:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"user\": {\n                    \"note\": {\n                        \"__typename\": \"NoteNotFoundError\",\n                        \"message\": \"The note you're looking for does not exist\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"dc658094-3219-49e9-a836-188e466b55ea"},{"name":"Delete Profile Note","id":"fb868822-7103-4ed0-b60f-b4b77f3ef82d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation DeleteProfileNote(\n  $organizationalUnit: OrganizationalUnitInput!\n  $userId: ID!\n  $noteId: ID!\n) {\n  adminMutation {\n    __typename\n    ... on UserNotAdminForScope {\n      __typename\n      message\n    }\n    ... on AdminMutation {\n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        ... on OrganizationalUnitNotFoundError {\n          __typename\n          message\n        }\n        ... on AdminOrganizationMutation {\n          __typename\n          member(id: $userId) {\n            ... on UserNotFoundError{\n                            __typename\n                            message\n                        }\n            ... on FullOrganizationMemberMutation {\n                note(id: $noteId) {\n                __typename\n                ... on AccessForbiddenError {\n                    __typename\n                    message\n                }\n                ... on NoteNotFoundError {\n                    __typename\n                    message\n                }\n                ... on NoteDeletedError {\n                    __typename\n                    message\n                }\n                ... on ProfileNoteMutation {\n                    deleteNote {\n                    ... on ProfileNote {\n                        __typename\n                        id\n                    }\n                    }\n                }\n                }\n            }\n          }\n        }\n        ... on AdminSiteMutation {\n          __typename\n          member(id: $userId) {\n            ... on UserNotFoundError{\n                            __typename\n                            message\n                        }\n            ... on FullOrganizationMemberMutation {\n                note(id: $noteId) {\n                __typename\n                ... on AccessForbiddenError {\n                    __typename\n                    message\n                }\n                ... on NoteNotFoundError {\n                    __typename\n                    message\n                }\n                ... on NoteDeletedError {\n                    __typename\n                    message\n                }\n                ... on ProfileNoteMutation {\n                    deleteNote {\n                    ... on ProfileNote {\n                        __typename\n                        id\n                    }\n                    }\n                }\n                }\n            }\n          }\n        }\n        ... on AdminDepartmentMutation {\n          __typename\n          member(id: $userId) {\n            ... on UserNotFoundError{\n                            __typename\n                            message\n                        }\n            ... on FullOrganizationMemberMutation {\n                note(id: $noteId) {\n                __typename\n                ... on AccessForbiddenError {\n                    __typename\n                    message\n                }\n                ... on NoteNotFoundError {\n                    __typename\n                    message\n                }\n                ... on NoteDeletedError {\n                    __typename\n                    message\n                }\n                ... on ProfileNoteMutation {\n                    deleteNote {\n                    ... on ProfileNote {\n                        __typename\n                        id\n                    }\n                    }\n                }\n                }\n            }\n          }\n        }\n      }\n    }\n  }\n}\n","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": {{departmentId}},\n\t\t\"type\": \"department\"\n\t},\n    \"userId\": {{userId}},\n    \"noteId\": {{noteId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"delete-profile-note-admin\">Delete Profile Note (Admin)</h2>\n<p>GraphQL mutation for admins to delete an existing profile note for a given user</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>userId</code> (String): The ID of the user to be updated</p>\n</li>\n<li><p><code>noteId</code> (String): The ID of the note to be deleted</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object with the ID of the deleted note</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n<li><p><code>AccessForbiddenError</code>: You do not have access to update this note</p>\n</li>\n<li><p><code>NoteNotFoundError</code>: The note being udpated does not exist</p>\n</li>\n<li><p><code>NoteDeletedError</code>: Cannot update archived notes</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"e1ae0b9d-bc6d-422c-a754-cd75fc304e71","name":"org admin delete note","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $noteId: ID!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                 ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    user(id: $userId) {\n                        note(id: $noteId) {\n                        __typename\n                        ... on AccessForbiddenError {\n                            __typename\n                            message\n                        }\n                        ... on NoteNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on NoteDeletedError {\n                            __typename\n                            message\n                        }\n                        ... on ProfileNoteMutation {\n                            deleteNote {\n                                ... on ProfileNote {\n                                    __typename\n                                    id\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n    \"noteId\": \"64221a33b3aefe6d591ab991\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"415"},{"key":"Date","value":"Mon, 27 Mar 2023 22:40:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"member\": {\n                    \"note\": {\n                        \"__typename\": \"ProfileNoteMutation\",\n                        \"deleteNote\": {\n                            \"__typename\": \"ProfileNote\",\n                            \"id\": \"64221a33b3aefe6d591ab991\"\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"b2c68bb3-7bf9-457d-b0f5-361cbbe4d45a","name":"site admin delete note","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation DeleteProfileNote(\n  $organizationalUnit: OrganizationalUnitInput!\n  $userId: ID!\n  $noteId: ID!\n) {\n  adminMutation {\n    __typename\n    ... on UserNotAdminForScope {\n      __typename\n      message\n    }\n    ... on AdminMutation {\n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        ... on OrganizationalUnitNotFoundError {\n          __typename\n          message\n        }\n        ... on AdminOrganizationMutation {\n          __typename\n          user(id: $userId) {\n            note(id: $noteId) {\n              __typename\n              ... on AccessForbiddenError {\n                __typename\n                message\n              }\n              ... on NoteNotFoundError {\n                __typename\n                message\n              }\n              ... on NoteDeletedError {\n                __typename\n                message\n              }\n              ... on ProfileNoteMutation {\n                deleteNote {\n                  ... on ProfileNote {\n                    __typename\n                    id\n                  }\n                }\n              }\n            }\n          }\n        }\n        ... on AdminSiteMutation {\n          __typename\n          user(id: $userId) {\n            note(id: $noteId) {\n              __typename\n              ... on AccessForbiddenError {\n                __typename\n                message\n              }\n              ... on NoteNotFoundError {\n                __typename\n                message\n              }\n              ... on NoteDeletedError {\n                __typename\n                message\n              }\n              ... on ProfileNoteMutation {\n                deleteNote {\n                  ... on ProfileNote {\n                    __typename\n                    id\n                  }\n                }\n              }\n            }\n          }\n        }\n        ... on AdminDepartmentMutation {\n          __typename\n          user(id: $userId) {\n            note(id: $noteId) {\n              __typename\n              ... on AccessForbiddenError {\n                __typename\n                message\n              }\n              ... on NoteNotFoundError {\n                __typename\n                message\n              }\n              ... on NoteDeletedError {\n                __typename\n                message\n              }\n              ... on ProfileNoteMutation {\n                deleteNote {\n                  ... on ProfileNote {\n                    __typename\n                    id\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n}\n","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"site\"\n\t},\n    \"userId\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n    \"noteId\": \"642adee7ca2a8dfd60f2b02f\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"407"},{"key":"Date","value":"Mon, 03 Apr 2023 14:16:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminSiteMutation\",\n                \"member\": {\n                    \"note\": {\n                        \"__typename\": \"ProfileNoteMutation\",\n                        \"deleteNote\": {\n                            \"__typename\": \"ProfileNote\",\n                            \"id\": \"642adee7ca2a8dfd60f2b02f\"\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"eb49bad1-5e57-4aa0-be55-ab770396f868","name":"NoteDeletedError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $noteId: ID!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                 ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    user(id: $userId) {\n                        note(id: $noteId) {\n                        __typename\n                        ... on AccessForbiddenError {\n                            __typename\n                            message\n                        }\n                        ... on NoteNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on NoteDeletedError {\n                            __typename\n                            message\n                        }\n                        ... on ProfileNoteMutation {\n                            deleteNote {\n                                ... on ProfileNote {\n                                    __typename\n                                    id\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n    \"noteId\": \"64221a33b3aefe6d591ab991\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"345"},{"key":"Date","value":"Mon, 27 Mar 2023 22:41:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"user\": {\n                    \"note\": {\n                        \"__typename\": \"NoteDeletedError\",\n                        \"message\": \"The note you're looking for is archived\"\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"e908bf73-e270-455e-a32f-9666069e7f60","name":"UserNotAdminForScope","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($organizationId: Int!, $userId: ID!, $details: CreateHiddenNoteDetails!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organization(id: $organizationId) {\n                user(id: $userId) {\n                    createNote(details: $details) {\n                        ... on ProfileNote {\n                            __typename\n                            id\n                            note\n                            access\n                        }\n                        ... on ExceedMaxNoteCountError {\n                            __typename\n                            message\n                        }\n                        ... on ExceedMaxWordCountError {\n                            __typename\n                            message\n                            maxCount\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationId\": 1,\n    \"userId\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n\t\"details\": {\n\t\t\"note\": \"test note test note test note test note test note test note test note test note\",\n\t\t\"access\": \"public\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"139"},{"key":"Date","value":"Wed, 15 Mar 2023 20:25:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"UserNotAdminForScope\",\n            \"message\": \"User is not admin for scope\"\n        }\n    }\n}"},{"id":"4f7ade14-ecb5-41e9-9282-a59ebf6e4a2b","name":"NoteNotFoundError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $noteId: ID!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                 ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    user(id: $userId) {\n                        note(id: $noteId) {\n                        __typename\n                        ... on AccessForbiddenError {\n                            __typename\n                            message\n                        }\n                        ... on NoteNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on NoteDeletedError {\n                            __typename\n                            message\n                        }\n                        ... on ProfileNoteMutation {\n                            deleteNote {\n                                ... on ProfileNote {\n                                    __typename\n                                    id\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n    \"noteId\": \"64221a33b3aefe6d591ab990\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"349"},{"key":"Date","value":"Mon, 27 Mar 2023 22:41:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"user\": {\n                    \"note\": {\n                        \"__typename\": \"NoteNotFoundError\",\n                        \"message\": \"The note you're looking for does not exist\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"fb868822-7103-4ed0-b60f-b4b77f3ef82d"},{"name":"Fetch Profile Notes by Id","id":"3f10b270-d493-4481-9e48-9ba408fbe023","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query OrganizationalUnitQuery($organizationalUnit: OrganizationalUnitInput!, $id: ID!, $noteId: ID!) {\n    adminQuery {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminQuery { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationQuery {\n                    __typename\n                    member(id: $id) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ... on Node {\n                            id\n                        }\n                        ... on FullOrganizationMember {\n                            note(id: $noteId) {\n                                ... on Error {\n                                    __typename\n                                    message\n                                }\n                                ... on ProfileNote {\n                                    __typename\n                                    ...ProfileNoteFields\n                                }\n                            }\n                        }\n                    }\n                }\n                ... on AdminSiteQuery {\n                    __typename\n                    member(id: $id) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ... on Node {\n                            id\n                        }\n                        ... on FullOrganizationMember {\n                            note(id: $noteId) {\n                            ... on Error {\n                                    __typename\n                                    message\n                                }\n                                ... on ProfileNote {\n                                    __typename\n                                    ...ProfileNoteFields\n                                }\n                            }\n                        }\n                    }\n                }\n                ... on AdminDepartmentQuery {\n                    __typename\n                    member(id: $id) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ... on Node {\n                            id\n                        }\n                        ... on FullOrganizationMember {\n                            note(id: $noteId) {\n                                ... on Error {\n                                    __typename\n                                    message\n                                }\n                                ... on ProfileNote {\n                                    __typename\n                                    ...ProfileNoteFields\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\n\nfragment ProfileNoteFields on ProfileNote {\n  id\n  note\n  createdBy {\n    __typename\n    ...OrganizationUserResultFields\n  }\n  editedBy {\n    __typename\n    ...OrganizationUserResultFields\n  }\n  access\n  createdAt\n  updatedAt\n}\n\nfragment OrganizationUserResultFields on OrganizationUserResult {\n  __typename\n  ... on Node {\n    id\n  }\n  ... on OrganizationMember {\n    ...NamePartsUserFields\n    role\n  }\n  ... on PublicUser {\n    ...NamePartsUserFields\n  }\n}\n\nfragment NamePartsUserFields on GeneralUser {\n  username\n  firstName\n  lastName\n}\n","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"id\": \"{{userId}}\",\n    \"noteId\": \"{{noteId}}\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"fetch-profile-note-admin\">Fetch Profile Note (Admin)</h2>\n<p>GraphQL query for admins to fetch a specific profile note by ID for a given user</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>id</code> (String): The ID of the user</p>\n</li>\n<li><p><code>noteId</code> (String): The ID of the note</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object with the ID of the deleted note</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n<li><p><code>NoteNotFoundError</code>: The note being udpated does not exist</p>\n</li>\n<li><p><code>NoteDeletedError</code>: Cannot update archived notes</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"bedf4801-929b-42be-891c-9cc8f00fe0b8","name":"NoteNotFoundError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query OrganizationalUnitQuery($organizationalUnit: OrganizationalUnitInput!, $id: ID!, $noteId: ID!) {\n    adminQuery {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminQuery { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationQuery {\n                    __typename\n                    member(id: $id) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ... on Node {\n                            id\n                        }\n                        ... on FullOrganizationMember {\n                            note(id: $noteId) {\n                            __typename\n                            ...ProfileNoteFields\n                            }\n                        }\n                    }\n                }\n                ... on AdminSiteQuery {\n                    __typename\n                }\n                ... on AdminDepartmentQuery {\n                    __typename\n                }\n            }\n        }\n    }\n}\n\n\nfragment ProfileNoteFields on ProfileNote {\n  id\n  note\n  createdBy {\n    __typename\n    ...FullOrganizationUserResultFields\n  }\n  editedBy {\n    __typename\n    ...FullOrganizationUserResultFields\n  }\n  access\n  createdAt\n  updatedAt\n}\n\nfragment FullOrganizationUserResultFields on FullOrganizationUserResult {\n  __typename\n  ... on Node {\n    id\n  }\n  ... on FullOrganizationMember {\n    ...NamePartsUserFields\n    role\n  }\n  ... on PublicUser {\n    ...NamePartsUserFields\n  }\n}\n\nfragment NamePartsUserFields on GeneralUser {\n  username\n  firstName\n  lastName\n}\n","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"id\": \"c9c57a2a-9e04-4060-bc17-c3131c87ba9b\",\n    \"noteId\": \"63bdd8ce1d7c2c3a32a37216\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"379"},{"key":"Date","value":"Mon, 27 Mar 2023 22:48:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminQuery\": {\n            \"__typename\": \"AdminQuery\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationQuery\",\n                \"member\": {\n                    \"__typename\": \"FullOrganizationMember\",\n                    \"id\": \"c9c57a2a-9e04-4060-bc17-c3131c87ba9b\",\n                    \"note\": {\n                        \"__typename\": \"NoteNotFoundError\"\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"bfc05f2d-69ea-40eb-9334-7f492e567558","name":"Admin Fetch Profile Notes by Id","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query OrganizationalUnitQuery($organizationalUnit: OrganizationalUnitInput!, $id: ID!, $noteId: ID!) {\n    adminQuery {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminQuery { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationQuery {\n                    __typename\n                    member(id: $id) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ... on Node {\n                            id\n                        }\n                        ... on FullOrganizationMember {\n                            note(id: $noteId) {\n                            __typename\n                            ...ProfileNoteFields\n                            }\n                        }\n                    }\n                }\n                ... on AdminSiteQuery {\n                    __typename\n                }\n                ... on AdminDepartmentQuery {\n                    __typename\n                }\n            }\n        }\n    }\n}\n\n\nfragment ProfileNoteFields on ProfileNote {\n  id\n  note\n  createdBy {\n    __typename\n    ...FullOrganizationUserResultFields\n  }\n  editedBy {\n    __typename\n    ...FullOrganizationUserResultFields\n  }\n  access\n  createdAt\n  updatedAt\n}\n\nfragment FullOrganizationUserResultFields on FullOrganizationUserResult {\n  __typename\n  ... on Node {\n    id\n  }\n  ... on FullOrganizationMember {\n    ...NamePartsUserFields\n    role\n  }\n  ... on PublicUser {\n    ...NamePartsUserFields\n  }\n}\n\nfragment NamePartsUserFields on GeneralUser {\n  username\n  firstName\n  lastName\n}\n","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n    \"noteId\": \"64221d50b3aefe6d591ab9bc\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"781"},{"key":"Date","value":"Mon, 27 Mar 2023 22:49:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminQuery\": {\n            \"__typename\": \"AdminQuery\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationQuery\",\n                \"member\": {\n                    \"__typename\": \"FullOrganizationMember\",\n                    \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                    \"note\": {\n                        \"__typename\": \"ProfileNote\",\n                        \"id\": \"64221d50b3aefe6d591ab9bc\",\n                        \"note\": \"test note test note test note test note test note test note test note test note\",\n                        \"createdBy\": {\n                            \"__typename\": \"OrganizationMember\"\n                        },\n                        \"editedBy\": null,\n                        \"access\": \"public\",\n                        \"createdAt\": \"2023-03-27T22:48:48.462Z\",\n                        \"updatedAt\": \"2023-03-27T22:48:48.462Z\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"3f10b270-d493-4481-9e48-9ba408fbe023"},{"name":"Fetch All Profile Notes for Member","id":"4a17c77a-aa7a-4b89-a2ac-7e80c674c1d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query OrganizationalUnitQuery($organizationalUnit: OrganizationalUnitInput!, $id: ID!) {\n    adminQuery {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminQuery { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationQuery {\n                    __typename\n                    member(id: $id) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ... on Node {\n                            id\n                        }\n                        ... on FullOrganizationMember {\n                            notes {\n                            __typename\n                            ...ProfileNoteFields\n                            }\n                        }\n                    }\n                }\n                ... on AdminSiteQuery {\n                    __typename\n                    member(id: $id) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ... on Node {\n                            id\n                        }\n                        ... on FullOrganizationMember {\n                            notes {\n                            __typename\n                            ...ProfileNoteFields\n                            }\n                        }\n                    }\n                }\n                ... on AdminDepartmentQuery {\n                    __typename\n                    member(id: $id) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ... on Node {\n                            id\n                        }\n                        ... on FullOrganizationMember {\n                            notes {\n                            __typename\n                            ...ProfileNoteFields\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\n\nfragment ProfileNoteFields on ProfileNote {\n  id\n  note\n  createdBy {\n    __typename\n    ...OrganizationUserResultFields\n  }\n  editedBy {\n    __typename\n    ...OrganizationUserResultFields\n  }\n  access\n  createdAt\n  updatedAt\n}\n\nfragment OrganizationUserResultFields on OrganizationUserResult {\n  __typename\n  ... on Node {\n    id\n  }\n  ... on OrganizationMember {\n    ...NamePartsUserFields\n    role\n  }\n  ... on PublicUser {\n    ...NamePartsUserFields\n  }\n}\n\nfragment NamePartsUserFields on GeneralUser {\n  username\n  firstName\n  lastName\n}\n","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"id\": {{userId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"fetch-all-profile-note-for-user-admin\">Fetch All Profile Note for User (Admin)</h2>\n<p>GraphQL query for admins to fetch all profile note for a given user. Admins have access to both public and private notes for users</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>id</code> (String): The ID of the user</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An array of note objects, or an empty array if no notes exists</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"ac08a69c-39bc-430d-a8d6-0d6704f77b56","name":"Admin Fetch Profile Notes for Member Copy","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query OrganizationalUnitQuery($organizationalUnit: OrganizationalUnitInput!, $id: ID!) {\n    adminQuery {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminQuery { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationQuery {\n                    __typename\n                    member(id: $id) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ... on Node {\n                            id\n                        }\n                        ... on FullOrganizationMember {\n                            notes {\n                            __typename\n                            ...ProfileNoteFields\n                            }\n                        }\n                    }\n                }\n                ... on AdminSiteQuery {\n                    __typename\n                }\n                ... on AdminDepartmentQuery {\n                    __typename\n                }\n            }\n        }\n    }\n}\n\n\nfragment ProfileNoteFields on ProfileNote {\n  id\n  note\n  createdBy {\n    __typename\n    ...FullOrganizationUserResultFields\n  }\n  editedBy {\n    __typename\n    ...FullOrganizationUserResultFields\n  }\n  access\n  createdAt\n  updatedAt\n}\n\nfragment FullOrganizationUserResultFields on FullOrganizationUserResult {\n  __typename\n  ... on Node {\n    id\n  }\n  ... on FullOrganizationMember {\n    ...NamePartsUserFields\n    role\n  }\n  ... on PublicUser {\n    ...NamePartsUserFields\n  }\n}\n\nfragment NamePartsUserFields on GeneralUser {\n  username\n  firstName\n  lastName\n}\n","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1327"},{"key":"Date","value":"Mon, 27 Mar 2023 22:51:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminQuery\": {\n            \"__typename\": \"AdminQuery\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationQuery\",\n                \"member\": {\n                    \"__typename\": \"FullOrganizationMember\",\n                    \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                    \"notes\": [\n                        {\n                            \"__typename\": \"ProfileNote\",\n                            \"id\": \"64221966b3aefe6d591ab989\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"createdBy\": {\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null,\n                            \"access\": \"public\",\n                            \"createdAt\": \"2023-03-27T22:32:06.950Z\",\n                            \"updatedAt\": \"2023-03-27T22:32:06.950Z\"\n                        },\n                        {\n                            \"__typename\": \"ProfileNote\",\n                            \"id\": \"64221d50b3aefe6d591ab9bc\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"createdBy\": {\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null,\n                            \"access\": \"public\",\n                            \"createdAt\": \"2023-03-27T22:48:48.462Z\",\n                            \"updatedAt\": \"2023-03-27T22:48:48.462Z\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"4a17c77a-aa7a-4b89-a2ac-7e80c674c1d7"}],"id":"5e81ba85-4da3-44ff-a112-d03f7f3fb430","_postman_id":"5e81ba85-4da3-44ff-a112-d03f7f3fb430","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Device Management","item":[{"name":"Fetch User Devices","id":"cbe9ef4d-a49b-4bf3-8341-a2cd1568e5ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUser($userId: ID!) {\n    adminQuery {\n        ... on AdminQuery {\n            user(id: $userId) {\n                ... on Node { id }\n                ... on GeneralUser {\n                    firstName\n                    lastName\n                    username\n                }\n                ... on FullOrganizationMember {\n                    devices {\n                        id\n                        type\n                        pushToken\n                        pushService\n                        ... on BrowserDevice {\n                            browser\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"userId\": \"{{userId}}\"\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-user-devices\">Fetch User Devices</h2>\n<p>GraphQL query for admins to fetch a list of all devices a user is logged in to.</p>\n<p>Possible devices types: DeviceType { ios android web}</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"81621730-8eee-49df-8abe-95e52f8a5a9c","name":"Fetch User Devices","originalRequest":{"method":"GET","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUser($userId: ID!) {\n    adminQuery {\n        ... on AdminQuery {\n            user(id: $userId) {\n                ... on Node { id }\n                ... on GeneralUser {\n                    firstName\n                    lastName\n                    username\n                }\n                ... on FullOrganizationMember {\n                    devices {\n                        id\n                        type\n                        pushToken\n                        pushService\n                        ... on BrowserDevice {\n                            browser\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"userId\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\"\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 23 Apr 2024 13:39:05 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1977"},{"key":"Connection","value":"close"},{"key":"X-Request-ID","value":"b67b05f0-6c19-454c-9e61-70c6da78ec10"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminQuery\": {\n            \"user\": {\n                \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                \"firstName\": \"Test\",\n                \"lastName\": \"User\",\n                \"username\": \"user001\",\n                \"devices\": [\n                    {\n                        \"id\": \"42FA471C-2027-4F6A-A423-8C19C76A87E3\",\n                        \"type\": \"ios\",\n                        \"pushToken\": \"277cdk78cjhkewnm8986756ds980jksl134ba7034ff64f3a2e3406c059730e3\",\n                        \"pushService\": \"apns\"\n                    },\n                    {\n                        \"id\": \"15319B23-05A3-4CB9-AC81-785AEBFD6FA5\",\n                        \"type\": \"ios\",\n                        \"pushToken\": \"3715e16771dc0c3a850a120628a10a89sd89lktkj23nm2dd062e13\",\n                        \"pushService\": \"apns\"\n                    },\n                    {\n                        \"id\": \"8d9969f9-f807-478a-9453-58fbf824e9c3\",\n                        \"type\": \"android\",\n                        \"pushToken\": \"e84gJnkjdshKJkwOc2:APA91bFOhmnrKlzg9fmgPCphX0bkjoLneW5HYqcIveqtAOl8lRZ9hocAzySJcEDOBD6oqHNr4PrXj5IrBh1dYc6lPZIJQ5gXtDRb7876ds9kjhcFm7832mwDUh_4g2nMY-\",\n                        \"pushService\": \"fcm\"\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"cbe9ef4d-a49b-4bf3-8341-a2cd1568e5ba"},{"name":"Remote Logout All Devices","id":"b5bbfb23-981e-4913-ad25-dd65bc4ee4f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation Member($id: ID!, $organizationalUnit: OrganizationalUnitInput!) {\n  adminMutation {\n    ... on AdminMutation {\n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        ... on AdminOrganizationMutation {\n          member(id: $id) {\n            ... on FullOrganizationMemberMutation {\n                remoteLogoutAllDevices {\n                    id\n                }\n            }\n            ... on Error { __typename message }\n          }\n        }\n        ... on Error { __typename message }\n      }\n    }\n    ... on Error { __typename message }\n  }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"id\": {{userId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"remote-logout-all-devices\">Remote Logout All Devices</h2>\n<p>GraphQL mutation that allows admins to remotely log a user out of all their active devices.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b5bbfb23-981e-4913-ad25-dd65bc4ee4f4"}],"id":"a31f79e3-504a-48ef-a27f-3227238c9e3b","_postman_id":"a31f79e3-504a-48ef-a27f-3227238c9e3b","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Fetch Member & Address Info","id":"9d2f6f0a-1f8b-40ab-a7d2-fea6f6a0ca3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchMemberAndAddresses($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n    adminQuery {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminQuery { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationQuery {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ...FullOrganizationUserResultFragment\n                    }\n                }\n                ... on AdminSiteQuery {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ...FullOrganizationUserResultFragment\n                    }\n                }\n                ... on AdminDepartmentQuery {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ...FullOrganizationUserResultFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationUserResultFragment on FullOrganizationUserResult {\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n    ... on Node {\n        id\n    }\n    ... on FullOrganizationMember {\n        id\n        firstName\n        lastName\n        role\n        isDirectorySynced\n        isSSOEnabled\n        addresses {\n            id\n            address\n            ordinal\n            type\n            label\n            verified\n            access\n            syncStatus\n            createdAt\n            updatedAt\n        }\n    }\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    username\n    firstName\n    lastName\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"{{userId}}\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-member-info--addresses-admin\">Fetch Member Info &amp; Addresses (Admin)</h2>\n<p>GraphQL query for admins to fetche a user's address and profile information</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>userId</code> (String): The ID of the user</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the user with their addresses</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"45f4a43d-ed1e-4d95-9da1-135f4bbb9425","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchMemberAndAddresses($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n    adminQuery {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminQuery { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationQuery {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ...FullOrganizationUserResultFragment\n                    }\n                }\n                ... on AdminSiteQuery {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ...FullOrganizationUserResultFragment\n                    }\n                }\n                ... on AdminDepartmentQuery {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ... on UserNotFoundError {\n                            message\n                        }\n                        ...FullOrganizationUserResultFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationUserResultFragment on FullOrganizationUserResult {\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n    ... on Node {\n        id\n    }\n    ... on FullOrganizationMember {\n        id\n        firstName\n        lastName\n        role\n        isDirectorySynced\n        isSSOEnabled\n        addresses {\n            id\n            address\n            ordinal\n            type\n            label\n            verified\n            access\n            syncStatus\n            createdAt\n            updatedAt\n        }\n    }\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    username\n    firstName\n    lastName\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"f1d863e5-e52e-475e-8fad-ca6082879aeb\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 06 Dec 2024 15:30:17 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1018"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"1ca8e41c-aae0-49f9-bcb5-92ab8530ee05"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminQuery\": {\n            \"__typename\": \"AdminQuery\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationQuery\",\n                \"member\": {\n                    \"__typename\": \"FullOrganizationMember\",\n                    \"username\": \"\",\n                    \"firstName\": \"Lara\",\n                    \"lastName\": \"Buckley\",\n                    \"id\": \"f1d863e5-e52e-475e-8fad-ca6082879aeb\",\n                    \"role\": \"Tester\",\n                    \"isDirectorySynced\": false,\n                    \"isSSOEnabled\": false,\n                    \"addresses\": [\n                        {\n                            \"id\": \"bW9zdXNpZXl1K2FjY291bnRjcmVhdGlvbjEyMzExMjlAZ21haWwuY29t\",\n                            \"address\": \"test9873274@email.com\",\n                            \"ordinal\": \"primary\",\n                            \"type\": \"email\",\n                            \"label\": \"Work\",\n                            \"verified\": true,\n                            \"access\": \"private\",\n                            \"syncStatus\": false,\n                            \"createdAt\": \"2024-12-03T16:30:24.449Z\",\n                            \"updatedAt\": \"2024-12-03T16:30:24.449Z\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"9d2f6f0a-1f8b-40ab-a7d2-fea6f6a0ca3f"},{"name":"Fetch Scopes for User","id":"f3c13315-fe61-4b5d-8594-ce9d3f65f87a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... on Organization {\n        member(id: $userId) {\n            ...UserProfileResultFragment\n            __typename\n        }\n      }\n    }\n  }\n}\n\n\nfragment UserProfileResultFragment on UserProfileResult {\n    ... on UserNotFoundError {\n        __typename\n        message\n    }\n    ... on UserNotMemberOfOrganization {\n        __typename\n        message\n    }\n    \n    ... on FullOrganizationMember {\n        __typename\n        id\n        firstName\n        lastName\n        scopes {\n            organizationId\n            siteId\n            departmentId\n            status\n        }\n    }\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"{{userId}}\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-user-scopes-admin\">Fetch User Scopes (Admin)</h2>\n<p>GraphQL query for admins to fetch a user's scope and status within an organizational unit scope</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>userId</code> (String): The ID of the user</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the scopes and status of the user</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"999eb79d-ab9c-4d47-978b-4614484e4f07","name":"Fetch user scopes","originalRequest":{"method":"GET","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... on Organization {\n        member(id: $userId) {\n            ...UserProfileResultFragment\n            __typename\n        }\n      }\n    }\n  }\n}\n\n\nfragment UserProfileResultFragment on UserProfileResult {\n    ... on UserNotFoundError {\n        __typename\n        message\n    }\n    ... on UserNotMemberOfOrganization {\n        __typename\n        message\n    }\n    \n    ... on FullOrganizationMember {\n        __typename\n        id\n        firstName\n        lastName\n        scopes {\n            organizationId\n            siteId\n            departmentId\n            status\n        }\n    }\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"8b7594c5-829c-41b5-8d86-5a9b8348090c\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 10 Jun 2024 14:18:54 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1007"},{"key":"Connection","value":"close"},{"key":"X-Request-ID","value":"93083ae4-480f-40f6-82ae-779fea024d98"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"member\": {\n                    \"__typename\": \"FullOrganizationMember\",\n                    \"id\": \"8b7594c5-829c-41b5-8d86-5a9b8348090c\",\n                    \"firstName\": \"APC\",\n                    \"lastName\": \"FirstFlow\",\n                    \"scopes\": [\n                        {\n                            \"organizationId\": 1,\n                            \"siteId\": null,\n                            \"departmentId\": null,\n                            \"status\": \"regular\"\n                        },\n                        {\n                            \"organizationId\": 1,\n                            \"siteId\": 1,\n                            \"departmentId\": null,\n                            \"status\": \"admin\"\n                        },\n                        {\n                            \"organizationId\": 1,\n                            \"siteId\": 1,\n                            \"departmentId\": 17,\n                            \"status\": \"admin\"\n                        },\n                        {\n                            \"organizationId\": 1,\n                            \"siteId\": 3,\n                            \"departmentId\": null,\n                            \"status\": \"admin\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"f3c13315-fe61-4b5d-8594-ce9d3f65f87a"},{"name":"Fetch Shifts for User","id":"2f6ec7f0-9dcd-47bf-bc04-7c4480d22145","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserShifts($userId: ID!, $startDate: String!, $endDate: String, $limit: Int) {\n    admin {\n        user(id : $userId) {\n            shifts(startDate: $startDate, endDate: $endDate, limit: $limit) {\n                startDate\n                endDate\n                offset\n                shifts {\n                    ...ShiftFragment\n                }\n            }\n        }\n       \n    }\n}\n\nfragment ShiftFragment on Shift {\n    id\n    startDate\n    endDate\n    user {\n        id\n        username\n        firstname\n        lastname\n    }\n}","variables":"{\n    \"userId\": \"{{user_id}}\",\n    \"startDate\": \"2024-03-02T06:03:38.610Z\",\n    \"endDate\": \"2024-04-03T06:03:38.610Z\"\n}"}},"url":"https://{{api_hostname}}/graphql/private","description":"<h2 id=\"fetch-shifts-for-user-admin\">Fetch Shifts for User (Admin)</h2>\n<p>GraphQL query for admins to fetch a user's shifts within a given time frame</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>userId</code> (String): The ID of the user</p>\n</li>\n<li><p><code>startDate</code>: The starting datetime range of the shifts to be fetched</p>\n</li>\n<li><p><code>endDate</code>: The ending datetime range of the shifts to be fetched</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An array of objects representing the shifts of the user, or an empty array if no shifts exists within that time frame</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"80cd9fbb-887f-4cd5-b0e7-85b9931f7e78","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserShifts($userId: ID!, $startDate: String!, $endDate: String, $limit: Int) {\n    admin {\n        user(id : $userId) {\n            shifts(startDate: $startDate, endDate: $endDate, limit: $limit) {\n                startDate\n                endDate\n                offset\n                shifts {\n                    ...ShiftFragment\n                }\n            }\n        }\n       \n    }\n}\n\nfragment ShiftFragment on Shift {\n    id\n    startDate\n    endDate\n    user {\n        id\n        username\n        firstname\n        lastname\n    }\n}","variables":"{\n    \"userId\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n    \"startDate\": \"2024-03-02T06:03:38.610Z\",\n    \"endDate\": \"2024-04-03T06:03:38.610Z\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Mar 2024 04:07:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1010"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"9010d841-770c-488f-b1f6-2056e1cb2e9e"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"admin\": {\n            \"user\": {\n                \"shifts\": {\n                    \"startDate\": \"2024-03-02T06:03:38.610Z\",\n                    \"endDate\": \"2024-04-03T06:03:38.610Z\",\n                    \"offset\": 0,\n                    \"shifts\": [\n                        {\n                            \"id\": 22416,\n                            \"startDate\": \"2024-03-05T00:26:00.000Z\",\n                            \"endDate\": \"2024-03-06T00:26:00.000Z\",\n                            \"user\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstname\": \"Umar\",\n                                \"lastname\": \"Azhar\"\n                            }\n                        },\n                        {\n                            \"id\": 22417,\n                            \"startDate\": \"2024-03-06T00:26:00.000Z\",\n                            \"endDate\": \"2024-03-07T00:26:00.000Z\",\n                            \"user\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstname\": \"Umar\",\n                                \"lastname\": \"Azhar\"\n                            }\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"2f6ec7f0-9dcd-47bf-bc04-7c4480d22145"},{"name":"Create User Accounts","event":[{"listen":"prerequest","script":{"id":"fca07318-e426-4233-927f-dec84d75ab86","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"2f9e4a0a-104c-4398-a7b4-cae5d88e3bdb","exec":[""],"type":"text/javascript","packages":{}}}],"id":"7f60a357-abd5-422d-a28c-abbc09c1014d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                                ... on InvitePendingAdminApproval {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"addresses\": [\n                {\n                    \"address\": \"test@email.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"80ce87a9-1422-473d-83f2-bae4ea625542","name":"Account Blocked","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"umar+3@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+9@hypercare.com\",\n                    \"type\": \"email\"\n                },\n                {\n                    \"address\": \"6476784077\",\n                    \"type\": \"pager\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"9a2a839e-8713-40ca-abfb-2d3d3ebe00e6"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"665"},{"key":"Date","value":"Fri, 13 Sep 2024 20:19:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"AddressInUse\",\n                            \"message\": \"One or more addresses are not available for organization\",\n                            \"address\": \"umar+3@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"AccountBlocked\",\n                            \"message\": \"One or more addresses are blacklisted for organization\",\n                            \"address\": \"ralph+9@hypercare.com\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"290a0c35-c570-4bc8-8cae-7f464bbf13fa","name":"Address In Use","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"umar+3@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+10@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"3e27874e-2ab9-40ee-8c58-f0f13f4719ce"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"920"},{"key":"Date","value":"Fri, 13 Sep 2024 20:24:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"AddressInUse\",\n                            \"message\": \"One or more addresses are not available for organization\",\n                            \"address\": \"umar+3@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"534ade3e-dd79-4a62-aca4-348c37939fca\",\n                            \"firstName\": \"ralph+10@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"ralph+10@hypercare.com\",\n                                    \"access\": \"public\",\n                                    \"label\": null\n                                }\n                            ]\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"d05bcb9f-b85b-4a88-b0ed-7ef5c2bb2d13","name":"Successfully Created All Accounts","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"abhishek.hypercare+16@outlook.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"abhishek.hypercare+17@outlook.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"de64a477-0ec5-4fb6-88ce-bc9f79fef055"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1172"},{"key":"Date","value":"Fri, 13 Sep 2024 20:25:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"b669e2ff-36ac-4710-a417-1df9d2d20c6a\",\n                            \"firstName\": \"umar+5@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"umar+5@hypercare.com\",\n                                    \"access\": \"public\",\n                                    \"label\": null\n                                }\n                            ]\n                        },\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"5b978dcf-a41d-4d75-9022-ec99379d8dc5\",\n                            \"firstName\": \"ralph+11@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"ralph+11@hypercare.com\",\n                                    \"access\": \"public\",\n                                    \"label\": null\n                                }\n                            ]\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"a14a5007-8d9d-4362-b365-fe504e0fd163","name":"All Possible Errors","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {\n                \"password\": \"password12\"\n            },\n            \"addresses\": [\n                {\n                    \"address\": \"umar+13@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+17@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+9@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {\n                \"password\": \"password\"\n            },\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+18@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+19@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"f0debfcd-ed79-4219-9860-21af5bb9492f"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1550"},{"key":"Date","value":"Fri, 13 Sep 2024 20:58:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"PasswordRequirementsNotMet\",\n                            \"message\": \"\\\"value\\\" with value \\\"password12\\\" fails to match the required pattern: /^(?=.*[^a-zA-Z0-9])(?!.*\\\\\\\\s).{8,30}$/\"\n                        },\n                        {\n                            \"__typename\": \"AddressInUse\",\n                            \"message\": \"One or more addresses are linked with an existing user in the organization\",\n                            \"address\": \"ralph+17@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"AccountBlocked\",\n                            \"message\": \"One or more addresses are linked to a removed user and are blacklisted for this organization.\",\n                            \"address\": \"ralph+9@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"VulnerablePassword\",\n                            \"message\": \"Vulnerable password detected\"\n                        },\n                        {\n                            \"__typename\": \"AddressInUse\",\n                            \"message\": \"One or more addresses are linked with an existing user in the organization\",\n                            \"address\": \"ralph+21@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"EmailAddressMissing\",\n                            \"message\": \"Email address is required\"\n                        },\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"6c9577fe-3bbe-4021-ab23-f082164242d1\",\n                            \"firstName\": \"umar+15@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"umar+15@hypercare.com\",\n                                    \"access\": \"private\",\n                                    \"label\": null\n                                },\n                                {\n                                    \"address\": \"+16476784079\",\n                                    \"access\": \"private\",\n                                    \"label\": null\n                                }\n                            ]\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"fbe0ccc2-a6cb-4b76-afd1-fa705b994514","name":"Invite Pending Admin Approval","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                                ... on InvitePendingAdminApproval {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"hamlu647+232@gmail.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"umar+16@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"c702139b-472b-48c7-8391-43427fca9702"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"939"},{"key":"Date","value":"Sat, 14 Sep 2024 06:15:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"InvitePendingAdminApproval\",\n                            \"message\": \"One or more addresses are pending admin approval for invites\",\n                            \"address\": \"hamlu647+232@gmail.com\"\n                        },\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"ad43f39b-7749-4f97-b3cd-2902ddb2dbd6\",\n                            \"firstName\": \"umar+16@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"umar+16@hypercare.com\",\n                                    \"access\": \"private\",\n                                    \"label\": null\n                                }\n                            ]\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"7f60a357-abd5-422d-a28c-abbc09c1014d"},{"name":"Create Shell Accounts","event":[{"listen":"prerequest","script":{"id":"fca07318-e426-4233-927f-dec84d75ab86","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"2f9e4a0a-104c-4398-a7b4-cae5d88e3bdb","exec":[""],"type":"text/javascript","packages":{}}}],"id":"f47b3fab-c5ec-44a1-a8ae-adb119ce198e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    memberStatus\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                                ... on InvitePendingAdminApproval {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {   \n            \"licenseExpiryDate\": \"2025-04-01T05:00:00.000Z\",\n            \"addresses\": [\n                {\n                    \"address\": \"test@email.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"9dddccdf-a8c7-4ef6-8c94-034eda974fbc","name":"Account Blocked","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"umar+3@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+9@hypercare.com\",\n                    \"type\": \"email\"\n                },\n                {\n                    \"address\": \"6476784077\",\n                    \"type\": \"pager\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"9a2a839e-8713-40ca-abfb-2d3d3ebe00e6"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"665"},{"key":"Date","value":"Fri, 13 Sep 2024 20:19:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"AddressInUse\",\n                            \"message\": \"One or more addresses are not available for organization\",\n                            \"address\": \"umar+3@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"AccountBlocked\",\n                            \"message\": \"One or more addresses are blacklisted for organization\",\n                            \"address\": \"ralph+9@hypercare.com\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"cffad2a6-89a0-4590-b7dd-47d2ff4f6c48","name":"Address In Use","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"umar+3@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+10@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"3e27874e-2ab9-40ee-8c58-f0f13f4719ce"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"920"},{"key":"Date","value":"Fri, 13 Sep 2024 20:24:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"AddressInUse\",\n                            \"message\": \"One or more addresses are not available for organization\",\n                            \"address\": \"umar+3@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"534ade3e-dd79-4a62-aca4-348c37939fca\",\n                            \"firstName\": \"ralph+10@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"ralph+10@hypercare.com\",\n                                    \"access\": \"public\",\n                                    \"label\": null\n                                }\n                            ]\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"2add8137-8758-4a81-8dc6-89f94e3e1051","name":"Successfully Created All Accounts","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"umar+5@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+11@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"de64a477-0ec5-4fb6-88ce-bc9f79fef055"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1172"},{"key":"Date","value":"Fri, 13 Sep 2024 20:25:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"b669e2ff-36ac-4710-a417-1df9d2d20c6a\",\n                            \"firstName\": \"umar+5@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"umar+5@hypercare.com\",\n                                    \"access\": \"public\",\n                                    \"label\": null\n                                }\n                            ]\n                        },\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"5b978dcf-a41d-4d75-9022-ec99379d8dc5\",\n                            \"firstName\": \"ralph+11@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"ralph+11@hypercare.com\",\n                                    \"access\": \"public\",\n                                    \"label\": null\n                                }\n                            ]\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"0fe35de2-540c-4f22-b890-9829903efa8a","name":"All Possible Errors","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {\n                \"password\": \"password12\"\n            },\n            \"addresses\": [\n                {\n                    \"address\": \"umar+13@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+17@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+9@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {\n                \"password\": \"password\"\n            },\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+18@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"ralph+19@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"f0debfcd-ed79-4219-9860-21af5bb9492f"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1550"},{"key":"Date","value":"Fri, 13 Sep 2024 20:58:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"PasswordRequirementsNotMet\",\n                            \"message\": \"\\\"value\\\" with value \\\"password12\\\" fails to match the required pattern: /^(?=.*[^a-zA-Z0-9])(?!.*\\\\\\\\s).{8,30}$/\"\n                        },\n                        {\n                            \"__typename\": \"AddressInUse\",\n                            \"message\": \"One or more addresses are linked with an existing user in the organization\",\n                            \"address\": \"ralph+17@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"AccountBlocked\",\n                            \"message\": \"One or more addresses are linked to a removed user and are blacklisted for this organization.\",\n                            \"address\": \"ralph+9@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"VulnerablePassword\",\n                            \"message\": \"Vulnerable password detected\"\n                        },\n                        {\n                            \"__typename\": \"AddressInUse\",\n                            \"message\": \"One or more addresses are linked with an existing user in the organization\",\n                            \"address\": \"ralph+21@hypercare.com\"\n                        },\n                        {\n                            \"__typename\": \"EmailAddressMissing\",\n                            \"message\": \"Email address is required\"\n                        },\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"6c9577fe-3bbe-4021-ab23-f082164242d1\",\n                            \"firstName\": \"umar+15@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"umar+15@hypercare.com\",\n                                    \"access\": \"private\",\n                                    \"label\": null\n                                },\n                                {\n                                    \"address\": \"+16476784079\",\n                                    \"access\": \"private\",\n                                    \"label\": null\n                                }\n                            ]\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"3bf9455e-0880-4459-b40f-3360549e32ca","name":"Invite Pending Admin Approval","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShellAccount($organizationalUnit: OrganizationalUnitInput!, $accounts: [AdminCreateUserDetails!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                __typename\n                ... on AdminOrganizationMutation {\n                    createShellAccounts(accounts: $accounts) {\n                        ... on AdminCreateAccountsResponse {\n                            ## length of accounts will always be equal to the number of account details passed in\n                            accounts {\n                                __typename\n                                ... on FullOrganizationMember {\n                                    id\n                                    firstName\n                                    lastName\n                                    role\n                                    addresses {\n                                        address\n                                        access\n                                        label\n                                    }\n                                }\n                                ... on Error {\n                                    message\n                                }\n                                ... on AddressInUse {\n                                    address\n                                }\n                                ... on AccountBlocked {\n                                    address\n                                }\n                                ... on InvitePendingAdminApproval {\n                                    address\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n        \"id\": 1,\n        \"type\": \"organization\"\n    },\n    \"accounts\": [\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"hamlu647+232@gmail.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        },\n        {\n            \"profile\": {},\n            \"addresses\": [\n                {\n                    \"address\": \"umar+16@hypercare.com\",\n                    \"type\": \"email\"\n                }\n            ]\n        }\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"c702139b-472b-48c7-8391-43427fca9702"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"939"},{"key":"Date","value":"Sat, 14 Sep 2024 06:15:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"createShellAccounts\": {\n                    \"accounts\": [\n                        {\n                            \"__typename\": \"InvitePendingAdminApproval\",\n                            \"message\": \"One or more addresses are pending admin approval for invites\",\n                            \"address\": \"hamlu647+232@gmail.com\"\n                        },\n                        {\n                            \"__typename\": \"FullOrganizationMember\",\n                            \"id\": \"ad43f39b-7749-4f97-b3cd-2902ddb2dbd6\",\n                            \"firstName\": \"umar+16@hypercare.com\",\n                            \"lastName\": null,\n                            \"role\": null,\n                            \"addresses\": [\n                                {\n                                    \"address\": \"umar+16@hypercare.com\",\n                                    \"access\": \"private\",\n                                    \"label\": null\n                                }\n                            ]\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"f47b3fab-c5ec-44a1-a8ae-adb119ce198e"},{"name":"Update User Profile","id":"a4dded0f-85e2-4cfb-9bad-ddfc4976f4c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation updateProfile($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $details: MemberDetails!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ...FullOrganizationMemberMutationFragment\n                    }\n                }\n                ... on AdminSiteMutation {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ...FullOrganizationMemberMutationFragment\n                    }\n                }\n                ... on AdminDepartmentMutation {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ...FullOrganizationMemberMutationFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationMemberMutationFragment on FullOrganizationMemberMutation {\n    __typename\n    updateProfile(details: $details) {\n        ... on CannotModifyDirSyncManagedFields {\n            __typename\n            message\n        }\n        ... on FullOrganizationMember {\n            __typename\n            id\n            firstName\n            lastName\n            role\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 5,\n\t\t\"type\": \"site\"\n\t},\n    \"userId\": {{userId}},\n    \"details\": {\n        \"firstName\": \"First\",\n        \"lastName\": \"Last\",\n        \"role\": \"test\"\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"update-user-profile-admin\">Update User Profile (Admin)</h2>\n<p>GraphQL mutation for admins to update a user's profile information, such as their first name, last name, and job title</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>userId</code> (String): The ID of the user</p>\n</li>\n<li><p><code>details</code>(Object):</p>\n<ul>\n<li><p><code>firstName</code>(String)</p>\n</li>\n<li><p><code>lastName</code>(String)</p>\n</li>\n<li><p><code>role</code>(String): Job title of the user</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the updated user</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"6dcc6c94-11c5-4aca-af7c-5c64a3a4499f","name":"Admin Update Member Profile","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation updateProfile($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $details: MemberDetails!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ...FullOrganizationMemberMutationFragment\n                    }\n                }\n                ... on AdminSiteMutation {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ...FullOrganizationMemberMutationFragment\n                    }\n                }\n                ... on AdminDepartmentMutation {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ...FullOrganizationMemberMutationFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationMemberMutationFragment on FullOrganizationMemberMutation {\n    __typename\n    updateProfile(details: $details) {\n        __typename\n        id\n        firstName\n        lastName\n        role\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n    \"details\": {\n        \"firstName\": \"First\",\n        \"lastName\": \"Last\",\n        \"role\": \"test\"\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"506"},{"key":"Date","value":"Thu, 05 Oct 2023 16:06:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"member\": {\n                    \"__typename\": \"FullOrganizationMemberMutation\",\n                    \"updateProfile\": {\n                        \"__typename\": \"FullOrganizationMember\",\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"firstName\": \"First\",\n                        \"lastName\": \"Last\",\n                        \"role\": \"test\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"a4dded0f-85e2-4cfb-9bad-ddfc4976f4c7"},{"name":"Update User Login Methods","id":"f8410086-fe69-4d74-9987-dc0f57c6c0de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation updateLoginMethods($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $loginMethods: [LoginMethods!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on UserNotAdminForScope {\n                    __typename\n                    message\n                }\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ...FullOrganizationMemberMutationFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationMemberMutationFragment on FullOrganizationMemberMutation {\n    __typename\n    updateLoginMethods(loginMethods: $loginMethods) {\n        ... on Error {\n            __typename\n            message\n        }\n        ... on FullOrganizationMember {\n            __typename\n            id\n            firstName\n            lastName\n            role\n            loginScopes\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\":  {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": {{userId}},\n    \"loginMethods\": [\n\t\t\"otp\",\n        \"password\"\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"update-user-login-methods-admin\">Update User Login Methods (Admin)</h2>\n<p>GraphQL mutation for admins to update the ways a user is allowed to log into the organization. The <code>loginMethods</code> passed in replaces the user's current login methods</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>userId</code> (String): The ID of the user</p>\n</li>\n<li><p><code>loginMethods</code>([String]): Array of possible login methods for the user (e.g. \"otp\", \"password\", \"sso\")</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the updated user</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n<li><p><code>InvalidLoginMethodError</code>: One or more of the given login methods are misformed</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"e5be7dfb-ceb2-436b-af88-343ee3b58ca4","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation updateLoginMethods($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $loginMethods: [LoginMethods!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on UserNotAdminForScope {\n                    __typename\n                    message\n                }\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ...FullOrganizationMemberMutationFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationMemberMutationFragment on FullOrganizationMemberMutation {\n    __typename\n    updateLoginMethods(loginMethods: $loginMethods) {\n        ... on Error {\n            __typename\n            message\n        }\n        ... on FullOrganizationMember {\n            __typename\n            id\n            firstName\n            lastName\n            role\n            loginScopes\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\":  {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"00830d17-ac94-44e9-ac84-c23849368dc3\",\n    \"loginMethods\": [\n\t\t\"otp\",\n        \"sso\"\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"dec2e68d-62be-43d8-bf9b-769defbf0711"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"592"},{"key":"Date","value":"Thu, 02 Jan 2025 23:07:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"member\": {\n                    \"__typename\": \"FullOrganizationMemberMutation\",\n                    \"updateLoginMethods\": {\n                        \"__typename\": \"FullOrganizationMember\",\n                        \"id\": \"00830d17-ac94-44e9-ac84-c23849368dc3\",\n                        \"firstName\": \"Susie\",\n                        \"lastName\": \"Test\",\n                        \"role\": \"\",\n                        \"loginScopes\": [\n                            \"otp\",\n                            \"sso\"\n                        ]\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"86b56d6a-ec21-4fcd-986e-47428abceb53","name":"UserNotFoundError","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation updateLoginMethods($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $loginMethods: [LoginMethods!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on UserNotAdminForScope {\n                    __typename\n                    message\n                }\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ...FullOrganizationMemberMutationFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationMemberMutationFragment on FullOrganizationMemberMutation {\n    __typename\n    updateLoginMethods(loginMethods: $loginMethods) {\n        ... on Error {\n            __typename\n            message\n        }\n        ... on FullOrganizationMember {\n            __typename\n            id\n            firstName\n            lastName\n            role\n            scopes {\n                organizationId\n                siteId\n                departmentId\n                status\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\":  {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"c4c7927e-bced-4e94-bf7b-6e01344a196a\",\n    \"loginMethods\": [\n\t\t\"otp\",\n        \"sso\"\n    ]\n}"}}},"_postman_previewlanguage":"","header":[{}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"member\": {\n                    \"__typename\": \"UserNotFoundError\"\n                }\n            }\n        }\n    }\n}"},{"id":"4d30199c-f73c-4784-bd10-c3cbfb0b8da7","name":"InvalidLoginMethodError","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation updateLoginMethods($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $loginMethods: [LoginMethods!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on UserNotAdminForScope {\n                    __typename\n                    message\n                }\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ...FullOrganizationMemberMutationFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationMemberMutationFragment on FullOrganizationMemberMutation {\n    __typename\n    updateLoginMethods(loginMethods: $loginMethods) {\n        ... on Error {\n            __typename\n            message\n        }\n        ... on FullOrganizationMember {\n            __typename\n            id\n            firstName\n            lastName\n            role\n            scopes {\n                organizationId\n                siteId\n                departmentId\n                status\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\":  {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"c4c7927e-bced-4e94-bf7b-6e01344a196a\",\n    \"loginMethods\": [\n\t\t\"ot\"\n    ]\n}"}}},"_postman_previewlanguage":"","header":[{}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"member\": {\n                    \"__typename\": \"FullOrganizationMemberMutation\",\n                    \"updateLoginMethods\": {\n                        \"__typename\": \"InvalidLoginMethodError\",\n                        \"message\": \"Invalid input login methods\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"f8410086-fe69-4d74-9987-dc0f57c6c0de"},{"name":"Add User to Scope","id":"15da59c6-4fed-48d0-bad7-9f6847646b0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation AddUserToScope($organizationalUnit: OrganizationalUnitInput!, $id: ID!) {\n  adminMutation {\n    __typename\n    ... on Error {\n        __typename\n        message\n    }\n    ... on AdminMutation { \n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        __typename\n        ... on AdminSiteMutation {\n          addMember (id: $id) {\n            ...FullOrganizationMemberFragment\n\n            ... on Error {\n                __typename\n                message\n            }\n          }\n        }\n        ... on AdminDepartmentMutation {\n          addMember (id: $id) {\n            ...FullOrganizationMemberFragment\n\n            ... on Error {\n                __typename\n                message\n            }\n          }\n        }\n        ... on Error {\n            __typename\n            message\n        }\n      }\n    }\n  }\n}\n\nfragment FullOrganizationMemberFragment on FullOrganizationMember {\n    id\n    memberId\n    firstName\n    lastName\n    role\n    accountStatus\n    # isDirectorySynced\n    # isSSOEnabled\n    addresses {\n        id\n        address\n        # ordinal\n        # type\n        verified\n        access\n        syncStatus\n        createdAt\n        updatedAt\n    }\n    #id\n    #username\n    #firstname: firstName\n    #lastname: lastName\n    #role\n    #accountStatus\n    #profilePic: avatar {\n    #    url\n    #}\n    #isDirectorySynced\n    #isSSOEnabled\n    #joinDate\n    #licenseExpiryTime\n    #licenseStartTime\n    #scopes {\n    #    organizationId\n    #    siteId\n    #    departmentId\n    #    status\n    #}\n}\n","variables":"{\n  \"organizationalUnit\": {\n    \"id\": {{siteId}},\n    \"type\": \"site\"\n  },\n  \"id\": {{userId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"add-user-to-scope-admin\">Add User to Scope (Admin)</h2>\n<p>GraphQL mutation for admins to add a user to a specific site or department within an organization</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>id</code> (String): The ID of the user to be added to the scope</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the newly added member, including their name and addresses</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>UserAlreadyExistsForScope</code> : User is already a part of the given scope</p>\n</li>\n</ul>\n","urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"866316e1-f79d-4b2d-b862-08d9ebf26416","name":"Success Sample Response","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation FetchMembers($organizationalUnit: OrganizationalUnitInput!, $id: ID!) {\n  adminMutation {\n    __typename\n    ... on Error {\n      message\n    }\n    ... on AdminMutation { \n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        ... on AdminSiteMutation {\n          addMember (id: $id) {\n            ...FullOrganizationMemberFragment\n          }\n        }\n        ... on Error {\n            message\n        }\n      }\n    }\n  }\n}\n\nfragment FullOrganizationMemberFragment on FullOrganizationMember {\n    id\n    memberId\n    firstName\n    lastName\n    role\n    accountStatus\n    # isDirectorySynced\n    # isSSOEnabled\n    addresses {\n        id\n        address\n        # ordinal\n        # type\n        verified\n        access\n        syncStatus\n        createdAt\n        updatedAt\n    }\n    #id\n    #username\n    #firstname: firstName\n    #lastname: lastName\n    #role\n    #accountStatus\n    #profilePic: avatar {\n    #    url\n    #}\n    #isDirectorySynced\n    #isSSOEnabled\n    #joinDate\n    #licenseExpiryTime\n    #licenseStartTime\n    #scopes {\n    #    organizationId\n    #    siteId\n    #    departmentId\n    #    status\n    #}\n}\n","variables":"{\n  \"organizationalUnit\": {\n    \"id\": 1,\n    \"type\": \"site\"\n  },\n  \"id\": \"36990f77-cae9-4e6d-a339-8d926fffe4b0\"\n}"}}},"_postman_previewlanguage":"","header":[{}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"addMember\": {\n                    \"id\": \"36990f77-cae9-4e6d-a339-8d926fffe4b0\",\n                    \"memberId\": \"6758611ac0e862001e087386\",\n                    \"firstName\": \"Test\",\n                    \"lastName\": \"User\",\n                    \"role\": \"Physician\",\n                    \"accountStatus\": \"active\",\n                    \"addresses\": [\n                        {\n                            \"id\": \"aHVtYWlyYS5wZXJ2ZWVuMDAzMStkZWMxMEBnbWFpbC5jb20=\",\n                            \"address\": \"testUser001@gmail.com\",\n                            \"verified\": true,\n                            \"access\": \"public\",\n                            \"syncStatus\": false,\n                            \"createdAt\": \"2024-12-10T15:41:14.368Z\",\n                            \"updatedAt\": \"2024-12-10T15:41:14.368Z\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"f9c31237-06a8-4d93-b019-18e7dbe7e954","name":"Error - UserAlreadyExistsForScope","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation AddUserToScope($organizationalUnit: OrganizationalUnitInput!, $id: ID!) {\n  adminMutation {\n    __typename\n    ... on Error {\n        __typename\n        message\n    }\n    ... on AdminMutation { \n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        __typename\n        ... on AdminSiteMutation {\n          addMember (id: $id) {\n            ...FullOrganizationMemberFragment\n\n            ... on Error {\n                __typename\n                message\n            }\n          }\n        }\n        ... on AdminDepartmentMutation {\n          addMember (id: $id) {\n            ...FullOrganizationMemberFragment\n\n            ... on Error {\n                __typename\n                message\n            }\n          }\n        }\n        ... on Error {\n            __typename\n            message\n        }\n      }\n    }\n  }\n}\n\nfragment FullOrganizationMemberFragment on FullOrganizationMember {\n    id\n    memberId\n    firstName\n    lastName\n    role\n    accountStatus\n    # isDirectorySynced\n    # isSSOEnabled\n    addresses {\n        id\n        address\n        # ordinal\n        # type\n        verified\n        access\n        syncStatus\n        createdAt\n        updatedAt\n    }\n    #id\n    #username\n    #firstname: firstName\n    #lastname: lastName\n    #role\n    #accountStatus\n    #profilePic: avatar {\n    #    url\n    #}\n    #isDirectorySynced\n    #isSSOEnabled\n    #joinDate\n    #licenseExpiryTime\n    #licenseStartTime\n    #scopes {\n    #    organizationId\n    #    siteId\n    #    departmentId\n    #    status\n    #}\n}\n","variables":"{\n  \"organizationalUnit\": {\n    \"id\": 1,\n    \"type\": \"site\"\n  },\n  \"id\": \"36990f77-cae9-4e6d-a339-8d926fffe4b0\"\n}"}}},"_postman_previewlanguage":"","header":[{}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"addMember\": {\n                    \"__typename\": \"UserAlreadyExistsForScope\",\n                    \"message\": \"User already exists for given scope\"\n                }\n            }\n        }\n    }\n}"},{"id":"0c0e1b8d-95cf-4424-bcfd-64c799b13777","name":"Error - UserNotAdminForScope","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation AddUserToScope($organizationalUnit: OrganizationalUnitInput!, $id: ID!) {\n  adminMutation {\n    __typename\n    ... on Error {\n        __typename\n        message\n    }\n    ... on AdminMutation { \n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        __typename\n        ... on AdminSiteMutation {\n          addMember (id: $id) {\n            ...FullOrganizationMemberFragment\n\n            ... on Error {\n                __typename\n                message\n            }\n          }\n        }\n        ... on AdminDepartmentMutation {\n          addMember (id: $id) {\n            ...FullOrganizationMemberFragment\n\n            ... on Error {\n                __typename\n                message\n            }\n          }\n        }\n        ... on Error {\n            __typename\n            message\n        }\n      }\n    }\n  }\n}\n\nfragment FullOrganizationMemberFragment on FullOrganizationMember {\n    id\n    memberId\n    firstName\n    lastName\n    role\n    accountStatus\n    # isDirectorySynced\n    # isSSOEnabled\n    addresses {\n        id\n        address\n        # ordinal\n        # type\n        verified\n        access\n        syncStatus\n        createdAt\n        updatedAt\n    }\n    #id\n    #username\n    #firstname: firstName\n    #lastname: lastName\n    #role\n    #accountStatus\n    #profilePic: avatar {\n    #    url\n    #}\n    #isDirectorySynced\n    #isSSOEnabled\n    #joinDate\n    #licenseExpiryTime\n    #licenseStartTime\n    #scopes {\n    #    organizationId\n    #    siteId\n    #    departmentId\n    #    status\n    #}\n}\n","variables":"{\n  \"organizationalUnit\": {\n    \"id\": 1,\n    \"type\": \"site\"\n  },\n  \"id\": \"36990f77-cae9-4e6d-a339-8d926fffe4b0\"\n}"}}},"_postman_previewlanguage":"","header":[{}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"UserNotAdminForScope\",\n                \"message\": \"User is not admin for scope\"\n            }\n        }\n    }\n}"}],"_postman_id":"15da59c6-4fed-48d0-bad7-9f6847646b0e"},{"name":"Add Users to Scope","id":"b9fa254f-4918-4844-8345-0fb4fec492ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation FetchMembers($organizationalUnit: OrganizationalUnitInput!, $ids: [ID!]!) {\n  adminMutation {\n    __typename\n    ... on Error {\n        __typename\n        message\n    }\n    ... on AdminMutation { \n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        __typename\n        ... on AdminSiteMutation {\n            addMembers (ids: $ids) {\n                ... on AdminAddUserToScopeResponse {\n                    members {\n                        ... on FullOrganizationMember {\n                            id\n                            firstName\n                            lastName\n                            scopes {\n                                organizationId\n                                siteId\n                                departmentId\n                                status\n                            }\n                        }\n\n                        ... on Error {\n                            __typename\n                            message\n                        }\n                    }\n                }\n            }\n        }\n        # ... on AdminDepartmentMutation {\n        #   addMembers (ids: $ids) {\n        #     __typename\n        #     members {\n        #         __typename\n                \n        #         ... on FullOrganizationMember {\n        #             __typename\n        #             id\n        #             firstName\n        #             lastName\n        #             scopes {\n        #                 organizationId\n        #                 siteId\n        #                 departmentId\n        #                 status\n        #             }\n        #         }\n\n        #         ... on Error {\n        #             __typename\n        #             message\n        #         }\n        #     }\n        #   }\n        # }\n        ... on Error {\n            __typename\n            message\n        }\n      }\n    }\n  }\n}","variables":"{\n  \"organizationalUnit\": {\n    \"id\": 3,\n    \"type\": \"site\"\n  },\n  \"ids\": [\n    \"a2cb7d96-94d9-483b-9546-accf1fcec3c6\",\n    \"a2cb7d96-94d9-483b-9546-accf1fcec3c8\",\n    \"ffc5144e-d1c7-4c83-93a7-d6b65336123b\"\n  ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"31ca4f6b-28b3-4044-8e9d-30e2ec22f114","name":"Add multiple users to scope","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation FetchMembers($organizationalUnit: OrganizationalUnitInput!, $ids: [ID!]!) {\n  adminMutation {\n    __typename\n    ... on Error {\n        __typename\n        message\n    }\n    ... on AdminMutation { \n      organizationalUnit(organizationalUnit: $organizationalUnit) {\n        __typename\n        ... on AdminSiteMutation {\n          addMembers (ids: $ids) {\n            members {\n                ... on FullOrganizationMember {\n                        id\n                        firstName\n                        lastName\n                        scopes {\n                            organizationId\n                            siteId\n                            departmentId\n                            status\n                        }\n                    }\n\n                ... on Error {\n                    __typename\n                    message\n                }\n            }\n          }\n        }\n        ... on AdminDepartmentMutation {\n          addMembers (ids: $ids) {\n            __typename\n            members {\n                __typename\n                \n                ... on FullOrganizationMember {\n                    __typename\n                    id\n                    firstName\n                    lastName\n                    scopes {\n                        organizationId\n                        siteId\n                        departmentId\n                        status\n                    }\n                }\n\n                ... on Error {\n                    __typename\n                    message\n                }\n            }\n          }\n        }\n        ... on Error {\n            __typename\n            message\n        }\n      }\n    }\n  }\n}","variables":"{\n  \"organizationalUnit\": {\n    \"id\": 3,\n    \"type\": \"site\"\n  },\n  \"ids\": [\n    \"a2cb7d96-94d9-483b-9546-accf1fcec3c6\",\n    \"a2cb7d96-94d9-483b-9546-accf1fcec3c8\",\n    \"ffc5144e-d1c7-4c83-93a7-d6b65336123b\"\n  ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"14ad79ea-f41a-4861-86e2-9dc6f58f899c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1144"},{"key":"Date","value":"Wed, 08 Jan 2025 20:11:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminSiteMutation\",\n                \"addMembers\": {\n                    \"members\": [\n                        {\n                            \"__typename\": \"UserAlreadyExistsForScope\",\n                            \"message\": \"User already exists for given scope\"\n                        },\n                        {\n                            \"__typename\": \"UserNotMemberOfOrganization\",\n                            \"message\": \"The user you're looking for is not member of this organization\"\n                        },\n                        {\n                            \"id\": \"ffc5144e-d1c7-4c83-93a7-d6b65336123b\",\n                            \"firstName\": \"With-Suggested-Org\",\n                            \"lastName\": \"Ahmed\",\n                            \"scopes\": [\n                                {\n                                    \"organizationId\": 1,\n                                    \"siteId\": null,\n                                    \"departmentId\": null,\n                                    \"status\": \"admin\"\n                                },\n                                {\n                                    \"organizationId\": 1,\n                                    \"siteId\": 3,\n                                    \"departmentId\": null,\n                                    \"status\": \"admin\"\n                                }\n                            ]\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"b9fa254f-4918-4844-8345-0fb4fec492ac"},{"name":"Demote User from Scope","id":"ea040391-9ab0-4c79-aa11-4f0f13add9f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation demoteUserFromScopes($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $scopes: [OrganizationScopeInput!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on UserNotAdminForScope {\n                    __typename\n                    message\n                }\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ...FullOrganizationMemberMutationFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationMemberMutationFragment on FullOrganizationMemberMutation {\n    __typename\n    demote(scopes: $scopes) {\n        ... on UserNotMemberOfOrganization {\n            __typename\n            message\n        }\n        ... on CannotMutateSuperAdmin {\n            __typename\n            message\n        }\n        ... on PromoteDemoteUserScopesResponse {\n            __typename\n            scopes {\n                __typename\n                ... on AccessForbiddenError {\n                    __typename\n                    message\n                }\n                ... on UserNotAdminForScope {\n                    __typename\n                    message\n                }\n                ... on UserNotMemberForScope {\n                    __typename\n                    message\n                }\n                ... on FullOrganizationMember {\n                    __typename\n                    id\n                    firstName\n                    lastName\n                    role\n                    scopes {\n                        organizationId\n                        siteId\n                        departmentId\n                        status\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\":  {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": {{userId}},\n    \"scopes\": [\n\t\t{\n\t\t\t\"organizationId\": 1,\n\t\t\t\"siteId\": 1,\n\t\t\t\"departmentId\": 17\n\t\t},\n\t\t{\n\t\t\t\"organizationId\": 1,\n\t\t\t\"siteId\": 1\n\t\t}\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"demote-user-from-scopes-admin\">Demote User from Scopes (Admin)</h2>\n<p>GraphQL mutation for admins to demote a user from admin to regular user for an array of given scopes</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>userId</code> (String): The ID of the user to be demoted</p>\n</li>\n<li><p><code>scopes</code> ([Object]): The specific scopes which the user will be demoted from</p>\n<ul>\n<li><p><code>organizationId</code> (Int)</p>\n</li>\n<li><p><code>siteId</code> (Int)</p>\n</li>\n<li><p><code>departmentId</code> (Int)</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the user and their new scopes</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"006597d5-1bcd-45c9-8512-7adc685659ce","name":"Demote User from Scope","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation demoteUserFromScopes($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $scopes: [OrganizationScopeInput!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on UserNotAdminForScope {\n                    __typename\n                    message\n                }\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ...FullOrganizationMemberMutationFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationMemberMutationFragment on FullOrganizationMemberMutation {\n    __typename\n    demote(scopes: $scopes) {\n        ... on UserNotMemberOfOrganization {\n            __typename\n            message\n        }\n        ... on CannotMutateSuperAdmin {\n            __typename\n            message\n        }\n        ... on PromoteDemoteUserScopesResponse {\n            __typename\n            scopes {\n                __typename\n                ... on AccessForbiddenError {\n                    __typename\n                    message\n                }\n                ... on UserNotAdminForScope {\n                    __typename\n                    message\n                }\n                ... on UserNotMemberForScope {\n                    __typename\n                    message\n                }\n                ... on FullOrganizationMember {\n                    __typename\n                    id\n                    firstName\n                    lastName\n                    role\n                    scopes {\n                        organizationId\n                        siteId\n                        departmentId\n                        status\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\":  1,\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"00830d17-ac94-44e9-ac84-c23849368dc3\",\n    \"scopes\": [\n\t\t{\n\t\t\t\"organizationId\": 1,\n\t\t\t\"siteId\": 3,\n\t\t\t\"departmentId\": 7\n\t\t},\n\t\t{\n\t\t\t\"organizationId\": 1,\n\t\t\t\"siteId\": 3\n\t\t},\n        {\n\t\t\t\"organizationId\": 1,\n\t\t\t\"siteId\": 1,\n\t\t\t\"departmentId\": 17\n\t\t}\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"1b8c1b0f-3386-421d-a90e-27fa3089b236"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1714"},{"key":"Date","value":"Tue, 14 Jan 2025 16:58:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"member\": {\n                    \"__typename\": \"FullOrganizationMemberMutation\",\n                    \"demote\": {\n                        \"__typename\": \"PromoteDemoteUserScopesResponse\",\n                        \"scopes\": [\n                            {\n                                \"__typename\": \"FullOrganizationMember\",\n                                \"id\": \"00830d17-ac94-44e9-ac84-c23849368dc3\",\n                                \"firstName\": \"Susie\",\n                                \"lastName\": \"Test\",\n                                \"role\": \"\",\n                                \"scopes\": [\n                                    {\n                                        \"organizationId\": 1,\n                                        \"siteId\": null,\n                                        \"departmentId\": null,\n                                        \"status\": \"regular\"\n                                    },\n                                    {\n                                        \"organizationId\": 1,\n                                        \"siteId\": 3,\n                                        \"departmentId\": null,\n                                        \"status\": \"regular\"\n                                    },\n                                    {\n                                        \"organizationId\": 1,\n                                        \"siteId\": 3,\n                                        \"departmentId\": 7,\n                                        \"status\": \"regular\"\n                                    }\n                                ]\n                            },\n                            {\n                                \"__typename\": \"UserNotAdminForScope\",\n                                \"message\": \"User cannot be demoted because they are not an admin of given scope: {\\\"organizationId\\\":1,\\\"siteId\\\":3}\"\n                            },\n                            {\n                                \"__typename\": \"UserNotMemberForScope\",\n                                \"message\": \"User is not a member of given scope: {\\\"organizationId\\\":1,\\\"siteId\\\":1,\\\"departmentId\\\":17}\"\n                            }\n                        ]\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"958254e9-a0be-40cf-8f55-5110e7d96c26","name":"CannotMutateSuperAdmin","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation demoteUserFromScopes($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $scopes: [OrganizationScopeInput!]!) {\n    adminMutation {\n        __typename\n        ... on AdminMutation { \n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on UserNotAdminForScope {\n                    __typename\n                    message\n                }\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminOrganizationMutation {\n                    __typename\n                    member(id: $userId) {\n                        __typename\n                        ...FullOrganizationMemberMutationFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationMemberMutationFragment on FullOrganizationMemberMutation {\n    __typename\n    demote(scopes: $scopes) {\n        ... on UserNotMemberOfOrganization {\n            __typename\n            message\n        }\n        ... on CannotMutateSuperAdmin {\n            __typename\n            message\n        }\n        ... on PromoteDemoteUserScopesResponse {\n            __typename\n            scopes {\n                __typename\n                ... on AccessForbiddenError {\n                    __typename\n                    message\n                }\n                ... on UserNotAdminForScope {\n                    __typename\n                    message\n                }\n                ... on UserNotMemberForScope {\n                    __typename\n                    message\n                }\n                ... on FullOrganizationMember {\n                    __typename\n                    id\n                    firstName\n                    lastName\n                    role\n                    scopes {\n                        organizationId\n                        siteId\n                        departmentId\n                        status\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\":  1,\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"00830d17-ac94-44e9-ac84-c23849368dc3\",\n    \"scopes\": [\n\t\t{\n\t\t\t\"organizationId\": 1,\n\t\t\t\"siteId\": 3,\n\t\t\t\"departmentId\": 7\n\t\t},\n\t\t{\n\t\t\t\"organizationId\": 1,\n\t\t\t\"siteId\": 3\n\t\t},\n        {\n\t\t\t\"organizationId\": 1,\n\t\t\t\"siteId\": 1,\n\t\t\t\"departmentId\": 17\n\t\t}\n    ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"85533760-c53a-4b0e-84a3-bf7d55bcce51"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"399"},{"key":"Date","value":"Tue, 14 Jan 2025 17:01:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminOrganizationMutation\",\n                \"member\": {\n                    \"__typename\": \"FullOrganizationMemberMutation\",\n                    \"demote\": {\n                        \"__typename\": \"CannotMutateSuperAdmin\",\n                        \"message\": \"Cannot demote super admin\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"ea040391-9ab0-4c79-aa11-4f0f13add9f1"},{"name":"Remove User from Scope","event":[{"listen":"test","script":{"id":"b5351247-2d6e-43ee-ba87-9eb58afef02e","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"e6a13d53-438b-415f-9a57-dc78fb8735ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation removeUser($userId: ID!, $scope: OrganizationScopeInput) {\n    admin {\n        user(id: $userId) {\n            remove(scope: $scope) {\n                ...FullUserFragment\n            }\n        }\n    }\n}\n\nfragment FullUserFragment on FullUser {\n    id\n    username\n    firstname\n    lastname\n    addresses {\n        id\n        address\n        type\n    }\n    joinDate\n    status\n}","variables":"{\n    \"userId\": \"{{user_id}}\",\n    \"scope\": {\n        \"organizationId\": {{organization_id}},\n        \"siteId\": {{site_id}},\n        \"departmentId\": {{department_id}}\n    }\n}"}},"url":"https://{{api_hostname}}/graphql/private","description":"<p>Remove user from given scope. If no scope is specified in requests it inherits the scope of the requesting user.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"66a2d5b2-4eab-478a-85d6-620e13082aef","name":"Success Sample Response - Remove User from Organization","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation removeUser($userId: ID!, $scope: OrganizationScopeInput) {\n    admin {\n        user(id: $userId) {\n            remove(scope: $scope) {\n                ...FullUserFragment\n            }\n        }\n    }\n}\n\nfragment FullUserFragment on FullUser {\n    id\n    username\n    firstname\n    lastname\n    addresses {\n        id\n        address\n        type\n    }\n    joinDate\n    status\n}","variables":"{\n    \"userId\": \"70f598af-6899-4d0e-8c97-bab2f4b7b7cd\",\n    \"scope\": {\n        \"organizationId\": 1\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"362"},{"key":"Date","value":"Mon, 02 Oct 2023 14:19:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"admin\": {\n            \"user\": {\n                \"remove\": {\n                    \"id\": \"70f598af-6899-4d0e-8c97-bab2f4b7b7cd\",\n                    \"username\": \"deleteusertest1\",\n                    \"firstname\": \"Test\",\n                    \"lastname\": \"Logging2\",\n                    \"addresses\": [],\n                    \"joinDate\": \"1990-01-01T00:00:00.000Z\",\n                    \"status\": \"active\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"e6a13d53-438b-415f-9a57-dc78fb8735ef"},{"name":"Archive Member","id":"dc1f470e-03cc-4965-be94-a828576fd80d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ArchiveMember($userId: ID!, $organizationalUnit: OrganizationalUnitInput!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $userId) {\n                        __typename\n                        ... on FullOrganizationMemberMutation {\n                            archive {\n                                __typename\n                                ...FullOrganizationMemberFragment\n                                ... on Error {\n                                    message\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationMemberFragment on FullOrganizationMember {\n    id\n    firstName\n    lastName\n    role\n}","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": {{organizationId}}\n    },\n    \"userId\": {{userId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"archive-removed-member-admin\">Archive Removed Member (Admin)</h2>\n<p>GraphQL mutation for admins to archive a removed user, so they will no longer be returned in the removed users list</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>userId</code> (String): The ID of the user</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the user with their addresses</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"48fa398c-924c-4b43-afa3-c00f106277c5","name":"Successfully Archived Member","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ArchiveMember($userId: ID!, $organizationalUnit: OrganizationalUnitInput!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $userId) {\n                        __typename\n                        ... on FullOrganizationMemberMutation {\n                            archive {\n                                __typename\n                                ...FullOrganizationMemberFragment\n                                ... on Error {\n                                    message\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationMemberFragment on FullOrganizationMember {\n    id\n    firstName\n    lastName\n    role\n}","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": 1\n    },\n    \"userId\": \"0cdfd2c6-ba47-4a3d-8849-af1ae8e2840c\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"27aa5a4d-79eb-4061-9343-31bb639ef58e"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"435"},{"key":"Date","value":"Mon, 23 Dec 2024 00:10:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"member\": {\n                    \"__typename\": \"FullOrganizationMemberMutation\",\n                    \"archive\": {\n                        \"__typename\": \"FullOrganizationMember\",\n                        \"id\": \"0cdfd2c6-ba47-4a3d-8849-af1ae8e2840c\",\n                        \"firstName\": \"marianne.dimabogti+123@hypercare.com\",\n                        \"lastName\": \"\",\n                        \"role\": \"\"\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"26bfeac8-c6b5-4b5d-9537-2189866eb6aa","name":"User Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ArchiveMember($userId: ID!, $organizationalUnit: OrganizationalUnitInput!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $userId) {\n                        __typename\n                        ... on FullOrganizationMemberMutation {\n                            archive {\n                                __typename\n                                ...FullOrganizationMemberFragment\n                                ... on Error {\n                                    message\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationMemberFragment on FullOrganizationMember {\n    id\n    firstName\n    lastName\n    role\n}","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": 1\n    },\n    \"userId\": \"0cdfd2c6-ba47-4a3d-8849-af1ae8e2840c\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"4507f291-b73d-4aee-958a-cac3758630cc"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"160"},{"key":"Date","value":"Mon, 23 Dec 2024 00:14:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"member\": {\n                    \"__typename\": \"UserNotFoundError\"\n                }\n            }\n        }\n    }\n}"},{"id":"3a1b2d1f-12d7-4aaa-a349-a1bbcda98685","name":"Cannot Archive Active Member","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ArchiveMember($userId: ID!, $organizationalUnit: OrganizationalUnitInput!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $userId) {\n                        __typename\n                        ... on FullOrganizationMemberMutation {\n                            archive {\n                                __typename\n                                ...FullOrganizationMemberFragment\n                                ... on Error {\n                                    message\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationMemberFragment on FullOrganizationMember {\n    id\n    firstName\n    lastName\n    role\n}","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": 1\n    },\n    \"userId\": \"3fcace8d-b724-4df4-b3ce-e13e1e550ab3\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"d48157ba-3431-42cd-8ef2-09781921ab83"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"318"},{"key":"Date","value":"Mon, 23 Dec 2024 00:20:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"member\": {\n                    \"__typename\": \"FullOrganizationMemberMutation\",\n                    \"archive\": {\n                        \"__typename\": \"CannotArchiveActiveMember\",\n                        \"message\": \"Cannot archive active member\"\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"09ba7b89-182f-4428-8ee9-2ad62145564a","name":"Cannot Archive Inactive Member","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation ArchiveMember($userId: ID!, $organizationalUnit: OrganizationalUnitInput!) {\n    adminMutation {\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on AdminOrganizationMutation {\n                    member(id: $userId) {\n                        __typename\n                        ... on FullOrganizationMemberMutation {\n                            archive {\n                                __typename\n                                ...FullOrganizationMemberFragment\n                                ... on Error {\n                                    message\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment FullOrganizationMemberFragment on FullOrganizationMember {\n    id\n    firstName\n    lastName\n    role\n}","variables":"{\n    \"organizationalUnit\": {\n        \"type\": \"organization\",\n        \"id\": 1\n    },\n    \"userId\": \"3fcace8d-b724-4df4-b3ce-e13e1e550ab3\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"7168b5c1-7fb2-42f7-a2f6-c786ec1882fa"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"318"},{"key":"Date","value":"Mon, 23 Dec 2024 00:36:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"organizationalUnit\": {\n                \"member\": {\n                    \"__typename\": \"FullOrganizationMemberMutation\",\n                    \"archive\": {\n                        \"__typename\": \"CannotArchiveActiveMember\",\n                        \"message\": \"Cannot archive active member\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"dc1f470e-03cc-4965-be94-a828576fd80d"}],"id":"bc02e6ac-a2c1-433f-8e3f-0a5f2edae8fd","description":"<p>This section contains functionalities only accessable to users with administrator privileges. The error <code>UserNotAdminForScope</code> will return for all unauthorized access.</p>\n","_postman_id":"bc02e6ac-a2c1-433f-8e3f-0a5f2edae8fd","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Non-admin","item":[{"name":"Fetch User by ID","id":"40116dc3-b41f-43a3-a9b3-4f6fc15d2849","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... on Organization {\n        member(id: $userId) {\n            ...UserProfileResultFragment\n            __typename\n        }\n      }\n    }\n  }\n}\n\n\nfragment UserProfileResultFragment on UserProfileResult {\n    ... on UserNotFoundError {\n        __typename\n        message\n    }\n    ... on UserNotMemberOfOrganization {\n        __typename\n        message\n    }\n    ... on GeneralUser {\n        firstname: firstName\n        lastName\n        username\n        __typename\n    }\n\n    ... on Node { \n        id\n    }\n    \n    ... on OrganizationMember {\n        addresses {\n            ...AddressFragment\n        }\n    }\n    \n    ... on FullOrganizationMember {\n        addresses {\n            ...AddressFragment\n        }\n    }\n}\n\nfragment AddressFragment on Address {\n    address\n    type\n    label\n    access\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": {{userId}}\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-user-by-id\">Fetch User by ID</h2>\n<p>GraphQL query for fetching a user's information within a given organizational unit</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>userId</code>(String): The ID of the user</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object containing your user information, including but not limited to: <code>id</code>, <code>firstName</code>, <code>lastName</code>, <code>role</code>, <code>workStatus</code>, <code>isDirectorySynced</code>, <code>joinDate</code>, public<code>notes</code>, public <code>address</code>, etc</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"aef16842-3ca5-4c9a-a22e-4d1df977a693","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... on Organization {\n        member(id: $userId) {\n            ...UserProfileResultFragment\n            __typename\n        }\n      }\n    }\n  }\n}\n\n\nfragment UserProfileResultFragment on UserProfileResult {\n    ... on UserNotFoundError {\n        __typename\n        message\n    }\n    ... on UserNotMemberOfOrganization {\n        __typename\n        message\n    }\n    ... on GeneralUser {\n        firstname: firstName\n        lastName\n        username\n        __typename\n    }\n\n    ... on Node { \n        id\n    }\n    \n    ... on OrganizationMember {\n        addresses {\n            ...AddressFragment\n        }\n    }\n    \n    ... on FullOrganizationMember {\n        addresses {\n            ...AddressFragment\n        }\n    }\n}\n\nfragment AddressFragment on Address {\n    address\n    type\n    label\n    access\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"00830d17-ac94-44e9-ac84-c23849368dc3\"\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 03 Jan 2025 22:29:26 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"577"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"e9295193-11ab-489d-b71c-69c990cc6b86"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"member\": {\n                    \"firstname\": \"User001\",\n                    \"lastName\": \"Test\",\n                    \"username\": \"\",\n                    \"__typename\": \"FullOrganizationMember\",\n                    \"id\": \"00830d17-ac94-44e9-ac84-c23849368dc3\",\n                    \"addresses\": [\n                        {\n                            \"address\": \"test001@gmail.com\",\n                            \"type\": \"email\",\n                            \"label\": null,\n                            \"access\": \"public\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"ae6fcedb-9297-46d5-a2bc-660237eaa9c9","name":"UserNotFoundError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... on Organization {\n        member(id: $userId) {\n            ...UserProfileResultFragment\n            __typename\n        }\n      }\n    }\n  }\n}\n\n\nfragment UserProfileResultFragment on UserProfileResult {\n    ... on UserNotFoundError {\n        __typename\n        message\n    }\n    ... on UserNotMemberOfOrganization {\n        __typename\n        message\n    }\n    ... on GeneralUser {\n        firstname: firstName\n        lastName\n        username\n        __typename\n    }\n\n    ... on Node { \n        id\n    }\n    \n    ... on OrganizationMember {\n        addresses {\n            ...AddressFragment\n        }\n    }\n    \n    ... on FullOrganizationMember {\n        addresses {\n            ...AddressFragment\n        }\n    }\n}\n\nfragment AddressFragment on Address {\n    address\n    type\n    label\n    access\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"{{userId}}\"\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 03 Jan 2025 22:28:50 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"275"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"49ca9b8b-5fa9-4b35-8fe3-4776bfdd6f5f"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"member\": {\n                    \"__typename\": \"UserNotFoundError\",\n                    \"message\": \"The user you're looking for does not exist\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"40116dc3-b41f-43a3-a9b3-4f6fc15d2849"},{"name":"Fetch User by Address","id":"01ee99bb-fecd-45cb-9116-f885b1e24e09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $address: String!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... on Organization {\n        memberForAddress(address: $address) {\n            ...UserProfileResultFragment\n            __typename\n        }\n      }\n    }\n  }\n}\n\n\nfragment UserProfileResultFragment on UserProfileResult {\n    ... on UserNotFoundError {\n        __typename\n        message\n    }\n    ... on UserNotMemberOfOrganization {\n        __typename\n        message\n    }\n    ... on GeneralUser {\n        firstname: firstName\n        lastName\n        username\n        __typename\n    }\n\n    ... on Node { \n        id\n    }\n    \n    ... on OrganizationMember {\n        addresses {\n            ...AddressFragment\n        }\n    }\n    \n    ... on FullOrganizationMember {\n        addresses {\n            ...AddressFragment\n        }\n    }\n}\n\nfragment AddressFragment on Address {\n    address\n    type\n    label\n    access\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"address\": \"humaira.perveen0031+deptadmin@gmail.com\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"bd1dcc50-0e42-4d81-8afd-5c49b6707985","name":"User Not Found","originalRequest":{"method":"GET","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $address: String!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... on Organization {\n        memberForAddress(address: $address) {\n            ...UserProfileResultFragment\n            __typename\n        }\n      }\n    }\n  }\n}\n\n\nfragment UserProfileResultFragment on UserProfileResult {\n    ... on UserNotFoundError {\n        __typename\n        message\n    }\n    ... on UserNotMemberOfOrganization {\n        __typename\n        message\n    }\n    ... on GeneralUser {\n        firstname: firstName\n        lastName\n        username\n        __typename\n    }\n\n    ... on Node { \n        id\n    }\n    \n    ... on OrganizationMember {\n        addresses {\n            ...AddressFragment\n        }\n    }\n    \n    ... on FullOrganizationMember {\n        addresses {\n            ...AddressFragment\n        }\n    }\n}\n\nfragment AddressFragment on Address {\n    address\n    type\n    label\n    access\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"address\": \"umar@hypercare.com\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-Id","value":"acdd2c49-bdf9-40ab-a0eb-9a9a0404cd15"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"285"},{"key":"Date","value":"Wed, 06 Mar 2024 15:40:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"memberForAddress\": {\n                    \"__typename\": \"UserNotFoundError\",\n                    \"message\": \"The user you're looking for does not exist\"\n                }\n            }\n        }\n    }\n}"},{"id":"78c68daa-c7b0-4556-a546-6487ac1735bf","name":"Success","originalRequest":{"method":"GET","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $address: String!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... on Organization {\n        memberForAddress(address: $address) {\n            ...UserProfileResultFragment\n            __typename\n        }\n      }\n    }\n  }\n}\n\n\nfragment UserProfileResultFragment on UserProfileResult {\n    ... on UserNotFoundError {\n        __typename\n        message\n    }\n    ... on UserNotMemberOfOrganization {\n        __typename\n        message\n    }\n    ... on GeneralUser {\n        firstname: firstName\n        lastName\n        username\n        __typename\n    }\n\n    ... on Node { \n        id\n    }\n    \n    ... on OrganizationMember {\n        addresses {\n            ...AddressFragment\n        }\n    }\n    \n    ... on FullOrganizationMember {\n        addresses {\n            ...AddressFragment\n        }\n    }\n}\n\nfragment AddressFragment on Address {\n    address\n    type\n    label\n    access\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"address\": \"alexngn07+25@gmail.com\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-Id","value":"ae13efde-65c7-460a-aff1-c76a41b6e2a7"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"946"},{"key":"Date","value":"Wed, 06 Mar 2024 15:40:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"memberForAddress\": {\n                    \"firstname\": \"Test\",\n                    \"lastName\": \"Account\",\n                    \"username\": \"testacc\",\n                    \"__typename\": \"FullOrganizationMember\",\n                    \"id\": \"57104b3e-9a85-4d67-ab3a-9dcf01301d68\",\n                    \"addresses\": [\n                        {\n                            \"address\": \"test123@gmail.com\",\n                            \"type\": \"email\",\n                            \"label\": null,\n                            \"access\": \"private\"\n                        },\n                        {\n                            \"address\": \"test1231213@gmail.com\",\n                            \"type\": \"email\",\n                            \"label\": null,\n                            \"access\": \"private\"\n                        },\n                        {\n                            \"address\": \"test25@gmail.com\",\n                            \"type\": \"email\",\n                            \"label\": null,\n                            \"access\": \"public\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"01ee99bb-fecd-45cb-9116-f885b1e24e09"},{"name":"Fetch User OnCall Info","id":"daa9cc87-3b44-4847-9f75-177918b81490","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... on Organization {\n        member(id: $userId) {\n            ...UserProfileResultFragment\n            __typename\n        }\n      }\n    }\n  }\n}\n\n\nfragment UserProfileResultFragment on UserProfileResult {\n    ... on UserNotFoundError {\n        __typename\n        message\n    }\n    ... on UserNotMemberOfOrganization {\n        __typename\n        message\n    }\n    ... on GeneralUser {\n        firstname: firstName\n        lastName\n        __typename\n    }\n\n    ... on Node { \n        id\n    }\n    \n    ... on OrganizationMember {\n          workStatus {\n            value\n            alternateContact {\n                id\n                firstName\n                lastName\n            }\n            message\n        }\n        accountStatus\n         avatar {\n            url\n        }\n        role\n        statusDescription\n        statusExpiryDate\n        workStatusProxyId {\n            ... PublicUserFragment\n        }\n        addresses {\n            ...AddressFragment\n        }\n\n        __typename\n    }\n\n    ... on FullOrganizationMember {\n\n        onCallNow {\n            ...ShiftFragment\n        }\n        \n        __typename\n    }\n}\n\nfragment AddressFragment on Address {\n    address\n    type\n    access\n}\n\nfragment PublicUserFragment on PublicUser {\n    id\n    firstName\n    lastName\n}\n\nfragment ShiftFragment on Shift {\n    id\n    role {\n        id\n        name\n        department {\n            id\n            name\n        }\n    }\n}\n","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"{{userId}}\"\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-user-on-call-info\">Fetch User On-Call Info</h2>\n<p>GraphQL query for fetching a user's current on-call information</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>userId</code>(String): The ID of the user</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object containing the user's <code>onCallNow</code> information, which contains the role and department they are currently on-call for</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"c1744ee7-f0a2-431c-96c4-4399a23f514f","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n    #   ... on OrganizationalUnitNotFoundError {\n    #     message\n    #   }\n    #   ... on InvalidOrganizationScope {\n    #     message \n    #   }\n      ... on Organization {\n        member(id: $userId) {\n            ...UserProfileResultFragment\n            __typename\n        }\n      }\n    }\n  }\n}\n\n\nfragment UserProfileResultFragment on UserProfileResult {\n    ... on UserNotFoundError {\n        __typename\n        message\n    }\n    ... on UserNotMemberOfOrganization {\n        __typename\n        message\n    }\n    ... on GeneralUser {\n        firstname: firstName\n        lastName\n        __typename\n    }\n\n    ... on Node { \n        id\n    }\n    \n    ... on OrganizationMember {\n          workStatus {\n            value\n            alternateContact {\n                id\n                firstName\n                lastName\n            }\n            message\n        }\n        accountStatus\n         avatar {\n            url\n        }\n        role\n        statusDescription\n        statusExpiryDate\n        workStatusProxyId {\n            ... PublicUserFragment\n        }\n        addresses {\n            ...AddressFragment\n        }\n\n        __typename\n    }\n\n    ... on FullOrganizationMember {\n\n        onCallNow {\n            ...ShiftFragment\n        }\n        \n        __typename\n    }\n}\n\nfragment AddressFragment on Address {\n    address\n    type\n    access\n}\n\nfragment PublicUserFragment on PublicUser {\n    id\n    firstName\n    lastName\n}\n\nfragment ShiftFragment on Shift {\n    id\n    role {\n        id\n        name\n        department {\n            id\n            name\n        }\n    }\n}\n","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"b28780a6-99eb-4407-90c9-e498615b327e\"\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Mar 2024 03:34:14 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"718"},{"key":"Connection","value":"close"},{"key":"X-Request-Id","value":"9d8cc1cf-3196-43dd-9757-9b94da55d9fd"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"member\": {\n                    \"firstname\": \"Test001\",\n                    \"lastName\": \"active account\",\n                    \"__typename\": \"FullOrganizationMember\",\n                    \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                    \"onCallNow\": [\n                        {\n                            \"id\": \"22416\",\n                            \"role\": {\n                                \"id\": \"272146\",\n                                \"name\": \"testing role name\",\n                                \"department\": {\n                                    \"id\": \"1\",\n                                    \"name\": \"Engineering\"\n                                }\n                            }\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"daa9cc87-3b44-4847-9f75-177918b81490"},{"name":"Fetch Profile Fields for User","id":"31cdec2e-45db-4eda-8e05-f02c3c64b58c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... on Organization {\n        member(id: $userId) {\n            ...UserProfileResultFragment\n            __typename\n        }\n      }\n    }\n  }\n}\n\n\nfragment UserProfileResultFragment on UserProfileResult {\n    ... on UserNotFoundError {\n        __typename\n        message\n    }\n    ... on UserNotMemberOfOrganization {\n        __typename\n        message\n    }\n    ... on GeneralUser {\n        firstname: firstName\n        lastName\n        username\n        __typename\n    }\n\n    ... on Node { \n        id\n    }\n    \n    ... on OrganizationMember {\n        customFields {\n            ...ProfileSectionFragment\n        }\n    }\n\n    ... on FullOrganizationMember {\n        isDirectorySynced\n        customFields {\n            ...ProfileSectionFragment\n        }\n    }\n}\n\nfragment ProfileSectionFragment on ProfileSection {\n    id\n    sectionId\n    label\n    labelOptions\n    maxFields\n    sections {\n        id\n        label\n    }\n    fields {\n        ... on Node {\n            id\n        }\n        ...ProfileFieldFragment\n        __typename\n        ... on ProfilePhoneField {\n            phoneNumber\n            placeholder\n        }\n        ... on ProfileTextField {\n            text\n            placeholder\n        }\n        ... on ProfileDropdownField {\n            options\n            selectedOptions\n        }\n        ... on ProfileNumericField {\n            value\n        }\n        ... on ProfileLinkField {\n            url\n        }\n        ... on ProfileEmailField {\n            email\n        }\n        ... on ProfileDateField {\n            date\n        }\n    }\n    __typename\n}\n\nfragment ProfileFieldFragment on ProfileField {\n    fieldId\n    label\n    labelOptions\n    visibility\n    isSynced\n    isEditable\n    isRemovable\n    isRequired\n    validationRules {\n        regex\n    }\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"{{userId}}\"\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-user-by-id\">Fetch User by ID</h2>\n<p>GraphQL query for fetching a user's information within a given organizational unit</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>userId</code>(String): The ID of the user</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object containing your user information, including their custom profile fields based on the template set up by your organization</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"7b7ea7bd-9f38-4cf5-b74c-2ad9379cd336","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n      ... on Organization {\n        member(id: $userId) {\n            ...UserProfileResultFragment\n            __typename\n        }\n      }\n    }\n  }\n}\n\n\nfragment UserProfileResultFragment on UserProfileResult {\n    ... on UserNotFoundError {\n        __typename\n        message\n    }\n    ... on UserNotMemberOfOrganization {\n        __typename\n        message\n    }\n    ... on GeneralUser {\n        firstname: firstName\n        lastName\n        username\n        __typename\n    }\n\n    ... on Node { \n        id\n    }\n    \n    ... on OrganizationMember {\n        customFields {\n            ...ProfileSectionFragment\n        }\n    }\n\n    ... on FullOrganizationMember {\n        isDirectorySynced\n        customFields {\n            ...ProfileSectionFragment\n        }\n    }\n}\n\nfragment ProfileSectionFragment on ProfileSection {\n    id\n    sectionId\n    label\n    labelOptions\n    maxFields\n    sections {\n        id\n        label\n    }\n    fields {\n        ... on Node {\n            id\n        }\n        ...ProfileFieldFragment\n        __typename\n        ... on ProfilePhoneField {\n            phoneNumber\n            placeholder\n        }\n        ... on ProfileTextField {\n            text\n            placeholder\n        }\n        ... on ProfileDropdownField {\n            options\n            selectedOptions\n        }\n        ... on ProfileNumericField {\n            value\n        }\n        ... on ProfileLinkField {\n            url\n        }\n        ... on ProfileEmailField {\n            email\n        }\n        ... on ProfileDateField {\n            date\n        }\n    }\n    __typename\n}\n\nfragment ProfileFieldFragment on ProfileField {\n    fieldId\n    label\n    labelOptions\n    visibility\n    isSynced\n    isEditable\n    isRemovable\n    isRequired\n    validationRules {\n        regex\n    }\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"b28780a6-99eb-4407-90c9-e498615b327e\"\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Mar 2024 03:29:48 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"14501"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"b175fd02-46af-4724-bfc8-1686db90c85b"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"member\": {\n                    \"firstname\": \"Umar with pagers\",\n                    \"lastName\": \"active account\",\n                    \"username\": \"umarazhar\",\n                    \"__typename\": \"FullOrganizationMember\",\n                    \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                    \"isDirectorySynced\": false,\n                    \"customFields\": [\n                        {\n                            \"id\": \"652f51cf88b967010926736e\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [],\n                            \"maxFields\": 10,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f523f707f134cba210077\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [],\n                            \"maxFields\": 10,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f52811fd14248f5990779\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [],\n                            \"maxFields\": 10,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f52f5a74608f309a2843e\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [],\n                            \"maxFields\": 10,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f5302a7460884c4a28443\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [],\n                            \"maxFields\": 10,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f534669944711a35fc339\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [],\n                            \"maxFields\": 10,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f535169944732945fc33e\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [],\n                            \"maxFields\": 10,\n                            \"sections\": [],\n                            \"fields\": [\n                                {\n                                    \"id\": \"656fc2222d96d057bee1e2c2\",\n                                    \"fieldId\": \"field1\",\n                                    \"label\": \"Parent\",\n                                    \"labelOptions\": [\n                                        \"Wife\",\n                                        \"Brother\",\n                                        \"Sister\",\n                                        \"Parent\"\n                                    ],\n                                    \"visibility\": \"public\",\n                                    \"isSynced\": false,\n                                    \"isEditable\": true,\n                                    \"isRemovable\": true,\n                                    \"isRequired\": false,\n                                    \"validationRules\": {\n                                        \"regex\": null\n                                    },\n                                    \"__typename\": \"ProfilePhoneField\",\n                                    \"phoneNumber\": \"+12263463357\",\n                                    \"placeholder\": null\n                                }\n                            ],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f6b7d80775a52e6b15356\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [],\n                            \"maxFields\": 10,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f6c4d22344883e525072b\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f6cd9223448292e250733\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [\n                                {\n                                    \"id\": \"652fc850f553eed0e9f76820\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fc92a6f3236241add3d12\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fc9346f323660b2dd3d19\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fc9a26f32360e46dd3d20\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fca13c876994e53d8e22d\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fca749253f261bce7cf64\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fca979253f25e91e7cf6b\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fcaf99253f2b985e7cf72\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fcb259253f2cd5de7cf79\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fccc07c68de110b9c32e5\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fccfc7c68dedc199c32ec\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fcd557c68de0f9a9c32f3\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fcd8e7c68dea6209c32fa\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fce01dd6ac1779a0e6519\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fce0ddd6ac1ee7b0e6521\",\n                                    \"label\": \"Emergency Contact Information\"\n                                },\n                                {\n                                    \"id\": \"652fcedf8c4a302490129d38\",\n                                    \"label\": \"Emergency Contact Information\"\n                                }\n                            ],\n                            \"fields\": [\n                                {\n                                    \"id\": \"6531925ccedd5c33d9de63b1\",\n                                    \"fieldId\": \"field1\",\n                                    \"label\": \"Sister\",\n                                    \"labelOptions\": [\n                                        \"Wife\",\n                                        \"Brother\",\n                                        \"Sister\",\n                                        \"Parent\"\n                                    ],\n                                    \"visibility\": \"public\",\n                                    \"isSynced\": false,\n                                    \"isEditable\": true,\n                                    \"isRemovable\": true,\n                                    \"isRequired\": false,\n                                    \"validationRules\": {\n                                        \"regex\": null\n                                    },\n                                    \"__typename\": \"ProfilePhoneField\",\n                                    \"phoneNumber\": \"+16476784076\",\n                                    \"placeholder\": null\n                                }\n                            ],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f6d612234481ee325073a\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f6ddbf3766b45d0c40ae4\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f6df9f3766beb63c40aeb\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f6e45f3766b4e6bc40af2\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f6e62f3766b6b2dc40af9\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f6eadf3766b584ec40b00\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f6edef3766bf597c40b07\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"652f6f1b14a4aab823432a5e\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"6535d6edf4e31558bd23bc94\",\n                            \"sectionId\": \"section3\",\n                            \"label\": \"Personal Information\",\n                            \"labelOptions\": [\n                                \"Personal Details\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [\n                                {\n                                    \"id\": \"653dad8c0fbb85ec491c48f0\",\n                                    \"fieldId\": \"field5\",\n                                    \"label\": \"test numeric options4\",\n                                    \"labelOptions\": [\n                                        \"SSN\",\n                                        \"SIN\"\n                                    ],\n                                    \"visibility\": \"public\",\n                                    \"isSynced\": false,\n                                    \"isEditable\": true,\n                                    \"isRemovable\": true,\n                                    \"isRequired\": false,\n                                    \"validationRules\": {\n                                        \"regex\": null\n                                    },\n                                    \"__typename\": \"ProfileNumericField\",\n                                    \"value\": \"1234444668\"\n                                }\n                            ],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"6535fa5526136bfccd313e6e\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"656433cb2c0c090bd0455ad0\",\n                            \"sectionId\": \"section2\",\n                            \"label\": \"Address\",\n                            \"labelOptions\": [\n                                \"Address\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"656433e32c0c09e45e455ada\",\n                            \"sectionId\": \"section2\",\n                            \"label\": \"Address\",\n                            \"labelOptions\": [\n                                \"Address\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"65660f78a15347faa667ab47\",\n                            \"sectionId\": \"section2\",\n                            \"label\": \"Address\",\n                            \"labelOptions\": [\n                                \"Address\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"6567e9342f411f1a625a53bc\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        },\n                        {\n                            \"id\": \"6567e9af2f411f66df5a53c4\",\n                            \"sectionId\": \"section1\",\n                            \"label\": \"Emergency Contact Information\",\n                            \"labelOptions\": [\n                                \"Emergency Contact Information\"\n                            ],\n                            \"maxFields\": 4,\n                            \"sections\": [],\n                            \"fields\": [],\n                            \"__typename\": \"ProfileSection\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"31cdec2e-45db-4eda-8e05-f02c3c64b58c"},{"name":"Fetch Profile Note for User by Id","id":"5308fb0b-a977-42ea-8e75-2c78fa262f0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query profileNotesForUser($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $noteId: ID!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on OrganizationalUnitNotFoundError {\n        message\n      }\n      ... on Organization {\n        member(id: $userId) {\n          __typename\n          ... on UserNotFoundError {\n            message\n          }\n          ... on Node {\n            id\n          }\n          ... on OrganizationMember {\n            note(id: $noteId) {\n              __typename\n              ...ProfileNoteFields\n            }\n          }\n        }\n      }\n    }\n  }\n}\n\nfragment ProfileNoteFields on ProfileNote {\n  id\n  note\n  createdBy {\n    __typename\n    ...OrganizationUserResultFields\n  }\n  editedBy {\n    __typename\n    ...OrganizationUserResultFields\n  }\n  access\n  createdAt\n  updatedAt\n}\n\nfragment OrganizationUserResultFields on OrganizationUserResult {\n  __typename\n  ... on Node {\n    id\n  }\n  ... on OrganizationMember {\n    ...NamePartsUserFields\n    role\n  }\n  ... on PublicUser {\n    ...NamePartsUserFields\n  }\n}\n\nfragment NamePartsUserFields on GeneralUser {\n  firstName\n  lastName\n}\n","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n\t\"userId\": \"{{userId}}\",\n    \"noteId\": \"{{noteId}}\"\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"fetch-profile-note\">Fetch Profile Note</h2>\n<p>GraphQL query for users to fetch a specific profile note by ID for a given user</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>id</code> (String): The ID of the user</p>\n</li>\n<li><p><code>noteId</code> (String): The ID of the note</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object with the ID of the deleted note</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>AccessForbiddenError</code>: You do not have access to this note</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n<li><p><code>NoteNotFoundError</code>: The note being udpated does not exist</p>\n</li>\n<li><p><code>NoteDeletedError</code>: Cannot update archived notes</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private","schema"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"5e1a2c16-4d4b-4a18-a7ba-99bb76254b6d","name":"NoteNotFoundError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query profileNotesForUser($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $noteId: ID!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on OrganizationalUnitNotFoundError {\n        message\n      }\n      ... on Organization {\n        member(id: $userId) {\n          __typename\n          ... on UserNotFoundError {\n            message\n          }\n          ... on Node {\n            id\n          }\n          ... on OrganizationMember {\n            note(id: $noteId) {\n              __typename\n              ...ProfileNoteFields\n            }\n          }\n        }\n      }\n    }\n  }\n}\n\nfragment ProfileNoteFields on ProfileNote {\n  id\n  note\n  createdBy {\n    __typename\n    ...OrganizationUserResultFields\n  }\n  editedBy {\n    __typename\n    ...OrganizationUserResultFields\n  }\n  access\n  createdAt\n  updatedAt\n}\n\nfragment OrganizationUserResultFields on OrganizationUserResult {\n  __typename\n  ... on Node {\n    id\n  }\n  ... on OrganizationMember {\n    ...NamePartsUserFields\n    role\n  }\n  ... on PublicUser {\n    ...NamePartsUserFields\n  }\n}\n\nfragment NamePartsUserFields on GeneralUser {\n  username\n  firstName\n  lastName\n}\n","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n\t\"userId\": \"77476b67-23d8-466e-8606-719e6efa28e1\",\n    \"noteId\": \"63bdd8ce1d7c2c3a32a37216\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"344"},{"key":"Date","value":"Mon, 27 Mar 2023 22:07:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"member\": {\n                    \"__typename\": \"OrganizationMember\",\n                    \"id\": \"77476b67-23d8-466e-8606-719e6efa28e1\",\n                    \"note\": {\n                        \"__typename\": \"NoteNotFoundError\"\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"f3150c35-a339-4b7e-ad14-531a47e75451","name":"Fetch Profile Note for User by Id","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query profileNotesForUser($organizationalUnit: OrganizationalUnitInput!, $userId: ID!, $noteId: ID!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on OrganizationalUnitNotFoundError {\n        message\n      }\n      ... on Organization {\n        member(id: $userId) {\n          __typename\n          ... on UserNotFoundError {\n            message\n          }\n          ... on Node {\n            id\n          }\n          ... on OrganizationMember {\n            note(id: $noteId) {\n              __typename\n              ...ProfileNoteFields\n            }\n          }\n        }\n      }\n    }\n  }\n}\n\nfragment ProfileNoteFields on ProfileNote {\n  id\n  note\n  createdBy {\n    __typename\n    ...OrganizationUserResultFields\n  }\n  editedBy {\n    __typename\n    ...OrganizationUserResultFields\n  }\n  access\n  createdAt\n  updatedAt\n}\n\nfragment OrganizationUserResultFields on OrganizationUserResult {\n  __typename\n  ... on Node {\n    id\n  }\n  ... on OrganizationMember {\n    ...NamePartsUserFields\n    role\n  }\n  ... on PublicUser {\n    ...NamePartsUserFields\n  }\n}\n\nfragment NamePartsUserFields on GeneralUser {\n  username\n  firstName\n  lastName\n}\n","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n\t\"userId\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n    \"noteId\": \"642215a7ee6d3469c206ea28\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"944"},{"key":"Date","value":"Mon, 27 Mar 2023 22:16:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"member\": {\n                    \"__typename\": \"OrganizationMember\",\n                    \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                    \"note\": {\n                        \"__typename\": \"ProfileNote\",\n                        \"id\": \"642215a7ee6d3469c206ea28\",\n                        \"note\": \"test note test note test note test note test note test note test note test note\",\n                        \"createdBy\": {\n                            \"__typename\": \"OrganizationMember\",\n                            \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                            \"username\": \"umarazhar\",\n                            \"firstName\": \"Umar\",\n                            \"lastName\": \"Azhar\",\n                            \"role\": \"CTO\"\n                        },\n                        \"editedBy\": null,\n                        \"access\": \"public\",\n                        \"createdAt\": \"2023-03-27T22:16:07.392Z\",\n                        \"updatedAt\": \"2023-03-27T22:16:07.392Z\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"5308fb0b-a977-42ea-8e75-2c78fa262f0d"},{"name":"Fetch Public Profile Notes For User","id":"00d152ed-16fc-46be-8097-51f1a32397d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query profileNotesForUser($organizationalUnit: OrganizationalUnitInput!, $userId: ID!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on OrganizationalUnitNotFoundError {\n        message\n      }\n      ... on Organization {\n        member(id: $userId) {\n          __typename\n          ... on UserNotFoundError {\n            message\n          }\n          ... on Node {\n            id\n          }\n          ... on OrganizationMember {\n            notes {\n                note \n                id\n              __typename\n              ...ProfileNoteFields\n            }\n          }\n             ... on FullOrganizationMemberOrganizationMember {\n            notes {\n                note \n                id\n              __typename\n              ...ProfileNoteFields\n            }\n          }\n        }\n      }\n    }\n  }\n}\n\nfragment ProfileNoteFields on ProfileNote {\n  id\n  note\n  createdBy {\n    __typename\n    ...OrganizationUserResultFields\n  }\n  editedBy {\n    __typename\n    ...OrganizationUserResultFields\n  }\n  access\n  createdAt\n  updatedAt\n}\n\nfragment OrganizationUserResultFields on OrganizationUserResult {\n  __typename\n  ... on Node {\n    id\n  }\n  ... on OrganizationMember {\n    ...NamePartsUserFields\n    role\n  }\n  ... on PublicUser {\n    ...NamePartsUserFields\n  }\n}\n\nfragment NamePartsUserFields on GeneralUser {\n  username\n  firstName\n  lastName\n}\n","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"{{userId}}\"\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"fetch-publicprofile-note-for-user\">Fetch PublicProfile Note for User</h2>\n<p>GraphQL query for users to fetch all public profile note for a given user. Non-admin users will only have access to public notes on another user's profile.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>id</code> (String): The ID of the user</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An array of note objects, or an empty array if no notes exists</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n<li><p><code>UserNotFound</code>: The given user ID does not corespond to any users in the organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private","schema"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"96a39d89-023b-4266-a654-5100d9521506","name":"profileNotesForUser - organization","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query profileNotesForUser($orgUnit: OrganizationalUnitInput!, $userId: ID!) {\n  organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $orgUnit) {\n      __typename\n      ... on OrganizationalUnitNotFoundError {\n        message\n      }\n      ... on Organization {\n        member(id: $userId) {\n          __typename\n          ... on UserNotFoundError {\n            message\n          }\n          ... on Node {\n            id\n          }\n          ... on OrganizationMember {\n            notes {\n              __typename\n              ...ProfileNoteFields\n            }\n          }\n        }\n      }\n    }\n  }\n}\n\nfragment ProfileNoteFields on ProfileNote {\n  id\n  note\n  createdBy {\n    __typename\n    ...OrganizationUserResultFields\n  }\n  editedBy {\n    __typename\n    ...OrganizationUserResultFields\n  }\n  access\n  createdAt\n  updatedAt\n}\n\nfragment OrganizationUserResultFields on OrganizationUserResult {\n  __typename\n  ... on Node {\n    id\n  }\n  ... on OrganizationMember {\n    ...NamePartsUserFields\n    role\n  }\n  ... on PublicUser {\n    ...NamePartsUserFields\n  }\n}\n\nfragment NamePartsUserFields on GeneralUser {\n  username\n  firstName\n  lastName\n}\n","variables":"{\n\t\"orgUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"organization\"\n\t},\n    \"userId\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1003"},{"key":"Date","value":"Wed, 22 Mar 2023 20:08:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"member\": {\n                    \"__typename\": \"OrganizationMember\",\n                    \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                    \"notes\": [\n                        {\n                            \"__typename\": \"ProfileNote\",\n                            \"id\": \"6411dd188f455af483d1017e\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"createdBy\": {\n                                \"__typename\": \"OrganizationMember\",\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Azhar\",\n                                \"role\": \"CTO\"\n                            },\n                            \"editedBy\": null,\n                            \"access\": \"public\",\n                            \"createdAt\": \"2023-03-15T14:58:32.883Z\",\n                            \"updatedAt\": \"2023-03-15T14:58:32.883Z\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"00d152ed-16fc-46be-8097-51f1a32397d2"}],"id":"67da69ec-1489-4970-bd8a-7e9f5fe1dbdc","description":"<p>This section contains functionalities accessable to all users with and without administrator privileges.</p>\n","_postman_id":"67da69ec-1489-4970-bd8a-7e9f5fe1dbdc","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Self","item":[{"name":"Address","item":[{"name":"Add Address","id":"79529449-2e6a-4d93-b088-c9efd72588a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation AddAddress($challengeId: String!, $addressDetails: AddressDetails!) {\n    selfMutation {\n        addAddress(challengeId: $challengeId, details: $addressDetails) {\n            __typename\n            ... on Address {\n                address\n                type\n                label\n                access\n                id\n                ordinal\n            }\n            ... on DomainBoundAddress {\n                organization {\n                    id\n                    name\n                }\n                domain\n            }\n            ... on InvalidAddressLabel {\n                message\n            }\n            ... on ChallengeNotFound {\n                message\n            }\n            ... on ChallengeNotCompleted {\n                message\n            }\n            ... on ChallengeFailed {\n                message\n            }\n            ... on AddressInUse {\n                message\n            }\n            ... on DuplicateAddresses {\n                message\n            }\n        }\n    }\n}","variables":"{\n    \"challengeId\": {{challengeId}},\n    \"addressDetails\": {\n        \"label\": null,\n        \"access\": \"public\"\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"add-address\">Add Address</h2>\n<p>GraphQL mutation for a user to add an address to their own profile. The user first have to successfully verify their ownership of the address, which will then provide them with a <code>challengeId</code> associated with the now verified address.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>challengeId</code> (String): Obtained after successfully verifying ownership of the address</p>\n</li>\n<li><p><code>addressDetails</code> (Object):</p>\n<ul>\n<li><p><code>label</code> (String, optional): The new address label (e.g. \"work\", \"home\", etc, as determined by your organization)</p>\n</li>\n<li><p><code>access</code> (String, optional): The access type of the address. Public addresses can be viewed by all members of the organization, private addresses are visiable to the admin only (e.g. \"public\", \"private\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the newly added address</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>ChallengeNotFound</code>: Invalid <code>challengeId</code></p>\n</li>\n<li><p><code>ChallengeFailed</code>: Address verification failed</p>\n</li>\n<li><p><code>ChallengeNotCompleted</code>: Address verification process not completed</p>\n</li>\n<li><p><code>AddressInUse</code>: The address is already associated with an existing user in the organization</p>\n</li>\n<li><p><code>DuplicateAddresses</code>: The address is already associated with the user</p>\n</li>\n<li><p><code>InvalidAddressLabel</code>: Invalid address label given</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"5c370823-3c4f-49ad-8878-42ac93e9b710","name":"Add Address","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation AddAddress($challengeId: String!, $addressDetails: AddressDetails!) {\n    selfMutation {\n        addAddress(challengeId: $challengeId, details: $addressDetails) {\n            __typename\n            ... on Address {\n                address\n                label\n                access\n                id\n                type\n                ordinal\n            }\n            ... on InvalidAddressLabel {\n                message\n            }\n            ... on ChallengeNotFound {\n                message\n            }\n            ... on ChallengeNotCompleted {\n                message\n            }\n            ... on ChallengeFailed {\n                message\n            }\n            ... on AddressInUse {\n                message\n            }\n            ... on DuplicateAddresses {\n                message\n            }\n        }\n    }\n}","variables":"{\n    \"challengeId\": \"3b45f863-e441-43cf-b09f-b1eddf27119a\",\n    \"addressDetails\": {\n        \"label\": null,\n        \"access\": \"public\"\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 09 Jul 2024 18:42:01 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"339"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"d74dc955-a52c-48c3-bf69-6036782ba2fe"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"addAddress\": {\n                \"__typename\": \"Address\",\n                \"address\": \"email23423432322100110@gmail.com\",\n                \"label\": null,\n                \"access\": \"public\",\n                \"id\": \"bXR0LmhuZysyMzQyMzQzMjMyMjEwMDExMEBnbWFpbC5jb20=\",\n                \"type\": \"email\",\n                \"ordinal\": \"primary\"\n            }\n        }\n    }\n}"},{"id":"842dfd64-3892-436b-8762-6fb8074646ef","name":"Challenge Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation AddAddress($challengeId: String!, $addressDetails: AddressDetails!) {\n    selfMutation {\n        addAddress(challengeId: $challengeId, details: $addressDetails) {\n            __typename\n            ... on Address {\n                address\n                label\n                access\n            }\n            ... on InvalidAddressLabel {\n                message\n            }\n            ... on ChallengeNotFound {\n                message\n            }\n            ... on ChallengeFailed {\n                message\n            }\n            ... on AddressInUse {\n                message\n            }\n            ... on DuplicateAddresses {\n                message\n            }\n        }\n    }\n}","variables":"{\n    \"challengeId\": \"5589ba43-e6da-4890-8786-c123b52558df\",\n    \"addressDetails\": {\n        \n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"9375a11d-120e-4002-b102-7a470d4bdba6"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"161"},{"key":"Date","value":"Mon, 29 Apr 2024 17:32:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"addAddress\": {\n                \"__typename\": \"ChallengeNotFound\",\n                \"message\": \"Challenge not found\"\n            }\n        }\n    }\n}"},{"id":"0da97b3b-993e-4ab3-9884-757c33e9c13e","name":"Challenge Not Completed","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation AddAddress($challengeId: String!, $addressDetails: AddressDetails!) {\n    selfMutation {\n        addAddress(challengeId: $challengeId, details: $addressDetails) {\n            __typename\n            ... on Address {\n                address\n                label\n                access\n            }\n            ... on InvalidAddressLabel {\n                message\n            }\n            ... on ChallengeNotFound {\n                message\n            }\n            ... on ChallengeNotCompleted {\n                message\n            }\n            ... on ChallengeFailed {\n                message\n            }\n            ... on AddressInUse {\n                message\n            }\n            ... on DuplicateAddresses {\n                message\n            }\n        }\n    }\n}","variables":"{\n    \"challengeId\": \"bed04748-0b0c-4eff-86b8-608cbe8259c1\",\n    \"addressDetails\": {\n        \n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"318968e3-ee03-48fc-bdca-eda9eba700f1"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"169"},{"key":"Date","value":"Mon, 29 Apr 2024 17:36:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"addAddress\": {\n                \"__typename\": \"ChallengeNotCompleted\",\n                \"message\": \"Challenge not completed\"\n            }\n        }\n    }\n}"},{"id":"22070396-f1b4-497e-aa66-e7446d42a819","name":"Challenge Failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation AddAddress($challengeId: String!, $addressDetails: AddressDetails!) {\n    selfMutation {\n        addAddress(challengeId: $challengeId, details: $addressDetails) {\n            __typename\n            ... on Address {\n                address\n                label\n                access\n            }\n            ... on InvalidAddressLabel {\n                message\n            }\n            ... on ChallengeNotFound {\n                message\n            }\n            ... on ChallengeNotCompleted {\n                message\n            }\n            ... on ChallengeFailed {\n                message\n            }\n            ... on AddressInUse {\n                message\n            }\n            ... on DuplicateAddresses {\n                message\n            }\n        }\n    }\n}","variables":"{\n    \"challengeId\": \"bed04748-0b0c-4eff-86b8-608cbe8259c1\",\n    \"addressDetails\": {\n        \n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"a73318e0-9747-4282-a7ed-049fedacf9b0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"156"},{"key":"Date","value":"Mon, 29 Apr 2024 17:36:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"addAddress\": {\n                \"__typename\": \"ChallengeFailed\",\n                \"message\": \"Challenge failed\"\n            }\n        }\n    }\n}"},{"id":"0d8260c9-66c3-4390-9e67-cf55b0468362","name":"Address in use error","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation AddAddress($challengeId: String!, $addressDetails: AddressDetails!) {\n    selfMutation {\n        addAddress(challengeId: $challengeId, details: $addressDetails) {\n            __typename\n            ... on Address {\n                address\n                type\n                label\n                access\n                id\n                ordinal\n            }\n            ... on DomainBoundAddress {\n                organization {\n                    id\n                    name\n                }\n                domain\n            }\n            ... on InvalidAddressLabel {\n                message\n            }\n            ... on ChallengeNotFound {\n                message\n            }\n            ... on ChallengeNotCompleted {\n                message\n            }\n            ... on ChallengeFailed {\n                message\n            }\n            ... on AddressInUse {\n                message\n            }\n            ... on DuplicateAddresses {\n                message\n            }\n        }\n    }\n}","variables":"{\n    \"challengeId\": \"4ffd6d76-c222-44be-9b0c-a604db999a48\",\n    \"addressDetails\": {\n        \"label\": null,\n        \"access\": \"public\"\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"ea443310-89a9-481f-9cc5-c69fbc3dc440"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"197"},{"key":"Date","value":"Thu, 05 Dec 2024 23:06:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"addAddress\": {\n                \"__typename\": \"AddressInUse\",\n                \"message\": \"testdec05404@gmail.com is linked with another user\"\n            }\n        }\n    }\n}"}],"_postman_id":"79529449-2e6a-4d93-b088-c9efd72588a9"},{"name":"Remove Address","id":"afc0bce5-d897-4f8f-9e5b-bbe4859354d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation RemoveAddress($address: String!) {\n    selfMutation {\n        address(address: $address) {\n            __typename\n            ... on AddressMutation {\n                remove {\n                    ... on OrganizationMember {\n                        id\n                        firstName\n                        lastName\n                        address {\n                            id\n                            address\n                            type\n                            label\n                            access\n                        }\n                    }\n                }\n            }\n            ... on AddressNotFound {\n                message\n            }\n        }\n    }\n}","variables":"{\n    \"address\": {{address}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"remove-address\">Remove Address</h2>\n<p>GraphQL mutation for a user to remove an address from their own profile.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>address</code> (String): The address to be removed</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the updated user</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>AddressNotFound</code>: The address being removed is not found</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"fd4fca56-cd0b-45c9-8a3b-1e6c4f91763e","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation RemoveAddress($address: String!) {\n    selfMutation {\n        address(address: $address) {\n            __typename\n            ... on AddressMutation {\n                remove {\n                    ... on OrganizationMember {\n                        id\n                    }\n                }\n            }\n            ... on AddressNotFound {\n                message\n            }\n        }\n    }\n}","variables":"{\n    \"address\": \"test003@gmail.com\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"860a86a2-8f93-4a3e-8795-1172a6305561"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"200"},{"key":"Date","value":"Mon, 18 Nov 2024 19:12:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"address\": {\n                \"__typename\": \"AddressMutation\",\n                \"remove\": {\n                    \"id\": \"4c0d62e8-2872-49c7-a99f-c2ff07a1a82d\"\n                }\n            }\n        }\n    }\n}"},{"id":"25818454-73f5-45c4-8f4e-c73870ff1495","name":"address not found","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation RemoveAddress($address: String!) {\n    selfMutation {\n        address(address: $address) {\n            __typename\n            ... on AddressMutation {\n                remove {\n                    ... on OrganizationMember {\n                        id\n                    }\n                }\n            }\n            ... on AddressNotFound {\n                message\n            }\n        }\n    }\n}","variables":"{\n    \"address\": \"test003@gmail.com\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"39944b65-bbd4-4ac6-81ea-ec132373d49d"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"165"},{"key":"Date","value":"Mon, 18 Nov 2024 19:12:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"address\": {\n                \"__typename\": \"AddressNotFound\",\n                \"message\": \"Address not found for member\"\n            }\n        }\n    }\n}"}],"_postman_id":"afc0bce5-d897-4f8f-9e5b-bbe4859354d4"},{"name":"Update Address Label","id":"723c8c55-3fc8-49fa-8190-090952b3863c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateAddressLabel($address: String!, $label: AddressLabel) {\n    selfMutation {\n        address(address: $address) {\n            ... on AddressNotFound {\n                message\n            }\n            ... on AddressMutation {\n                updateLabel(label: $label) {\n                    __typename\n                    ... on Address { ...AddressFragment }\n                }\n            }\n        }\n    }\n}\n\nfragment AddressFragment on Address {\n  __typename\n  id\n  address\n  type\n  access\n  label\n}\n\n    \n\n","variables":"{\n   \"address\": {{address}},\n   \"label\": \"Work\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"update-address-label\">Update Address Label</h2>\n<p>GraphQL mutation for a user to update the label for a specific address</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>address</code> (String): The address to be updated</p>\n</li>\n<li><p><code>label</code> (String): The new address label (e.g. \"work\", \"home\", etc, as determined by your organization)</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object of the newly updated address</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>AddressNotFound</code>: Cannot find the given address for user</p>\n</li>\n<li><p><code>InvalidAddressLabel</code>: Invalid label passed in</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"680bdceb-e76e-4f8a-a8cd-33777d717df7","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateAddressLabel($address: String!, $label: AddressLabel) {\n    selfMutation {\n        address(address: $address) {\n            ... on AddressNotFound {\n                message\n            }\n            ... on AddressMutation {\n                updateLabel(label: $label) {\n                    __typename\n                    ... on Address { ...AddressFragment }\n                }\n            }\n        }\n    }\n}\n\nfragment AddressFragment on Address {\n  __typename\n  id\n  address\n  type\n  access\n  label\n}\n\n    \n\n","variables":"{\n   \"address\":\"mosusieyu+accountcreation1231129@gmail.com\",\n   \"label\": \"Work\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"9aa2c183-489c-4f51-8558-868f09add2d9"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"370"},{"key":"Date","value":"Thu, 05 Dec 2024 16:20:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"address\": {\n                \"updateLabel\": {\n                    \"__typename\": \"Address\",\n                    \"id\": \"bW9zdXNpZXl1K2FjY291bnRjcmVhdGlvbjEyMzExMjlAZ21haWwuY29t\",\n                    \"address\": \"mosusieyu+accountcreation1231129@gmail.com\",\n                    \"type\": \"email\",\n                    \"access\": \"public\",\n                    \"label\": \"Work\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"723c8c55-3fc8-49fa-8190-090952b3863c"},{"name":"Update Address Access","id":"e0d634e0-a688-4967-967d-e04f018ec7a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateAddressAccess($address: String!, $access: AccessType!) {\n    selfMutation {\n        address(address: $address) {\n            ... on AddressNotFound {\n                message\n            }\n            ... on AddressMutation {\n                updateAccess(access: $access) {\n                    __typename\n                    ... on Address { ...AddressFragment }\n                }\n            }\n        }\n    }\n}\n\nfragment AddressFragment on Address {\n  __typename\n  id\n  address\n  type\n  access\n  label\n}\n\n    \n\n","variables":"{\n   \"address\": {{address}},\n   \"access\": \"private\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"update-address-access\">Update Address Access</h2>\n<p>GraphQL mutation for a user to update the access for a specific address</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>address</code> (String): The address to be updated</p>\n</li>\n<li><p><code>access</code> (String, optional): The access type of the address. Public addresses can be viewed by all members of the organization, private addresses are visiable to the admin only (e.g. \"public\", \"private\")</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object of the newly updated address</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>AddressNotFound</code>: Cannot find the given address for user</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"6246424e-f4d7-45a2-a9a6-afe33e22d26c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateAddressAccess($address: String!, $access: AccessType!) {\n    selfMutation {\n        address(address: $address) {\n            ... on AddressNotFound {\n                message\n            }\n            ... on AddressMutation {\n                updateAccess(access: $access) {\n                    __typename\n                    ... on Address { ...AddressFragment }\n                }\n            }\n        }\n    }\n}\n\nfragment AddressFragment on Address {\n  __typename\n  id\n  address\n  type\n  access\n  label\n}\n\n    \n\n","variables":"{\n   \"address\":\"mosusieyu+accountcreation1231129@gmail.com\",\n   \"access\": \"private\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"a1296b9a-5f96-4aba-97d4-668b5b94cc6d"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"372"},{"key":"Date","value":"Thu, 05 Dec 2024 16:24:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"address\": {\n                \"updateAccess\": {\n                    \"__typename\": \"Address\",\n                    \"id\": \"bW9zdXNpZXl1K2FjY291bnRjcmVhdGlvbjEyMzExMjlAZ21haWwuY29t\",\n                    \"address\": \"mosusieyu+accountcreation1231129@gmail.com\",\n                    \"type\": \"email\",\n                    \"access\": \"private\",\n                    \"label\": \"Work\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"e0d634e0-a688-4967-967d-e04f018ec7a7"},{"name":"Update Address Order Preference","id":"1981d804-3601-4f69-9946-97ba8b2fdbde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateAddressPreference($address: [String]!) {\n    selfMutation {\n        updateAddressPreference(address: $address) {\n            __typename\n             ...SetAddressOrderResultFields\n        }\n    }\n}\n\nfragment SetAddressOrderResultFields on UpdateAddressPreferenceResult {\n  __typename\n  ... on FullOrganizationMember {\n    addresses {\n      ...AddressFields\n    }\n  }\n  ... on InvalidAddressUpdateRequest {\n    message\n  }\n  ... on DuplicateAddresses {\n    message\n  }\n  ... on UnverifiedAddress {\n    message\n  }\n  ... on InvalidAddressCount {\n    message\n  }\n}\n\nfragment AddressFields on Address {\n  __typename\n  id\n  address\n  type\n  access\n}\n\n    \n\n","variables":"{\n   \"address\":[\n     \"test002@gmail.com\",\n     \"test001@gmail.com\"\n   ]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"update-address-order\">Update Address Order</h2>\n<p>GraphQL mutation to update the ordering of the addresses as they are shown on the user's profile</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>address</code> ([String]): An array of addresses in the order to be displayed on the user's profile</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the updated user and addresses</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>InvalidAddressUpdateRequest</code>: The request is invalid or misformed</p>\n</li>\n<li><p><code>DuplicateAddresses</code>: One or more of the inputted address is a duplicate</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"5a480622-0db1-42e0-b861-2f6cc73d43a9","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateAddressPreference($address: [String]!) {\n    selfMutation {\n        updateAddressPreference(address: $address) {\n            __typename\n             ...SetAddressOrderResultFields\n        }\n    }\n}\n\nfragment SetAddressOrderResultFields on UpdateAddressPreferenceResult {\n  __typename\n  ... on FullOrganizationMember {\n    addresses {\n      ...AddressFields\n    }\n  }\n  ... on InvalidAddressUpdateRequest {\n    message\n  }\n  ... on DuplicateAddresses {\n    message\n  }\n  ... on UnverifiedAddress {\n    message\n  }\n  ... on InvalidAddressCount {\n    message\n  }\n}\n\nfragment AddressFields on Address {\n  __typename\n  id\n  address\n  type\n  access\n}\n\n    \n\n","variables":"{\n\"address\":[\n\"+16471814434\",\n\"bilal.sohail+multi_org@acmeteachinghospital.com\",\n\"bilal.sohail@hypercare.com\"\n]\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"94b4b30f-236f-45ca-8a41-e066873a697f"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"890"},{"key":"Date","value":"Sat, 07 Dec 2024 00:17:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"updateAddressPreference\": {\n                \"__typename\": \"FullOrganizationMember\",\n                \"addresses\": [\n                    {\n                        \"__typename\": \"Address\",\n                        \"id\": \"KzE2NDcxODE0NDM0\",\n                        \"address\": \"+16471814434\",\n                        \"type\": \"phoneNumber\",\n                        \"access\": \"public\"\n                    },\n                    {\n                        \"__typename\": \"Address\",\n                        \"id\": \"YmlsYWwuc29oYWlsK211bHRpX29yZ0BhY21ldGVhY2hpbmdob3NwaXRhbC5jb20=\",\n                        \"address\": \"bilal.sohail+multi_org@acmeteachinghospital.com\",\n                        \"type\": \"email\",\n                        \"access\": \"public\"\n                    },\n                    {\n                        \"__typename\": \"Address\",\n                        \"id\": \"YmlsYWwuc29oYWlsQGh5cGVyY2FyZS5jb20=\",\n                        \"address\": \"bilal.sohail@hypercare.com\",\n                        \"type\": \"email\",\n                        \"access\": \"public\"\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"1981d804-3601-4f69-9946-97ba8b2fdbde"},{"name":"Add Unverified Address","id":"8c62f1e6-8735-4a45-b882-a10c45356334","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation AddUnverifiedAddress($details: UnverifiedAddressDetails!) {\n    selfMutation {\n        addUnverifiedAddress(details: $details) {\n            ... on InvalidAddress {\n                __typename\n                message\n            }\n            ... on AddressInUse {\n                __typename\n                message\n            }\n            ... on Address {\n                __typename\n                id\n                address\n                type\n            }\n        }\n    }\n}","variables":"{\n    \"details\": {\n        \"address\": {{unverifiedAddress}},\n        \"type\": \"email\"\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"add-unverified-address\">Add Unverified Address</h2>\n<p>GraphQL mutation for adding an unverified address to the user's profile. Unverified address will not be displayed on their profile, and currently cannot be interacted with.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"2cba6ba1-869c-4921-8d0f-c7a06a30e586","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation AddUnverifiedAddress($details: UnverifiedAddressDetails!) {\n    selfMutation {\n        addUnverifiedAddress(details: $details) {\n            ... on InvalidAddress {\n                __typename\n                message\n            }\n            ... on AddressInUse {\n                __typename\n                message\n            }\n            ... on Address {\n                __typename\n                id\n                address\n                type\n            }\n        }\n    }\n}","variables":"{\n    \"details\": {\n        \"address\": \"testaddunverified001@gmail.com\",\n        \"type\": \"email\"\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"9eb3faa1-28fc-485e-a8ed-d43eebbe5266"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"281"},{"key":"Date","value":"Mon, 23 Sep 2024 18:45:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"addUnverifiedAddress\": {\n                \"__typename\": \"Address\",\n                \"id\": \"bW9zdXNpZXl1K3Rlc3RhZGR1bnZlcmlmaWVkMDAxQGdtYWlsLmNvbQ==\",\n                \"address\": \"testaddunverified001@gmail.com\",\n                \"type\": \"email\"\n            }\n        }\n    }\n}"}],"_postman_id":"8c62f1e6-8735-4a45-b882-a10c45356334"}],"id":"0b4a6559-a435-4e26-a271-d20903ada864","_postman_id":"0b4a6559-a435-4e26-a271-d20903ada864","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Session","item":[{"name":"Remove Session by ID","id":"af81ced3-7a5d-4e96-b3e8-e1025328226f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation SessionMutationResult ($sessionId: ID!) {\n    selfMutation {\n        session(id: $sessionId) {\n            ... on SessionNotFound {\n                __typename\n                message\n            }\n            ... on SessionMutation {\n                remove {\n                    ... on FullOrganizationMember {\n                        id\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"sessionId\": {{sessionId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"remove-session-by-id\">Remove Session by ID</h2>\n<p>GraphQL mutation for a user to remove a session by ID</p>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>SessionNotFound</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"a1bbf429-56b9-47a5-bb7e-4c7f62f767b0","name":"Successful removal","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation SessionMutationResult ($sessionId: ID!) {\n    selfMutation {\n        session(id: $sessionId) {\n            ... on SessionNotFound {\n                __typename\n                message\n            }\n            ... on SessionMutation {\n                remove {\n                    ... on FullOrganizationMember {\n                        id\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"sessionId\": \"41d01cb0-5676-429a-8c66-d583e93ec716\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"aa7ae70f-68a7-4f49-8ea5-1ae52d85cd2e"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"159"},{"key":"Date","value":"Thu, 05 Dec 2024 21:07:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"session\": {\n                \"remove\": {\n                    \"id\": \"77476b67-23d8-466e-8606-719e6efa28e1\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"af81ced3-7a5d-4e96-b3e8-e1025328226f"}],"id":"6cafdbde-1667-48f4-9018-9207017876e1","_postman_id":"6cafdbde-1667-48f4-9018-9207017876e1","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Profile Notes","item":[{"name":"Create Self Profile Note","id":"02620995-a19d-4c9f-b1ea-925a2cc04d90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($details: CreateHiddenNoteDetails!) {\n    selfMutation {\n        createNote(details: $details) {\n            __typename\n            ... on ProfileNote {\n                id\n                access\n                note\n                createdAt\n                updatedAt\n            }\n            ... on ExceedMaxNoteCountError {\n                message\n            }\n            ... on ExceedMaxWordCountError {\n                message\n                maxCount\n            }\n        }\n    }\n}","variables":"{\n\t\"details\": {\n\t\t\"note\": \"test note test note test note test note test note test note test note test note\",\n\t\t\"access\": \"public\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"create-profile-note-self\">Create Profile Note (Self)</h2>\n<p>GraphQL mutation for users to create a new profile note on their own profile</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>details</code> (Object):</p>\n<ul>\n<li><p><code>note</code> (String)</p>\n</li>\n<li><p><code>access</code>(String): The visiability of the note, where public is viewable by anyone in the organization, and private is only visiable to admins and the user themselves (e.g. \"public\", \"private\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the newly created note</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>ExceedMaxNoteCountError</code>: A user can have maximum number of 25 notes</p>\n</li>\n<li><p><code>ExceedMaxWordCountError</code>: A note cannot be more than 1000 characters long</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"e97b3e37-30ba-4bd0-bd2c-e57caf7b849a","name":"Exceed Max Word Count Error","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation CreatePersonalNote($details: CreateHiddenNoteDetails!) {\n    selfMutation {\n        createNote(details: $details) {\n            ... on PersonalNote {\n                __typename\n                id\n            }\n            ... on ExceedMaxNoteCountError {\n                __typename\n                message\n            }\n            ... on ExceedMaxWordCountError {\n                __typename\n                message\n                maxCount\n            }\n            ... on AccessForbiddenError {\n                __typename\n                message\n            }\n        }\n    }\n}","variables":"{\n\t\"details\": {\n\t\t\"note\": \"test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note test note \",\n\t\t\"access\": \"public\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"230"},{"key":"Date","value":"Thu, 08 Dec 2022 21:49:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"createNote\": {\n                \"__typename\": \"ExceedMaxWordCountError\",\n                \"message\": \"Input note length of 3920 exceeds allowed max word count\",\n                \"maxCount\": 1000\n            }\n        }\n    }\n}"},{"id":"fde201ac-299c-4f48-8b73-aad84dd2956f","name":"Exceed Max Note Count Error","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreatePersonalNote($details: CreateHiddenNoteDetails!) {\n    selfMutation {\n        createNote(details: $details) {\n            ... on PersonalNote {\n                __typename\n                id\n                access\n                note\n            }\n            ... on ExceedMaxNoteCountError {\n                __typename\n                message\n            }\n            ... on ExceedMaxWordCountError {\n                __typename\n                message\n                maxCount\n            }\n        }\n    }\n}","variables":"{\n\t\"details\": {\n\t\t\"note\": \"test note test note test note test note test note test note test note test note\",\n\t\t\"access\": \"public\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"191"},{"key":"Date","value":"Mon, 19 Dec 2022 18:18:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"createNote\": {\n                \"__typename\": \"ExceedMaxNoteCountError\",\n                \"message\": \"User has a max of 25 notes for this profile\"\n            }\n        }\n    }\n}"},{"id":"c95acbd3-4f9c-463f-9414-24d0d226650f","name":"Create Self Profile Note","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateProfileNote($details: CreateHiddenNoteDetails!) {\n    selfMutation {\n        createNote(details: $details) {\n            ... on ProfileNote {\n                __typename\n                id\n                access\n                note\n            }\n            ... on ExceedMaxNoteCountError {\n                __typename\n                message\n            }\n            ... on ExceedMaxWordCountError {\n                __typename\n                message\n                maxCount\n            }\n        }\n    }\n}","variables":"{\n\t\"details\": {\n\t\t\"note\": \"test note test note test note test note test note test note test note test note\",\n\t\t\"access\": \"public\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"282"},{"key":"Date","value":"Tue, 10 Jan 2023 21:51:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"createNote\": {\n                \"__typename\": \"ProfileNote\",\n                \"id\": \"63bdddc6772b8a3c2c136fb6\",\n                \"access\": \"public\",\n                \"note\": \"test note test note test note test note test note test note test note test note\"\n            }\n        }\n    }\n}"}],"_postman_id":"02620995-a19d-4c9f-b1ea-925a2cc04d90"},{"name":"Update Self Profile Note","id":"46d037b6-436d-46f5-97ec-601662676f53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateProfileNote($id: ID!, $details: UpdateHiddenNoteDetails!) {\n    selfMutation {\n        note(id: $id) {\n             __typename\n            ... on AccessForbiddenError {\n                __typename\n                message\n            }\n            ... on NoteNotFoundError {\n                __typename\n                message\n            }\n            ... on NoteDeletedError {\n                __typename\n                message\n            }\n            ... on ProfileNoteMutation {\n                update(details: $details) {\n                    ... on ProfileNote {\n                        __typename\n                        id\n                        note\n                        access\n                        createdAt \n                        updatedAt\n                        editedBy {\n                            __typename\n                            ...OrganizationUserResultFields\n                        }\n                        createdBy {\n                            __typename\n                            ...OrganizationUserResultFields\n                        }\n                    }\n                    ... on ExceedMaxWordCountError {\n                        __typename\n                        message\n                        maxCount\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment OrganizationUserResultFields on OrganizationUserResult {\n  __typename\n  ... on Node {\n    id\n  }\n  ... on OrganizationMember {\n    ...NamePartsUserFields\n    role\n  }\n  ... on PublicUser {\n    ...NamePartsUserFields\n  }\n}\n\nfragment NamePartsUserFields on GeneralUser {\n  username\n  firstName\n  lastName\n}\n","variables":"{\n    \"id\": \"64a8fac806e5400013a12d8d\",\n\t\"details\": {\n\t\t\"note\": \"updated test\",\n\t\t\"access\": \"private\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"update-profile-note-self\">Update Profile Note (Self)</h2>\n<p>GraphQL mutation for users to update an existing profile note on their profile</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>noteId</code> (String): The ID of the note to be updated</p>\n</li>\n<li><p><code>details</code> (Object):</p>\n<ul>\n<li><p><code>note</code> (String)</p>\n</li>\n<li><p><code>access</code>(String): The visiability of the note, where public is viewable by anyone in the organization, and private is only visiable to admins and the user themselves (e.g. \"public\", \"private\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the updated note</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>NoteNotFoundError</code>: The note being udpated does not exist</p>\n</li>\n<li><p><code>NoteDeletedError</code>: Cannot update archived notes</p>\n</li>\n<li><p><code>ExceedMaxNoteCountError</code>: A user can have maximum number of 25 notes</p>\n</li>\n<li><p><code>ExceedMaxWordCountError</code>: A note cannot be more than 1000 characters long</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"1ccf5d1b-7816-4429-ac4e-14b69c265875","name":"NoteDeletedError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateProfileNote($id: ID!, $details: UpdateHiddenNoteDetails!) {\n    selfMutation {\n        note(id: $id) {\n             __typename\n            ... on AccessForbiddenError {\n                __typename\n                message\n            }\n            ... on NoteNotFoundError {\n                __typename\n                message\n            }\n            ... on NoteDeletedError {\n                __typename\n                message\n            }\n            ... on ProfileNoteMutation {\n                update(details: $details) {\n                    ... on ProfileNote {\n                        __typename\n                        id\n                        note\n                        access\n                    }\n                    ... on ExceedMaxWordCountError {\n                        __typename\n                        message\n                        maxCount\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"id\": \"6411dd2c8f455af483d10185\",\n\t\"details\": {\n\t\t\"note\": \"updated test\",\n\t\t\"access\": \"private\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"174"},{"key":"Date","value":"Wed, 15 Mar 2023 21:02:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"note\": {\n                \"__typename\": \"NoteDeletedError\",\n                \"message\": \"The note you're looking for is archived\"\n            }\n        }\n    }\n}"},{"id":"d19989cf-1711-45c5-8f40-7a39bec6bbb2","name":"NoteNotFoundError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateProfileNote($id: ID!, $details: UpdateHiddenNoteDetails!) {\n    selfMutation {\n        note(id: $id) {\n             __typename\n            ... on AccessForbiddenError {\n                __typename\n                message\n            }\n            ... on NoteNotFoundError {\n                __typename\n                message\n            }\n            ... on NoteDeletedError {\n                __typename\n                message\n            }\n            ... on ProfileNoteMutation {\n                update(details: $details) {\n                    ... on ProfileNote {\n                        __typename\n                        id\n                        note\n                        access\n                    }\n                    ... on ExceedMaxWordCountError {\n                        __typename\n                        message\n                        maxCount\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"id\": \"6411dd2c8f455af483d10183\",\n\t\"details\": {\n\t\t\"note\": \"updated test\",\n\t\t\"access\": \"private\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"178"},{"key":"Date","value":"Wed, 15 Mar 2023 21:07:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"note\": {\n                \"__typename\": \"NoteNotFoundError\",\n                \"message\": \"The note you're looking for does not exist\"\n            }\n        }\n    }\n}"},{"id":"987f543e-b305-4ff9-97fa-849a2fa883fa","name":"Exceed Max Word Count Error","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdatePersonalNote($id: ID!, $details: UpdateHiddenNoteDetails!) {\n    selfMutation {\n        note(id: $id) {\n            update(details: $details) {\n                ... on PersonalNote {\n                    __typename\n                    id\n                    note\n                    access\n                }\n                ... on ExceedMaxWordCountError {\n                    __typename\n                    message\n                    maxCount\n                }\n                ... on NoteNotFoundError {\n                    __typename\n                    message\n                }\n                ... on NoteDeletedError {\n                    __typename\n                    message\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"id\": \"63a0a825f34f4219cb5f7dd7\",\n\t\"details\": {\n\t\t\"note\": \"updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note updated note \",\n\t\t\"access\": \"private\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"260"},{"key":"Date","value":"Mon, 19 Dec 2022 18:13:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"note\": {\n                \"update\": {\n                    \"__typename\": \"ExceedMaxWordCountError\",\n                    \"message\": \"Input note length of 1274 exceeds allowed max word count\",\n                    \"maxCount\": 1000\n                }\n            }\n        }\n    }\n}"},{"id":"22b778ad-6329-4161-9646-435340d09c46","name":"Update Self Profile Note","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateProfileNote($id: ID!, $details: UpdateHiddenNoteDetails!) {\n    selfMutation {\n        note(id: $id) {\n             __typename\n            ... on AccessForbiddenError {\n                __typename\n                message\n            }\n            ... on NoteNotFoundError {\n                __typename\n                message\n            }\n            ... on NoteDeletedError {\n                __typename\n                message\n            }\n            ... on ProfileNoteMutation {\n                update(details: $details) {\n                    ... on ProfileNote {\n                        __typename\n                        id\n                        note\n                        access\n                    }\n                    ... on ExceedMaxWordCountError {\n                        __typename\n                        message\n                        maxCount\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"id\": \"6411dd2c8f455af483d10185\",\n\t\"details\": {\n\t\t\"note\": \"updated test\",\n\t\t\"access\": \"private\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"293"},{"key":"Date","value":"Wed, 15 Mar 2023 20:29:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"note\": {\n                \"__typename\": \"ProfileNoteMutation\",\n                \"update\": {\n                    \"__typename\": \"ProfileNote\",\n                    \"id\": \"6411dd2c8f455af483d10185\",\n                    \"note\": \"updated test\",\n                    \"access\": \"private\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"46d037b6-436d-46f5-97ec-601662676f53"},{"name":"Delete Self Profile Note","id":"4ae3e48a-fc9d-4dc5-8271-21a0934e888f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation DeleteProfileNote($id: ID!) {\n    selfMutation {\n        note(id: $id) {\n            __typename\n            ... on AccessForbiddenError {\n                __typename\n                message\n            }\n            ... on NoteNotFoundError {\n                __typename\n                message\n            }\n            ... on NoteDeletedError {\n                __typename\n                message\n            }\n            ... on ProfileNoteMutation {\n                deleteNote {\n                    ... on ProfileNote {\n                        __typename\n                        id\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"id\": \"64a8fac806e5400013a12d8d\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"delete-profile-note-self\">Delete Profile Note (Self)</h2>\n<p>GraphQL mutation for users to delete an existing profile note from their own profile</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>noteId</code> (String): The ID of the note to be deleted</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object with the ID of the deleted note</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>AccessForbiddenError</code>: You do not have access to update this note</p>\n</li>\n<li><p><code>NoteNotFoundError</code>: The note being udpated does not exist</p>\n</li>\n<li><p><code>NoteDeletedError</code>: Cannot update archived notes</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"05506181-8c7a-41b7-94ff-503f11b0df46","name":"NoteDeletedError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation DeleteProfileNote($id: ID!) {\n    selfMutation {\n        note(id: $id) {\n            __typename\n            ... on AccessForbiddenError {\n                __typename\n                message\n            }\n            ... on NoteNotFoundError {\n                __typename\n                message\n            }\n            ... on NoteDeletedError {\n                __typename\n                message\n            }\n            ... on ProfileNoteMutation {\n                deleteNote {\n                    ... on ProfileNote {\n                        __typename\n                        id\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"id\": \"6411dd2c8f455af483d10185\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"174"},{"key":"Date","value":"Wed, 15 Mar 2023 21:09:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"note\": {\n                \"__typename\": \"NoteDeletedError\",\n                \"message\": \"The note you're looking for is archived\"\n            }\n        }\n    }\n}"},{"id":"35d21607-0aca-4561-b81b-aca77b23092d","name":"NoteNotFoundError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation DeleteProfileNote($id: ID!) {\n    selfMutation {\n        note(id: $id) {\n            __typename\n            ... on AccessForbiddenError {\n                __typename\n                message\n            }\n            ... on NoteNotFoundError {\n                __typename\n                message\n            }\n            ... on NoteDeletedError {\n                __typename\n                message\n            }\n            ... on ProfileNoteMutation {\n                deleteNote {\n                    ... on ProfileNote {\n                        __typename\n                        id\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"id\": \"6411dd2c8f455af483d10183\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"178"},{"key":"Date","value":"Wed, 15 Mar 2023 21:09:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"note\": {\n                \"__typename\": \"NoteNotFoundError\",\n                \"message\": \"The note you're looking for does not exist\"\n            }\n        }\n    }\n}"},{"id":"347a8941-73a6-4b2e-a1e9-dc6a7b24d57e","name":"AccessForbiddenError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation DeleteProfileNote($id: ID!) {\n    selfMutation {\n        note(id: $id) {\n            __typename\n            ... on AccessForbiddenError {\n                __typename\n                message\n            }\n            ... on NoteNotFoundError {\n                __typename\n                message\n            }\n            ... on NoteDeletedError {\n                __typename\n                message\n            }\n            ... on ProfileNoteMutation {\n                deleteNote {\n                    ... on ProfileNote {\n                        __typename\n                        id\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"id\": \"63f8ce47e017a88fe3520462\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"155"},{"key":"Date","value":"Wed, 15 Mar 2023 21:10:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"note\": {\n                \"__typename\": \"AccessForbiddenError\",\n                \"message\": \"Access forbidden\"\n            }\n        }\n    }\n}"},{"id":"97fa4b05-3433-4a2e-b365-c31583c91892","name":"Delete Self Profile Note","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation DeleteProfileNote($id: ID!) {\n    selfMutation {\n        note(id: $id) {\n            __typename\n            ... on NoteNotFoundError {\n                __typename\n                message\n            }\n            ... on NoteDeletedError {\n                __typename\n                message\n            }\n            ... on ProfileNoteMutation {\n                deleteNote {\n                    ... on ProfileNote {\n                        __typename\n                        id\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"id\": \"6411dd2c8f455af483d10185\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"232"},{"key":"Date","value":"Wed, 15 Mar 2023 20:30:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"note\": {\n                \"__typename\": \"ProfileNoteMutation\",\n                \"deleteNote\": {\n                    \"__typename\": \"ProfileNote\",\n                    \"id\": \"6411dd2c8f455af483d10185\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"4ae3e48a-fc9d-4dc5-8271-21a0934e888f"},{"name":"Fetch Self Profile Note by Id","id":"360b782e-e4f2-4c46-a7f6-38732bdc6dbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchProfileNoteById($id: ID!) {\n    selfQuery {\n        note(id: $id) {\n            ... on ProfileNote {\n                __typename\n                id\n                note\n                createdAt\n                updatedAt\n                createdBy {\n                    __typename\n                    ...OrganizationUserResultFields\n                }\n                editedBy {\n                    __typename\n                    ...OrganizationUserResultFields\n                }\n            }\n            ... on NoteNotFoundError {\n                __typename\n                message\n            }\n            ... on NoteDeletedError {\n                __typename\n                message\n            }\n        }\n    }\n}\n\nfragment OrganizationUserResultFields on OrganizationUserResult {\n  __typename\n  ... on Node {\n    id\n  }\n  ... on OrganizationMember {\n    ...NamePartsUserFields\n    role\n  }\n  ... on PublicUser {\n    ...NamePartsUserFields\n  }\n}\n\nfragment NamePartsUserFields on GeneralUser {\n  username\n  firstName\n  lastName\n}\n","variables":"{\n\t\"id\": \"6440457bc40642fcdc03f769\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"fetch-profile-note-self\">Fetch Profile Note (Self)</h2>\n<p>GraphQL query for users to fetch a specific profile note by ID from their own profile</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>noteId</code> (String): The ID of the note</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object with the ID of the deleted note</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>NoteNotFoundError</code>: The note being udpated does not exist</p>\n</li>\n<li><p><code>NoteDeletedError</code>: Cannot update archived notes</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"298596f9-5eca-4e32-b245-4a1f4b82d931","name":"Fetch Self Profile Note by Id","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchProfileNoteById($id: ID!) {\n    selfQuery {\n        note(id: $id) {\n            ... on ProfileNote {\n                __typename\n                id\n                note\n                createdAt\n                updatedAt\n            }\n            ... on NoteNotFoundError {\n                __typename\n                message\n            }\n            ... on NoteDeletedError {\n                __typename\n                message\n            }\n        }\n    }\n}\n","variables":"{\n\t\"id\": \"642215a7ee6d3469c206ea28\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"343"},{"key":"Date","value":"Mon, 27 Mar 2023 22:17:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfQuery\": {\n            \"note\": {\n                \"__typename\": \"ProfileNote\",\n                \"id\": \"642215a7ee6d3469c206ea28\",\n                \"note\": \"test note test note test note test note test note test note test note test note\",\n                \"createdAt\": \"2023-03-27T22:16:07.392Z\",\n                \"updatedAt\": \"2023-03-27T22:16:07.392Z\"\n            }\n        }\n    }\n}"},{"id":"ec55e48d-e4ee-462b-b894-f55733db6019","name":"NoteNotFoundError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchProfileNoteById($id: ID!) {\n    selfQuery {\n        note(id: $id) {\n            ... on ProfileNote {\n                __typename\n                id\n                note\n                createdAt\n                updatedAt\n            }\n            ... on NoteNotFoundError {\n                __typename\n                message\n            }\n            ... on NoteDeletedError {\n                __typename\n                message\n            }\n        }\n    }\n}\n","variables":"{\n\t\"id\": \"642215a7ee6d3469c206ea29\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"175"},{"key":"Date","value":"Mon, 27 Mar 2023 22:17:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfQuery\": {\n            \"note\": {\n                \"__typename\": \"NoteNotFoundError\",\n                \"message\": \"The note you're looking for does not exist\"\n            }\n        }\n    }\n}"},{"id":"447ecaeb-acce-4d8c-b202-7f5b81aa9cb2","name":"NoteDeletedError","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchProfileNoteById($id: ID!) {\n    selfQuery {\n        note(id: $id) {\n            ... on ProfileNote {\n                __typename\n                id\n                note\n                createdAt\n                updatedAt\n            }\n            ... on NoteNotFoundError {\n                __typename\n                message\n            }\n            ... on NoteDeletedError {\n                __typename\n                message\n            }\n        }\n    }\n}\n","variables":"{\n\t\"id\": \"642215a7ee6d3469c206ea28\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"171"},{"key":"Date","value":"Mon, 27 Mar 2023 22:26:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfQuery\": {\n            \"note\": {\n                \"__typename\": \"NoteDeletedError\",\n                \"message\": \"The note you're looking for is archived\"\n            }\n        }\n    }\n}"}],"_postman_id":"360b782e-e4f2-4c46-a7f6-38732bdc6dbb"},{"name":"Fetch Profile Notes for Self","id":"c42ff68e-7b74-49a3-998f-203b6e3030d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchSelfProfileNotes {\n    selfQuery {\n        id\n        username\n        role\n        notes {\n            id\n            note\n            member {\n                ...OrganizationUserResultFragment\n                __typename\n            }\n            createdAt\n            updatedAt\n            access\n            createdBy {\n                ...OrganizationUserResultFragment\n                __typename\n            }\n            editedBy {\n                ...OrganizationUserResultFragment\n                __typename\n            }\n        }\n    }\n}\n\nfragment NodeFragment on Node {\n    id\n}\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n    role\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    username\n    firstName\n    lastName\n}\n\nfragment PublicUserFragment on PublicUser {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n}\n\nfragment OrganizationUserResultFragment on OrganizationUserResult {\n    ... on OrganizationMember {\n        ...OrganizationMemberFragment\n    }\n    ... on PublicUser {\n        ...PublicUserFragment\n    }\n    ... on UserNotFoundError {\n        message\n    }\n}","variables":""}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"fetch-all-profile-note-self\">Fetch All Profile Note (Self)</h2>\n<p>GraphQL query for users to fetch all profile note on their own profile</p>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An array of note objects, or an empty array if no notes exists</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"a725556b-fdbe-4a21-a18f-86adf3ab8e6e","name":"Fetch Profile Notes for Self","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchSelfProfileNotes {\n    selfQuery {\n        id\n        username\n        role\n        notes {\n            id\n            note\n            member {\n                ...OrganizationUserResultFragment\n                __typename\n            }\n            createdAt\n            updatedAt\n            access\n            createdBy {\n                ...OrganizationUserResultFragment\n                __typename\n            }\n            editedBy {\n                ...OrganizationUserResultFragment\n                __typename\n            }\n        }\n    }\n}\n\nfragment NodeFragment on Node {\n    id\n}\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n    role\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    username\n    firstName\n    lastName\n}\n\nfragment PublicUserFragment on PublicUser {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n}\n\nfragment OrganizationUserResultFragment on OrganizationUserResult {\n    ... on OrganizationMember {\n        ...OrganizationMemberFragment\n    }\n    ... on PublicUser {\n        ...PublicUserFragment\n    }\n    ... on UserNotFoundError {\n        message\n    }\n}","variables":""}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 27 Mar 2023 16:34:54 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"18654"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfQuery\": {\n            \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n            \"username\": \"umarazhar\",\n            \"role\": \"CTO\",\n            \"notes\": [\n                {\n                    \"id\": \"64022f839d17cf1b5ce9a55c\",\n                    \"note\": \"1\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-03T17:33:55.838Z\",\n                    \"updatedAt\": \"2023-03-03T17:33:55.838Z\",\n                    \"access\": \"private\",\n                    \"createdBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": null\n                },\n                {\n                    \"id\": \"64021c0f7339f5a05f00d01b\",\n                    \"note\": \"how about a public note1\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-03T16:10:55.508Z\",\n                    \"updatedAt\": \"2023-03-06T04:01:55.904Z\",\n                    \"access\": \"public\",\n                    \"createdBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    }\n                },\n                {\n                    \"id\": \"64021c247339f5a05f00d029\",\n                    \"note\": \"this looks great123444hsjbjhdbv\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-03T16:11:16.438Z\",\n                    \"updatedAt\": \"2023-03-06T04:09:27.595Z\",\n                    \"access\": \"private\",\n                    \"createdBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": {\n                        \"id\": \"263ef968-865e-497e-9d38-2ca7cc1cdb2d\",\n                        \"username\": \"salmaan\",\n                        \"firstName\": \"Salmaan\",\n                        \"lastName\": \"Ahmed\",\n                        \"role\": \"iOS Engineer :)\",\n                        \"__typename\": \"OrganizationMember\"\n                    }\n                },\n                {\n                    \"id\": \"64021ab07339f5a05f00cf18\",\n                    \"note\": \"First note! Updated! Updated again but from admin portal nvnvnv\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-03T16:05:04.636Z\",\n                    \"updatedAt\": \"2023-03-08T21:03:31.531Z\",\n                    \"access\": \"private\",\n                    \"createdBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    }\n                },\n                {\n                    \"id\": \"64022f889d17cf1b5ce9a56c\",\n                    \"note\": \"2vkkkkvvvv\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-03T17:34:00.463Z\",\n                    \"updatedAt\": \"2023-03-08T21:05:31.342Z\",\n                    \"access\": \"private\",\n                    \"createdBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    }\n                },\n                {\n                    \"id\": \"64056cb29d17cf1b5ce9aeb9\",\n                    \"note\": \"t6t6t6t6t6t6t6t6t6t6t6t6t6t6t6rdvdfbfgbghjgfugfggvhgcCannot delete a note?Cannot delete a note?Cannot delete a note?Cannot delete a note?Cannot delete a note?Cannot delete a note?Cannomt delete a note?Cannot delete a note?Cannot delete a note?vCannot delete a note?Cannot delete a note?Cannot delete a note?Cannot delete a note?mmmmmxxxx\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-06T04:31:46.060Z\",\n                    \"updatedAt\": \"2023-03-08T21:05:43.584Z\",\n                    \"access\": \"private\",\n                    \"createdBy\": {\n                        \"id\": \"263ef968-865e-497e-9d38-2ca7cc1cdb2d\",\n                        \"username\": \"salmaan\",\n                        \"firstName\": \"Salmaan\",\n                        \"lastName\": \"Ahmed\",\n                        \"role\": \"iOS Engineer :)\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    }\n                },\n                {\n                    \"id\": \"640564a29d17cf1b5ce9a942\",\n                    \"note\": \"23627836817268 bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv vbsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvhbvjdjvvgbvhgvggvvdghdhvghgvghhgvbjvhvhvvbhvgvbhrjvrvjghvjhbvvhjvbhrhvbvhbvrhvbhbvhjvbhvbvhjvbhjvbvhjvbvhrbvrvjrvbhvhvbvhjbvhvjvbvhjvbhjvbvjhbvhvbhvrbvhejrvbrjvhrbvhjrvbrjhjhvbjhgvvvv\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-06T03:57:22.225Z\",\n                    \"updatedAt\": \"2023-03-08T21:04:53.848Z\",\n                    \"access\": \"private\",\n                    \"createdBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    }\n                },\n                {\n                    \"id\": \"640564e89d17cf1b5ce9a98d\",\n                    \"note\": \"bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-06T03:58:32.485Z\",\n                    \"updatedAt\": \"2023-03-06T03:58:41.815Z\",\n                    \"access\": \"public\",\n                    \"createdBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    }\n                },\n                {\n                    \"id\": \"640565dc9d17cf1b5ce9ab03\",\n                    \"note\": \"7623468279691283789797936r8763784hbdfjvdbfvjhdbvrf\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-06T04:02:36.174Z\",\n                    \"updatedAt\": \"2023-03-06T04:17:14.713Z\",\n                    \"access\": \"public\",\n                    \"createdBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": {\n                        \"id\": \"263ef968-865e-497e-9d38-2ca7cc1cdb2d\",\n                        \"username\": \"salmaan\",\n                        \"firstName\": \"Salmaan\",\n                        \"lastName\": \"Ahmed\",\n                        \"role\": \"iOS Engineer :)\",\n                        \"__typename\": \"OrganizationMember\"\n                    }\n                },\n                {\n                    \"id\": \"640619d34627a13450a86ee3\",\n                    \"note\": \"vvCannot delete a note?Cannot delete a note?Cannot delete a note?Cannot delete a note?Cannot delete a note?Cannot delete a note?Cannot delete a note?Cannot delete a note?\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-06T16:50:27.889Z\",\n                    \"updatedAt\": \"2023-03-06T16:50:27.889Z\",\n                    \"access\": \"private\",\n                    \"createdBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": null\n                },\n                {\n                    \"id\": \"64061df565419e472139f6bb\",\n                    \"note\": \"m\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nx\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-06T17:08:05.908Z\",\n                    \"updatedAt\": \"2023-03-06T17:08:05.908Z\",\n                    \"access\": \"private\",\n                    \"createdBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": null\n                },\n                {\n                    \"id\": \"64061f2365419e472139f780\",\n                    \"note\": \"ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc ccccc\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-06T17:13:07.976Z\",\n                    \"updatedAt\": \"2023-03-06T17:13:13.845Z\",\n                    \"access\": \"private\",\n                    \"createdBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    }\n                },\n                {\n                    \"id\": \"64061e4a65419e472139f6f4\",\n                    \"note\": \"f\\n\\n\\n                       \\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nv\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-06T17:09:30.201Z\",\n                    \"updatedAt\": \"2023-03-06T17:15:15.314Z\",\n                    \"access\": \"private\",\n                    \"createdBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    }\n                },\n                {\n                    \"id\": \"64062bf85f1c957046305bf9\",\n                    \"note\": \"updated testdvjfvkdjfbvkdfbvkdfjbvdkjfbvkjdbfvkjdbkjvbdkjvbkdjbkjbvdjkvbdkbv\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-06T18:07:52.136Z\",\n                    \"updatedAt\": \"2023-03-08T21:01:28.438Z\",\n                    \"access\": \"private\",\n                    \"createdBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    }\n                },\n                {\n                    \"id\": \"64022f7e9d17cf1b5ce9a54d\",\n                    \"note\": \"bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv x1bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv bsidhvbsjhdvbdjhv23456778\",\n                    \"member\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"createdAt\": \"2023-03-03T17:33:50.143Z\",\n                    \"updatedAt\": \"2023-03-08T21:03:19.089Z\",\n                    \"access\": \"public\",\n                    \"createdBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    },\n                    \"editedBy\": {\n                        \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                        \"username\": \"umarazhar\",\n                        \"firstName\": \"Umar\",\n                        \"lastName\": \"Azhar\",\n                        \"role\": \"CTO\",\n                        \"__typename\": \"OrganizationMember\"\n                    }\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"c42ff68e-7b74-49a3-998f-203b6e3030d0"}],"id":"047cb197-7d2b-49cb-853a-ff1cb74cfa85","_postman_id":"047cb197-7d2b-49cb-853a-ff1cb74cfa85","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Fetch Self User","id":"9c230bdf-c1fb-4899-8fc7-44ca2267b14d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchSelfOrgMember($organizationalUnit: OrganizationalUnitInput!, $addressType: AddressType) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            __typename\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                id\n                name\n                \n                me {\n                    id\n                    firstName\n                    lastName\n                    username\n                    role\n                    workStatus {\n              ...WorkStatusFragment\n            }\n                    isDirectorySynced\n                    joinDate\n                    isSSOEnabled\n                    notes {\n                        id\n                        note\n                        member {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                        createdAt\n                        updatedAt\n                        access\n                        createdBy {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                        editedBy {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                    }\n                    addresses (type: $addressType) {\n                        ...AddressFragment\n                    }\n                    devices {\n                        id\n                        type\n                        pushToken\n                        userAgent\n                    }\n                }\n            }\n        }\n    }\n}\n\n\nfragment NodeFragment on Node {\n    id\n}\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n    role\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    username\n    firstName\n    lastName\n}\n\nfragment PublicUserFragment on PublicUser {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n}\n\nfragment OrganizationUserResultFragment on OrganizationUserResult {\n    ... on OrganizationMember {\n        ...OrganizationMemberFragment\n    }\n    ... on PublicUser {\n        ...PublicUserFragment\n    }\n    ... on UserNotFoundError {\n        message\n    }\n}\n\nfragment AddressFragment on Address {\n    id\n    address\n    ordinal\n    type\n    label\n    verified\n    access\n    syncStatus\n    createdAt\n    updatedAt\n}\n\nfragment WorkStatusFragment on WorkStatus {\n    value\n    expiryDate\n    message\n    alternateContact {\n      ...PublicUserFragment\n    }\n    resetFields\n  }\n","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-self-user\">Fetch Self User</h2>\n<p>GraphQL query for fetching your own user information within a given organizational unit</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object containing your user information, including but not limited to: <code>id</code>, <code>firstName</code>, <code>lastName</code>, <code>role</code>, <code>workStatus</code>, <code>isDirectorySynced</code>, <code>joinDate</code>, <code>notes</code>, <code>address</code>, etc</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"1e72fea1-2dc6-470f-9d53-874fbacc493e","name":"Get Self Org Member","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetSelfOrgMember($organizationalUnit: OrganizationalUnitInput!, $addressType: AddressType) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            __typename\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                id\n                name\n                \n                me {\n                    id\n                    firstName\n                    lastName\n                    username\n                    role\n                    directorySyncStatus\n                    joinDate\n                    isSSOEnabled\n                    notes {\n                        id\n                        note\n                        member {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                        createdAt\n                        updatedAt\n                        access\n                        createdBy {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                        editedBy {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                    }\n                    addresses (type: $addressType) {\n                        ...AddressFragment\n                    }\n                    devices {\n                        id\n                        type\n                        pushToken\n                        userAgent\n                    }\n                }\n            }\n        }\n    }\n}\n\n\nfragment NodeFragment on Node {\n    id\n}\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n    role\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    username\n    firstName\n    lastName\n}\n\nfragment PublicUserFragment on PublicUser {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n}\n\nfragment OrganizationUserResultFragment on OrganizationUserResult {\n    ... on OrganizationMember {\n        ...OrganizationMemberFragment\n    }\n    ... on PublicUser {\n        ...PublicUserFragment\n    }\n    ... on UserNotFoundError {\n        message\n    }\n}\n\nfragment AddressFragment on Address {\n    id\n    address\n    ordinal\n    type\n    verified\n    access\n    syncStatus\n    createdAt\n    updatedAt\n}\n","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"5353"},{"key":"Date","value":"Thu, 09 Nov 2023 14:54:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"id\": \"1\",\n                \"name\": \"Hypercare\",\n                \"me\": {\n                    \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                    \"firstName\": \"Umar\",\n                    \"lastName\": \"Azhar\",\n                    \"username\": \"umarazhar\",\n                    \"role\": \"CEO\",\n                    \"directorySyncStatus\": true,\n                    \"joinDate\": \"2023-11-09T14:54:08.490Z\",\n                    \"isSSOEnabled\": false,\n                    \"notes\": [\n                        {\n                            \"id\": \"6440457bc40642fcdc03f769\",\n                            \"note\": \"THIS IS A PRIVATE NOTE\",\n                            \"member\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Azhar\",\n                                \"role\": \"CEO\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-04-19T19:48:11.212Z\",\n                            \"updatedAt\": \"2023-05-04T15:38:41.385Z\",\n                            \"access\": \"private\",\n                            \"createdBy\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Azhar\",\n                                \"role\": \"CEO\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": {\n                                \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                                \"username\": \"support\",\n                                \"firstName\": \"Support\",\n                                \"lastName\": \"Hypercare\",\n                                \"role\": \"Support\",\n                                \"__typename\": \"OrganizationMember\"\n                            }\n                        },\n                        {\n                            \"id\": \"65296df9e864ae99ddf13b61\",\n                            \"note\": \"TEST 1\",\n                            \"member\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Azhar\",\n                                \"role\": \"CEO\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-13T16:19:05.566Z\",\n                            \"updatedAt\": \"2023-10-13T16:19:10.244Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Azhar\",\n                                \"role\": \"CEO\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Azhar\",\n                                \"role\": \"CEO\",\n                                \"__typename\": \"OrganizationMember\"\n                            }\n                        },\n                        {\n                            \"id\": \"652ac40c1c53b4541ab3e86e\",\n                            \"note\": \"TEST 3\",\n                            \"member\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Azhar\",\n                                \"role\": \"CEO\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-14T16:38:36.521Z\",\n                            \"updatedAt\": \"2023-10-14T16:38:36.521Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Azhar\",\n                                \"role\": \"CEO\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        }\n                    ],\n                    \"addresses\": [\n                        {\n                            \"id\": \"YXR0c29wYWxAaG90bWFpbC5jb20uY29t\",\n                            \"address\": \"attsopal@hotmail.com.com\",\n                            \"ordinal\": \"primary\",\n                            \"type\": \"email\",\n                            \"verified\": true,\n                            \"access\": \"private\",\n                            \"syncStatus\": false,\n                            \"createdAt\": \"2023-04-10T22:53:05.000Z\",\n                            \"updatedAt\": \"2023-04-10T22:53:05.000Z\"\n                        },\n                        {\n                            \"id\": \"KzEyMjYzNDYzMzU3\",\n                            \"address\": \"+12263463357\",\n                            \"ordinal\": \"primary\",\n                            \"type\": \"phoneNumber\",\n                            \"verified\": true,\n                            \"access\": \"public\",\n                            \"syncStatus\": false,\n                            \"createdAt\": \"2023-10-04T04:46:35.000Z\",\n                            \"updatedAt\": \"2023-10-04T04:46:35.000Z\"\n                        }\n                    ],\n                    \"devices\": [\n                        {\n                            \"id\": \"0d93befd-f31d-40f0-8afa-69ad38d92d4a\",\n                            \"type\": \"android\",\n                            \"pushToken\": \"dJHmJytaQHOqYCONhcpf9X:APA91bEHGift9k_7YWkFe0duHSaQE5DwbINdWrBPKYnZMwuRWIPSdjTbQ6xC39KSoKUyRFOggs8FpeRPjdqoBfWcaPn2l_kSixxRsgM7BKUf-H29tOmEhuON4hmerLhV4W9ltKnqXzt1\",\n                            \"userAgent\": null\n                        },\n                        {\n                            \"id\": \"D5B816F8-3B15-4993-8E69-89E1F7F99BA8\",\n                            \"type\": \"ios\",\n                            \"pushToken\": \"806feee3fd8430f582b223dd551bf922e121ada075fbda1346e42e99caab809559845947e608a9402c00fbc63d206009ea533fbf4f48632de0a6cd1f76bd5f3b5245b6bb4637aca0157edc6ef2a5e3a5\",\n                            \"userAgent\": null\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"346c67d8-0b18-4669-8cc3-f0b0ff6cbafb","name":"isSSOEnabled","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetSelfOrgMember($organizationalUnit: OrganizationalUnitInput!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            __typename\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                id\n                name\n                \n                me {\n                    id\n                    firstName\n                    lastName\n                    username\n                    role\n                    directorySyncStatus\n                    isSSOEnabled\n                    joinDate\n                    notes {\n                        id\n                        note\n                        member {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                        createdAt\n                        updatedAt\n                        access\n                        createdBy {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                        editedBy {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                    }\n                    addresses {\n                        ...AddressFragment\n                    }\n                    devices {\n                        id\n                        type\n                        pushToken\n                        userAgent\n                    }\n                }\n            }\n        }\n    }\n}\n\n\nfragment NodeFragment on Node {\n    id\n}\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n    role\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    username\n    firstName\n    lastName\n}\n\nfragment PublicUserFragment on PublicUser {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n}\n\nfragment OrganizationUserResultFragment on OrganizationUserResult {\n    ... on OrganizationMember {\n        ...OrganizationMemberFragment\n    }\n    ... on PublicUser {\n        ...PublicUserFragment\n    }\n    ... on UserNotFoundError {\n        message\n    }\n}\n\nfragment AddressFragment on Address {\n    address\n    ordinal\n    type\n    access\n}\n","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"892"},{"key":"Date","value":"Fri, 03 Nov 2023 16:08:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"id\": \"75\",\n                \"name\": \"DirSync Bug Bash 3\",\n                \"me\": {\n                    \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                    \"firstName\": \"Support\",\n                    \"lastName\": \"Hypercare\",\n                    \"username\": \"support\",\n                    \"role\": \"Support\",\n                    \"directorySyncStatus\": false,\n                    \"isSSOEnabled\": true,\n                    \"joinDate\": \"2023-11-03T16:07:53.904Z\",\n                    \"notes\": [],\n                    \"addresses\": [],\n                    \"devices\": [\n                        {\n                            \"id\": \"0babd754-d32d-4075-b3eb-0b1e899c99c1\",\n                            \"type\": \"web\",\n                            \"pushToken\": null,\n                            \"userAgent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.\"\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"de609ff1-f87a-4082-9668-499f8f828c63","name":"Member address","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetSelfOrgMember($organizationalUnit: OrganizationalUnitInput!, $addressType: AddressType) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            __typename\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                id\n                name\n                \n                me {\n                    id\n                    firstName\n                    lastName\n                    username\n                    role\n                    directorySyncStatus\n                    joinDate\n                    notes {\n                        id\n                        note\n                        member {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                        createdAt\n                        updatedAt\n                        access\n                        createdBy {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                        editedBy {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                    }\n                    addresses (type: $addressType) {\n                        ...AddressFragment\n                    }\n                    devices {\n                        id\n                        type\n                        pushToken\n                        userAgent\n                    }\n                }\n            }\n        }\n    }\n}\n\n\nfragment NodeFragment on Node {\n    id\n}\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n    role\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    username\n    firstName\n    lastName\n}\n\nfragment PublicUserFragment on PublicUser {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n}\n\nfragment OrganizationUserResultFragment on OrganizationUserResult {\n    ... on OrganizationMember {\n        ...OrganizationMemberFragment\n    }\n    ... on PublicUser {\n        ...PublicUserFragment\n    }\n    ... on UserNotFoundError {\n        message\n    }\n}\n\nfragment AddressFragment on Address {\n    id\n    address\n    ordinal\n    type\n    verified\n    access\n    syncStatus\n    createdAt\n    updatedAt\n}\n","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"5662"},{"key":"Date","value":"Wed, 08 Nov 2023 14:42:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"id\": \"1\",\n                \"name\": \"Hypercare\",\n                \"me\": {\n                    \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                    \"firstName\": \"Umar\",\n                    \"lastName\": \"Hypercare\",\n                    \"username\": \"umarazhar\",\n                    \"role\": \"Support Role\",\n                    \"directorySyncStatus\": true,\n                    \"joinDate\": \"2023-11-08T14:42:14.439Z\",\n                    \"notes\": [\n                        {\n                            \"id\": \"6440457bc40642fcdc03f769\",\n                            \"note\": \"THIS IS A PRIVATE NOTE\",\n                            \"member\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Hypercare\",\n                                \"role\": \"Support Role\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-04-19T19:48:11.212Z\",\n                            \"updatedAt\": \"2023-05-04T15:38:41.385Z\",\n                            \"access\": \"private\",\n                            \"createdBy\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Hypercare\",\n                                \"role\": \"Support Role\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": {\n                                \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                                \"username\": \"support\",\n                                \"firstName\": \"Support\",\n                                \"lastName\": \"Hypercare\",\n                                \"role\": \"Support\",\n                                \"__typename\": \"OrganizationMember\"\n                            }\n                        },\n                        {\n                            \"id\": \"65296df9e864ae99ddf13b61\",\n                            \"note\": \"TEST 1\",\n                            \"member\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Hypercare\",\n                                \"role\": \"Support Role\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-13T16:19:05.566Z\",\n                            \"updatedAt\": \"2023-10-13T16:19:10.244Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Hypercare\",\n                                \"role\": \"Support Role\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Hypercare\",\n                                \"role\": \"Support Role\",\n                                \"__typename\": \"OrganizationMember\"\n                            }\n                        },\n                        {\n                            \"id\": \"652ac40c1c53b4541ab3e86e\",\n                            \"note\": \"TEST 3\",\n                            \"member\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Hypercare\",\n                                \"role\": \"Support Role\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-14T16:38:36.521Z\",\n                            \"updatedAt\": \"2023-10-14T16:38:36.521Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"username\": \"umarazhar\",\n                                \"firstName\": \"Umar\",\n                                \"lastName\": \"Hypercare\",\n                                \"role\": \"Support Role\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        }\n                    ],\n                    \"addresses\": [\n                        {\n                            \"id\": \"YXR0c29wYWxAaG90bWFpbC5jb20uY29t\",\n                            \"address\": \"attsopal@hotmail.com.com\",\n                            \"ordinal\": \"primary\",\n                            \"type\": \"email\",\n                            \"verified\": true,\n                            \"access\": \"private\",\n                            \"syncStatus\": false,\n                            \"createdAt\": \"2023-04-10T22:53:05.000Z\",\n                            \"updatedAt\": \"2023-04-10T22:53:05.000Z\"\n                        },\n                        {\n                            \"id\": \"KzEyMjYzNDYzMzU3\",\n                            \"address\": \"+12263463357\",\n                            \"ordinal\": \"primary\",\n                            \"type\": \"phoneNumber\",\n                            \"verified\": true,\n                            \"access\": \"public\",\n                            \"syncStatus\": false,\n                            \"createdAt\": \"2023-10-04T04:46:35.000Z\",\n                            \"updatedAt\": \"2023-10-04T04:46:35.000Z\"\n                        }\n                    ],\n                    \"devices\": [\n                        {\n                            \"id\": \"D5B816F8-3B15-4993-8E69-89E1F7F99BA8\",\n                            \"type\": \"ios\",\n                            \"pushToken\": \"806feee3fd8430f582b223dd551bf922e121ada075fbda1346e42e99caab809559845947e608a9402c00fbc63d206009ea533fbf4f48632de0a6cd1f76bd5f3b5245b6bb4637aca0157edc6ef2a5e3a5\",\n                            \"userAgent\": null\n                        },\n                        {\n                            \"id\": \"3F477265-EBEC-4CBB-A04B-1CBE597082CB\",\n                            \"type\": \"ios\",\n                            \"pushToken\": \"57e0f2d770093a50af8524ac4b17955a7367b917f3abf5a39f3e0c871b2d6ec7\",\n                            \"userAgent\": null\n                        },\n                        {\n                            \"id\": \"03440DF1-1D4E-4DED-AB37-32B06A317378\",\n                            \"type\": \"ios\",\n                            \"pushToken\": \"8003f8fb0d40ac654c4f25bef8fb4fdebdfa3f895d3c9ab33d1d659e027b45e7a29e322f085c344d7900d3766e9c66685b94c275af08da82da45f18996d472c9858cb09ac833d24bee9b0939a04ebb17\",\n                            \"userAgent\": null\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"},{"id":"30066281-15b2-4c30-b8f8-d8930b0a38b9","name":"Member address","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetSelfOrgMember($organizationalUnit: OrganizationalUnitInput!, $addressType: AddressType) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            __typename\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                id\n                name\n                \n                me {\n                    id\n                    firstName\n                    lastName\n                    username\n                    role\n                    directorySyncStatus\n                    joinDate\n                    notes {\n                        id\n                        note\n                        member {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                        createdAt\n                        updatedAt\n                        access\n                        createdBy {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                        editedBy {\n                            ...OrganizationUserResultFragment\n                            __typename\n                        }\n                    }\n                    addresses (type: $addressType) {\n                        ...AddressFragment\n                    }\n                    devices {\n                        id\n                        type\n                        pushToken\n                        userAgent\n                    }\n                }\n            }\n        }\n    }\n}\n\n\nfragment NodeFragment on Node {\n    id\n}\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n    role\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    username\n    firstName\n    lastName\n}\n\nfragment PublicUserFragment on PublicUser {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n}\n\nfragment OrganizationUserResultFragment on OrganizationUserResult {\n    ... on OrganizationMember {\n        ...OrganizationMemberFragment\n    }\n    ... on PublicUser {\n        ...PublicUserFragment\n    }\n    ... on UserNotFoundError {\n        message\n    }\n}\n\nfragment AddressFragment on Address {\n    id\n    address\n    ordinal\n    type\n    verified\n    access\n    syncStatus\n    createdAt\n    updatedAt\n}\n","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{organizationId}},\n\t\t\"type\": \"organization\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31801"},{"key":"Date","value":"Wed, 08 Nov 2023 14:43:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"id\": \"1\",\n                \"name\": \"Hypercare\",\n                \"me\": {\n                    \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                    \"firstName\": \"Hamad \",\n                    \"lastName\": \"Ahmad \",\n                    \"username\": \"hchamad\",\n                    \"role\": \"Neurosurgeon\",\n                    \"directorySyncStatus\": false,\n                    \"joinDate\": \"2023-11-08T14:43:06.900Z\",\n                    \"notes\": [\n                        {\n                            \"id\": \"6448821ebcc7007f4c2f1803\",\n                            \"note\": \"3\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-04-26T01:45:02.683Z\",\n                            \"updatedAt\": \"2023-04-26T01:45:02.683Z\",\n                            \"access\": \"private\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"64488487bcc7007f4c2f18a8\",\n                            \"note\": \"4\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-04-26T01:55:19.773Z\",\n                            \"updatedAt\": \"2023-04-26T01:55:19.773Z\",\n                            \"access\": \"private\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"64488489bcc7007f4c2f18b0\",\n                            \"note\": \"5 ( updated  111\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-04-26T01:55:21.834Z\",\n                            \"updatedAt\": \"2023-04-26T01:58:16.228Z\",\n                            \"access\": \"private\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            }\n                        },\n                        {\n                            \"id\": \"6448853bbcc7007f4c2f194b\",\n                            \"note\": \"6\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-04-26T01:58:19.437Z\",\n                            \"updatedAt\": \"2023-05-15T16:19:14.919Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            }\n                        },\n                        {\n                            \"id\": \"649baf4f8023d00012b02ead\",\n                            \"note\": \"hey\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-06-28T03:55:59.872Z\",\n                            \"updatedAt\": \"2023-06-28T03:55:59.872Z\",\n                            \"access\": \"private\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"64da813ef08b7600132a0bc8\",\n                            \"note\": \"Tes tasdasdas\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-08-14T19:32:14.990Z\",\n                            \"updatedAt\": \"2023-08-15T18:27:28.765Z\",\n                            \"access\": \"private\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            }\n                        },\n                        {\n                            \"id\": \"64e947b8f08b7600132e3b43\",\n                            \"note\": \"ehbdfgjhb\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-08-26T00:30:48.141Z\",\n                            \"updatedAt\": \"2023-08-26T00:30:48.141Z\",\n                            \"access\": \"private\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"651c438686e40c693e12e1e4\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-03T16:38:30.554Z\",\n                            \"updatedAt\": \"2023-10-03T16:38:30.554Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"651c438786e40c43df12e1eb\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-03T16:38:31.155Z\",\n                            \"updatedAt\": \"2023-10-03T16:38:31.155Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"651c438786e40c602712e1f2\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-03T16:38:31.723Z\",\n                            \"updatedAt\": \"2023-10-03T16:38:31.723Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"651c438886e40c1fcf12e1f9\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-03T16:38:32.259Z\",\n                            \"updatedAt\": \"2023-10-03T16:38:32.259Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"651c438886e40c1d4412e200\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-03T16:38:32.751Z\",\n                            \"updatedAt\": \"2023-10-03T16:38:32.751Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"6504b8899e26bf0014bf8a9f\",\n                            \"note\": \"test note test note test note test note test note test note test note test notes\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-09-15T20:03:21.069Z\",\n                            \"updatedAt\": \"2023-10-02T18:22:32.294Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            }\n                        },\n                        {\n                            \"id\": \"651b0a6b11024cd08c31f497\",\n                            \"note\": \"HEY\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-02T18:22:35.221Z\",\n                            \"updatedAt\": \"2023-10-02T18:22:35.221Z\",\n                            \"access\": \"private\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"651c438586e40cd88112e1d6\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-03T16:38:29.272Z\",\n                            \"updatedAt\": \"2023-10-03T16:38:29.272Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"651c438686e40c631912e1dd\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-03T16:38:30.060Z\",\n                            \"updatedAt\": \"2023-10-03T16:38:30.060Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"651c438986e40c7caf12e207\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-03T16:38:33.226Z\",\n                            \"updatedAt\": \"2023-10-03T16:38:33.226Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"651c438986e40c30c112e20e\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-03T16:38:33.684Z\",\n                            \"updatedAt\": \"2023-10-03T16:38:33.684Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"651c438a86e40cd0b912e215\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-03T16:38:34.149Z\",\n                            \"updatedAt\": \"2023-10-03T16:38:34.149Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"651c438a86e40c652312e21c\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-03T16:38:34.616Z\",\n                            \"updatedAt\": \"2023-10-03T16:38:34.616Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"651c438b86e40c5d1612e223\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-03T16:38:35.098Z\",\n                            \"updatedAt\": \"2023-10-03T16:38:35.098Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"651c438b86e40cccd212e22a\",\n                            \"note\": \"test note test note test note test note test note test note test note test note\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-03T16:38:35.577Z\",\n                            \"updatedAt\": \"2023-10-03T16:38:35.577Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"6526cc5d05c3ee5506e6e93d\",\n                            \"note\": \"                       dfaf\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-11T16:25:01.382Z\",\n                            \"updatedAt\": \"2023-10-11T16:25:01.382Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"65300c92b16a3bd48a959280\",\n                            \"note\": \"Hey\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-18T16:49:22.638Z\",\n                            \"updatedAt\": \"2023-10-18T16:49:22.638Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": null\n                        },\n                        {\n                            \"id\": \"651c438c86e40c7e3f12e231\",\n                            \"note\": \"test note test note test note test note test note test note test note test noteHHtest note test note test note test note test note test note test note test noteHHtest note test note test note test note test note test note test note test noteHHtest note test note test note test note test note test note test note test noteHHtest note test note test note test note test note test note test note test noteHHtest note test note test note test note test note test note test note test noteHHtest note test note test note test note test note test note test note test noteHHtest note test note test note test note test note test note test note test noteHHtest note test note test note test note test note test note test note test noteHHtest note test note test note test note test note test note test note test noteHHtest note test note test note test note test note test note test note test noteHHtest note test note test note test note test note test note test note test noteHHtest note test note test not\",\n                            \"member\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"createdAt\": \"2023-10-03T16:38:36.042Z\",\n                            \"updatedAt\": \"2023-11-07T17:40:37.438Z\",\n                            \"access\": \"public\",\n                            \"createdBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            },\n                            \"editedBy\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"username\": \"hchamad\",\n                                \"firstName\": \"Hamad \",\n                                \"lastName\": \"Ahmad \",\n                                \"role\": \"Neurosurgeon\",\n                                \"__typename\": \"OrganizationMember\"\n                            }\n                        }\n                    ],\n                    \"addresses\": [\n                        {\n                            \"id\": \"aHhtYWQ2NCs1NjU2NTY1NjVAZ21haWwuY29t\",\n                            \"address\": \"hxmad64+565656565@gmail.com\",\n                            \"ordinal\": \"primary\",\n                            \"type\": \"email\",\n                            \"verified\": true,\n                            \"access\": \"public\",\n                            \"syncStatus\": false,\n                            \"createdAt\": \"2023-09-12T16:09:54.000Z\",\n                            \"updatedAt\": \"2023-09-12T16:09:54.000Z\"\n                        },\n                        {\n                            \"id\": \"KzE2NDc2Nzg0NTMy\",\n                            \"address\": \"+16476784532\",\n                            \"ordinal\": \"secondary\",\n                            \"type\": \"alphanumeric_pager\",\n                            \"verified\": true,\n                            \"access\": \"public\",\n                            \"syncStatus\": false,\n                            \"createdAt\": \"2023-11-02T15:19:59.000Z\",\n                            \"updatedAt\": \"2023-11-02T15:19:59.000Z\"\n                        }\n                    ],\n                    \"devices\": [\n                        {\n                            \"id\": \" C1490675-B9C8-4031-9700-5EB8984A4809\",\n                            \"type\": \"android\",\n                            \"pushToken\": null,\n                            \"userAgent\": \"Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like\"\n                        },\n                        {\n                            \"id\": \"a9ce88de-2863-4190-8c10-d1060e0eb3c5\",\n                            \"type\": \"android\",\n                            \"pushToken\": null,\n                            \"userAgent\": \"Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like\"\n                        },\n                        {\n                            \"id\": \"d4110e86-3f22-4020-812a-4edaeffba52e\",\n                            \"type\": \"android\",\n                            \"pushToken\": null,\n                            \"userAgent\": \"Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like\"\n                        },\n                        {\n                            \"id\": \"082865c3-04f5-49c4-ade7-114a03925192\",\n                            \"type\": \"android\",\n                            \"pushToken\": null,\n                            \"userAgent\": \"Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like\"\n                        },\n                        {\n                            \"id\": \"fb5d5413-b5be-422d-af10-f56f4bcf748b\",\n                            \"type\": \"web\",\n                            \"pushToken\": null,\n                            \"userAgent\": \"Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like\"\n                        },\n                        {\n                            \"id\": \"ae776f8c-0547-42da-a4a9-9fe1212e5a3a\",\n                            \"type\": \"web\",\n                            \"pushToken\": null,\n                            \"userAgent\": \"Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like\"\n                        },\n                        {\n                            \"id\": \"bc6bf86f-90d2-452f-86a5-affdbcc08d13\",\n                            \"type\": \"android\",\n                            \"pushToken\": null,\n                            \"userAgent\": \"Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like\"\n                        },\n                        {\n                            \"id\": \"b6f30aa9-2637-4592-a715-c1afad2bff88\",\n                            \"type\": \"android\",\n                            \"pushToken\": null,\n                            \"userAgent\": \"Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like\"\n                        },\n                        {\n                            \"id\": \"55c11f29-be78-4b84-9fec-251445737c34\",\n                            \"type\": \"android\",\n                            \"pushToken\": null,\n                            \"userAgent\": \"Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like\"\n                        },\n                        {\n                            \"id\": \"8f324751-56d2-4fad-af6e-83a1aa5303dc\",\n                            \"type\": \"android\",\n                            \"pushToken\": null,\n                            \"userAgent\": \"Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like\"\n                        },\n                        {\n                            \"id\": \"80f05a8a-3113-4d66-9285-8e32181de203\",\n                            \"type\": \"android\",\n                            \"pushToken\": null,\n                            \"userAgent\": \"Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like\"\n                        },\n                        {\n                            \"id\": \"06cc77ce-f8da-462b-a7bd-b3bb8d425882\",\n                            \"type\": \"android\",\n                            \"pushToken\": \"cL91JMkWQeaNcVz1zKDx1C:APA91bHWTcF1iEM5qEsvU8oQ56o-WtAK6IBHUCbnHtIXYgNkkukNQpXWPn5lONow5vFOLDnVlCCf6PlHl9RHUZxs4X5TDfFvyjabdGJNicDbuJmiBKjWAOZoVmbUufKRJg3ITHn3yEU4\",\n                            \"userAgent\": null\n                        },\n                        {\n                            \"id\": \"f941c4b7-c0ae-46e4-be47-64d3a9aa150b\",\n                            \"type\": \"android\",\n                            \"pushToken\": \"femeQXG3SUWLXBITs99NSA:APA91bGkHVkzpHuSeMi9Cnu_JnOci6l2t-J4rmH2gs-cEmXEKtpusT0qFwryKdnORzY-p0kOdUhaKMVJWR1HE6cEshnPeN9DagO2DGw_uZcgXBgIlNYgUPPAYYhzRBsp16ftzis-tcGT\",\n                            \"userAgent\": null\n                        },\n                        {\n                            \"id\": \"97da2e5e-55d3-45b2-ac20-10c52cc43942\",\n                            \"type\": \"android\",\n                            \"pushToken\": \"fXue60qbTrWYA9lFrEHtpP:APA91bEYp43F2MhToQZQ3XPtZBBESqyyCnMW47vdUErfsffDf03Kz9irX2eo29P0bJJIDRp8Hp7mM9hcy17bxq9bGkJmBKI4mqX8AYjPbfiO-22X4xMzqx8KfzMinYBXNRprAsmmZ81Q\",\n                            \"userAgent\": null\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"9c230bdf-c1fb-4899-8fc7-44ca2267b14d"},{"name":"Update Self Profile Info","id":"a8e68184-a188-44fe-8fa1-60d7f3f0a4ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateSelfProfile($details: MemberDetails!) {\n    selfMutation {\n        updateProfile(details: $details) {\n            ... on UserNotFoundError {\n                __typename\n                message\n            }\n            ... on CannotModifyDirSyncManagedFields {\n                __typename\n                message\n            }\n            ... on FullOrganizationMember {\n                __typename\n                id\n                firstName\n                lastName\n                role\n            }\n        }\n    }\n}","variables":"{\n   \"details\": {\n        \"firstName\": \"Support\",\n        \"lastName\": \"Hypercare\",\n        \"role\": \"Support\"\n    }\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"update-self-profile\">Update Self Profile</h2>\n<p>GraphQL mutation to update your own profile information, such as their first name, last name, and job title</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>details</code>(Object):</p>\n<ul>\n<li><p><code>firstName</code>(String)</p>\n</li>\n<li><p><code>lastName</code>(String)</p>\n</li>\n<li><p><code>role</code>(String): Job title of the user</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the updated user</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"4fdbb060-8fa9-478f-acd6-b18cab126e6f","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateAddressPreference($details: MemberDetails!) {\n    selfMutation {\n        updateProfile(details: $details) {\n            ... on UserNotFoundError {\n                __typename\n                message\n            }\n            ... on CannotModifyDirSyncManagedFields {\n                __typename\n                message\n            }\n            ... on FullOrganizationMember {\n                __typename\n                id\n                firstName\n                lastName\n                role\n            }\n        }\n    }\n}","variables":"{\n   \"details\": {\n        \"firstName\": \"Support\",\n        \"lastName\": \"Hypercare\",\n        \"role\": \"Support\"\n    }\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Mar 2024 04:33:44 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"273"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"325bf095-2bdf-401c-bc57-848aaf3efb21"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfMutation\": {\n            \"updateProfile\": {\n                \"__typename\": \"FullOrganizationMember\",\n                \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                \"firstName\": \"Support\",\n                \"lastName\": \"Hypercare\",\n                \"role\": \"Support\"\n            }\n        }\n    }\n}"}],"_postman_id":"a8e68184-a188-44fe-8fa1-60d7f3f0a4ac"}],"id":"92e19549-a9ad-4cce-b82a-c3162d8cd232","description":"<p>This section contains functionalities applicable to your own user and profile.</p>\n","_postman_id":"92e19549-a9ad-4cce-b82a-c3162d8cd232","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}}],"id":"0c7116df-0dc1-4ce0-a3a3-624d407e0da2","description":"<p>This section provides developers with essential details to seamlessly integrate user lookup and management functionalities into their applications. The documentation is divided into three sections: General, Admin, and Self queries.</p>\n<p>The General collection comprises queries accessible to all members, enabling access to information about others within their organization.</p>\n<p>The Admin collection offers queries that empower administrators to perform various user management tasks, including querying, creating, updating, and deleting user profiles. Additionally, administrators can reset user passwords, manage user addresses, logout user devices, and maintain user notes.</p>\n<p>The Self collection caters to users' needs to query and update their own profile information, as well as manage their addresses and notes.</p>\n","_postman_id":"0c7116df-0dc1-4ce0-a3a3-624d407e0da2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Chat","item":[{"name":"Admin","item":[{"name":"Remove Member","id":"c26cff43-fadf-4309-8607-9b4aa18bd8e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation removeMember($chatId: ID!, $userId: ID!) {\n    chat(chatId: $chatId) {\n        admin {\n            removeMember(userId: $userId) {\n                ...ChatFragment\n            }\n        }\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"chatId\": \"{{chatId}}\",\n\t\"userId\": \"{{userId}}\"\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"remove-member-from-chat-admin\">Remove Member from Chat (Admin)</h2>\n<p>GraphQL mutation for admins to remove a member from a chat. It verifies the membership, removes the member, and sends a system message to notify other members of the removal.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>chatId</code> (String): the ID of the chat from which the member is being removed.</p>\n</li>\n<li><p><code>userId</code> (String): the ID of the user to be removed from the chat.</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>The chat object from which the member was removed.</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>UserNotMemberOfChat</code> : The user being removed is not a member of the chat</p>\n</li>\n<li><p><code>UserNotFound</code> : Cannot find user for given ID</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"44991254-348e-4aa3-a27f-73b26c601ed0","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation removeMember($chatId: ID!, $userId: ID!) {\n    chat(chatId: $chatId) {\n        admin {\n            removeMember(userId: $userId) {\n                ...ChatFragment\n            }\n        }\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"chatId\": \"0e1b88fc-d11a-4b74-9aa8-088ab8c5edb4\",\n\t\"userId\": \"bf0cc06e-d95f-4593-9b8a-006804440305\"\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 20:41:12 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"909"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"36c8ed3e-b7c7-46ec-a881-3d7dd83c2e03"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"chat\": {\n            \"admin\": {\n                \"removeMember\": {\n                    \"id\": \"0e1b88fc-d11a-4b74-9aa8-088ab8c5edb4\",\n                    \"title\": null,\n                    \"members\": [\n                        {\n                            \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                            \"username\": \"support\",\n                            \"firstname\": \"Support\",\n                            \"lastname\": \"Hypercare\"\n                        }\n                    ],\n                    \"lastMessage\": {\n                        \"id\": 38614,\n                        \"type\": \"system\",\n                        \"message\": \"Bob Smith has been removed\",\n                        \"sender\": {\n                            \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                            \"username\": \"support\",\n                            \"firstname\": \"Support\",\n                            \"lastname\": \"Hypercare\"\n                        },\n                        \"dateCreated\": \"2024-03-04T20:41:12.487Z\"\n                    },\n                    \"lastUnreadMessage\": null,\n                    \"unreadPriorityMessages\": []\n                }\n            }\n        }\n    }\n}"},{"id":"ccbc1cc2-3491-42ab-8db9-4e2d7be76219","name":"Remove Member - Not admin of chat error","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation removeMember($chatId: ID!, $userId: ID!) {\n    chat(chatId: $chatId) {\n        admin {\n            removeMember(userId: $userId) {\n                ...ChatFragment\n            }\n        }\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"chatId\": \"08f1811a-38a9-4df4-8eae-c8fc644cb774\",\n\t\"userId\": \"00370510-82b6-4626-901a-f7206f24f952\"\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Content-Length","value":"197","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Date","value":"Fri, 14 Jun 2019 19:33:01 GMT","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"Surrogate-Control","value":"no-store","enabled":true},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate","enabled":true},{"key":"Pragma","value":"no-cache","enabled":true},{"key":"Expires","value":"0","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains","enabled":true},{"key":"X-Cache","value":"Error from cloudfront","enabled":true},{"key":"Via","value":"1.1 ce475d5a085e50a2b454f6aec0f8826f.cloudfront.net (CloudFront)","enabled":true},{"key":"X-Amz-Cf-Pop","value":"YTO50-C1","enabled":true},{"key":"X-Amz-Cf-Id","value":"BsCIhYFzFSCSWpeYf0m4G3JgMiD3_p7kHdi-71m7XXdpErYrde3HLA==","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"Member is not admin of chat\",\n            \"name\": \"MemberNotAdminOfChat\",\n            \"code\": \"MemberNotAdminOfChat\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": null\n}"},{"id":"acf6110d-1c7c-429b-ba82-8f9fbe709aa3","name":"Remove Member - Chat not in Organization","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation removeMember($chatId: ID!, $userId: ID!) {\n    chat(chatId: $chatId) {\n        admin {\n            removeMember(userId: $userId) {\n                ...ChatFragment\n            }\n        }\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"chatId\": \"b9e3fd0f-d424-4664-bd7a-3e8f141ef240\",\n\t\"userId\": \"072d7ac6-a0f4-48d9-b036-168a5fd149b8\"\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 27 Sep 2019 17:20:15 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Content-Length","value":"225","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Set-Cookie","value":"AWSALB=C12exsmK4NWYpcUJJMXG9OsncN0ouX7CoY5/h/yKaDL9ElQ4XCt46r75OuhvwKQeS2iyKZMME3HKkhqEu6xpxMn5Jd0Vk/peJdoAK24z6EnUX/aEBEeVtoTVoPmJ; Expires=Fri, 04 Oct 2019 17:20:15 GMT; Path=/","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"Surrogate-Control","value":"no-store","enabled":true},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate","enabled":true},{"key":"Pragma","value":"no-cache","enabled":true},{"key":"Expires","value":"0","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"Chat does not belong to this organization\",\n            \"name\": \"ChatNotMemberOfOrganization\",\n            \"code\": \"ChatNotMemberOfOrganization\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": null\n}"}],"_postman_id":"c26cff43-fadf-4309-8607-9b4aa18bd8e8"},{"name":"Promote Member","id":"034bd668-c5fe-439a-8b32-391c812413b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation removeMember($chatId: ID!, $userId: ID!) {\n    chat(chatId: $chatId) {\n        admin {\n            removeMember(userId: $userId) {\n                ...ChatFragment\n            }\n        }\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"chatId\": \"{{chatId}}\",\n\t\"userId\": \"{{userId}}\"\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"promote-member-to-admin-of-chat-admin\">Promote Member to Admin of Chat (Admin)</h2>\n<p>GraphQL mutation for admins to promote a member to become the admin of a chat.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>chatId</code> (String): the ID of the chat from which the member is being removed.</p>\n</li>\n<li><p><code>userId</code> (String): the ID of the user to be removed from the chat.</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>The chat object from which the member was promoted.</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>UserNotMemberOfChat</code> : The user being removed is not a member of the chat</p>\n</li>\n<li><p><code>UserNotFound</code> : Cannot find user for given ID</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"87cf1c83-34c8-45c7-bafa-02ed5916f2d6","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation removeMember($chatId: ID!, $userId: ID!) {\n    chat(chatId: $chatId) {\n        admin {\n            removeMember(userId: $userId) {\n                ...ChatFragment\n            }\n        }\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"chatId\": \"0e1b88fc-d11a-4b74-9aa8-088ab8c5edb4\",\n\t\"userId\": \"bf0cc06e-d95f-4593-9b8a-006804440305\"\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 20:41:12 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"909"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"36c8ed3e-b7c7-46ec-a881-3d7dd83c2e03"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"chat\": {\n            \"admin\": {\n                \"removeMember\": {\n                    \"id\": \"0e1b88fc-d11a-4b74-9aa8-088ab8c5edb4\",\n                    \"title\": null,\n                    \"members\": [\n                        {\n                            \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                            \"username\": \"support\",\n                            \"firstname\": \"Support\",\n                            \"lastname\": \"Hypercare\"\n                        }\n                    ],\n                    \"lastMessage\": {\n                        \"id\": 38614,\n                        \"type\": \"system\",\n                        \"message\": \"Bob Smith has been removed\",\n                        \"sender\": {\n                            \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                            \"username\": \"support\",\n                            \"firstname\": \"Support\",\n                            \"lastname\": \"Hypercare\"\n                        },\n                        \"dateCreated\": \"2024-03-04T20:41:12.487Z\"\n                    },\n                    \"lastUnreadMessage\": null,\n                    \"unreadPriorityMessages\": []\n                }\n            }\n        }\n    }\n}"},{"id":"054c3069-a2b1-4a4d-bcef-ab3982c6a6b6","name":"Remove Member - Not admin of chat error","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation removeMember($chatId: ID!, $userId: ID!) {\n    chat(chatId: $chatId) {\n        admin {\n            removeMember(userId: $userId) {\n                ...ChatFragment\n            }\n        }\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"chatId\": \"08f1811a-38a9-4df4-8eae-c8fc644cb774\",\n\t\"userId\": \"00370510-82b6-4626-901a-f7206f24f952\"\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Content-Length","value":"197","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Date","value":"Fri, 14 Jun 2019 19:33:01 GMT","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"Surrogate-Control","value":"no-store","enabled":true},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate","enabled":true},{"key":"Pragma","value":"no-cache","enabled":true},{"key":"Expires","value":"0","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains","enabled":true},{"key":"X-Cache","value":"Error from cloudfront","enabled":true},{"key":"Via","value":"1.1 ce475d5a085e50a2b454f6aec0f8826f.cloudfront.net (CloudFront)","enabled":true},{"key":"X-Amz-Cf-Pop","value":"YTO50-C1","enabled":true},{"key":"X-Amz-Cf-Id","value":"BsCIhYFzFSCSWpeYf0m4G3JgMiD3_p7kHdi-71m7XXdpErYrde3HLA==","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"Member is not admin of chat\",\n            \"name\": \"MemberNotAdminOfChat\",\n            \"code\": \"MemberNotAdminOfChat\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": null\n}"},{"id":"e9b69bf1-c608-4126-837d-cf8077b020c6","name":"Remove Member - Chat not in Organization","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation removeMember($chatId: ID!, $userId: ID!) {\n    chat(chatId: $chatId) {\n        admin {\n            removeMember(userId: $userId) {\n                ...ChatFragment\n            }\n        }\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"chatId\": \"b9e3fd0f-d424-4664-bd7a-3e8f141ef240\",\n\t\"userId\": \"072d7ac6-a0f4-48d9-b036-168a5fd149b8\"\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 27 Sep 2019 17:20:15 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Content-Length","value":"225","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Set-Cookie","value":"AWSALB=C12exsmK4NWYpcUJJMXG9OsncN0ouX7CoY5/h/yKaDL9ElQ4XCt46r75OuhvwKQeS2iyKZMME3HKkhqEu6xpxMn5Jd0Vk/peJdoAK24z6EnUX/aEBEeVtoTVoPmJ; Expires=Fri, 04 Oct 2019 17:20:15 GMT; Path=/","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"Surrogate-Control","value":"no-store","enabled":true},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate","enabled":true},{"key":"Pragma","value":"no-cache","enabled":true},{"key":"Expires","value":"0","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"Chat does not belong to this organization\",\n            \"name\": \"ChatNotMemberOfOrganization\",\n            \"code\": \"ChatNotMemberOfOrganization\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": null\n}"}],"_postman_id":"034bd668-c5fe-439a-8b32-391c812413b9"}],"id":"9aaf7b90-e728-4044-b37d-e6be3f971a1a","description":"<p>This section contains functionalities only accessable to users with administrator privileges. The error <code>UserNotAdminForScope</code> will return for all unauthorized access.</p>\n","_postman_id":"9aaf7b90-e728-4044-b37d-e6be3f971a1a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Non-admin","item":[{"name":"Message Templates","item":[{"name":"Fetch Message Templates","id":"ca83006e-3353-4faa-88fc-f5190850cc47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchMessageTemplates($chatId: ID!) {\n    chat(chatId: $chatId) {\n        messageTemplates {\n            templates {\n                id\n                formTitle\n                requestTitle\n                description\n                disclaimer {\n                    title\n                    body\n                }\n                request {\n                    children {\n                        id\n                        type\n                        title\n                        isRequired\n                        validation {\n                            ...MessageTemplateFieldValidationFragment\n                        }\n                        ... on MessageTemplateTextField {\n                            text\n                            placeholder\n                        }\n                        ... on MessageTemplateDatePicker {\n                            dateTime\n                        }\n                        ... on MessageTemplateDropdown {\n                            options\n                            selectedOption\n                        }\n                        ... on MessageTemplateAttachments {\n                            attachments {\n                                ...AttachmentFragment\n                            }\n                        }\n                        ... on MessageTemplateMultilineTextField {\n                            text\n                        }\n                        ... on MessageTemplateCheckbox {\n                            options\n                            state\n                        }\n                        ... on MessageTemplateRadioButton {\n                            options\n                            selectedOption\n                        }\n                        ... on MessageTemplateToggle {\n                            toggleState\n                        }\n                    }\n                },\n                response {\n                    type\n                }\n                status\n                metadata {\n                    parentId\n                    sentAt\n                    sentBy { id }\n                    respondedBy { id }\n                    respondedAt\n                    isEnabledForGroupChat\n                }\n            }\n        }\n    }\n}\n\nfragment MessageTemplateFieldValidationFragment on MessageTemplateFieldValidation {\n    maxLength\n    minLength\n    maxSelection\n    minSelection\n    maxDate\n    minDate\n    maxAttachments\n    regex {\n        value\n        error\n    }\n    supportedAttachments\n}\n\nfragment AttachmentFragment on File {\n    id\n    url\n}","variables":"{\n    \"chatId\": \"{{chatId}}\"\n}"}},"url":"{{api_base_url}}/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ca83006e-3353-4faa-88fc-f5190850cc47"},{"name":"Fetch Message Template","id":"cb109ee2-49e2-4edf-a8c9-4039e17b250f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchMessageTemplate($chatId: ID!, $templateId: ID!) {\n    chat(chatId: $chatId) {\n        messageTemplates {\n            template(id: $templateId) {\n                ...MessageTemplateFormFragment\n            }\n        }\n    }\n}\n\nfragment MessageTemplateFormFragment on MessageTemplateForm {\n    id\n    formTitle\n    requestTitle\n    description\n    disclaimer {\n        title\n        body\n    }\n    request {\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    response {\n        type\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    metadata {\n        isEnabledForGroupChat\n    }\n}\n\nfragment MessageTemplateFieldFragment on MessageTemplateField {\n    id\n    type\n    title\n    isRequired\n    validation {\n        ...MessageTemplateFieldValidationFragment\n    }\n    ... on MessageTemplateTextField {\n        text\n        placeholder\n    }\n    ... on MessageTemplateDatePicker {\n        dateTime\n    }\n    ... on MessageTemplateDropdown {\n        options\n        selectedOption\n    }\n    ... on MessageTemplateAttachments {\n        attachments {\n            ...AttachmentFragment\n        }\n    }\n    ... on MessageTemplateMultilineTextField {\n        text\n        placeholder\n    }\n    ... on MessageTemplateCheckbox {\n        options\n        state\n    }\n    ... on MessageTemplateRadioButton {\n        options\n        selectedOption\n    }\n    ... on MessageTemplateToggle {\n        toggleState: state\n    }\n}\n\nfragment MessageTemplateFieldValidationFragment on MessageTemplateFieldValidation {\n    maxLength\n    minLength\n    maxSelection\n    minSelection\n    maxDate\n    minDate\n    maxAttachments\n    regex {\n        value\n        error\n    }\n    supportedAttachments\n}\n\nfragment AttachmentFragment on File {\n    id\n    url\n}","variables":"{\n    \"chatId\": \"{{chatId}}\",\n    \"templateId\": \"{{templateId}}\"\n}"}},"url":"{{api_base_url}}/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cb109ee2-49e2-4edf-a8c9-4039e17b250f"},{"name":"Send Template Message","id":"c825f7b1-3579-451b-ac57-4e0fea4492a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation SendTemplateMessage($chatId: ID!, $uniqueId: ID, $templateData: MessageTemplatePayload!, $priority: MessagePriority, $repliedTo: Int) {\n    chat(chatId: $chatId) {\n        sendTemplateMessage(uniqueId: $uniqueId, templateData: $templateData, priorityType: $priority, repliedTo: $repliedTo) {\n            ...MessageFragment\n        }\n    }\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    template {\n        ...MessageTemplateFormFragment\n    }\n    priorityType\n}\n\nfragment MessageTemplateFormFragment on MessageTemplateForm {\n    id\n    formTitle\n    requestTitle\n    description\n    disclaimer {\n        title\n        body\n    }\n    request {\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    response {\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n}\n\nfragment MessageTemplateFieldFragment on MessageTemplateField {\n    id\n    type\n    title\n    isRequired\n    ... on MessageTemplateTextField {\n        text\n        placeholder\n    }\n    ... on MessageTemplateDatePicker {\n        dateTime\n    }\n    ... on MessageTemplateDropdown {\n        options\n        selectedOption\n    }\n    ... on MessageTemplateAttachments {\n        attachments {\n            ...AttachmentFragment\n        }\n    }\n    ... on MessageTemplateMultilineTextField {\n        text\n    }\n    ... on MessageTemplateCheckbox {\n        options\n        state\n    }\n    ... on MessageTemplateRadioButton {\n        options\n        selectedOption\n    }\n    ... on MessageTemplateToggle {\n        toggleState: state\n    }\n}\n\nfragment AttachmentFragment on File {\n    id\n    url\n}","variables":"{\n    \"chatId\": \"{{chatId}}\",\n    \"uniqueId\": \"0c87c404-0baa-4178-bb6c-804475f0a6af\",\n    \"templateData\": {\n        \"templateId\": \"{{templateId}}\",\n        \"requestTitle\": \"Demo request\",\n        \"fields\": [\n            {\n                \"id\": \"61c615665789336df19b732a\",\n                \"text\": \"Test\"\n            },\n            {\n                \"id\": \"61c615665789336df19b732c\",\n                \"text\": \"2022-03-01\"\n            },\n            {\n                \"id\": \"61c615665789336df19b732e\",\n                \"selectedOption\": 1\n            },\n            {\n                \"id\": \"61c615665789336df19b7330\",\n                \"text\": \"hello world\"\n            },\n            {\n                \"id\": \"61c615665789336df19b7332\",\n                \"state\": [false, true, true]\n            },\n            {\n                \"id\": \"61c615665789336df19b7334\",\n                \"toggleState\": false\n            },\n            {\n                \"id\": \"61c615665789336df19b7336\",\n                \"selectedOption\": 2\n            },\n            {\n                \"id\": \"61c615665789336df19b7338\",\n                \"attachmentIds\": [16]\n            }\n        ]\n    },\n    \"priority\": \"regular\",\n    \"repliedTo\": null\n}"}},"url":"{{api_base_url}}/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c825f7b1-3579-451b-ac57-4e0fea4492a5"},{"name":"Respond To Template Message","id":"0b597802-4973-4c7c-b706-bf438a8860ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation RespondToTemplateMessage($chatId: ID!, $messageId: Int!, $uniqueId: ID, $responseData: MessageTemplateFormResponseValue!) {\n    chat(chatId: $chatId) {\n        message(id: $messageId) {\n            template {\n                respond(uniqueId: $uniqueId, responseData: $responseData) {\n                    ...MessageFragment\n                }\n            }\n        }\n    }\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    template {\n        ...MessageTemplateFormFragment\n    }\n    repliedTo {\n        id\n        type\n        message\n        template {\n            ...MessageTemplateFormFragment\n        }\n    }\n}\n\nfragment MessageTemplateFormFragment on MessageTemplateForm {\n    id\n    formTitle\n    requestTitle\n    description\n    disclaimer {\n        title\n        body\n    }\n    request {\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    response {\n        isAcknowledged\n        isAffirmative\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    status\n}\n\nfragment MessageTemplateFieldFragment on MessageTemplateField {\n    id\n    type\n    title\n    isRequired\n    ... on MessageTemplateTextField {\n        text\n        placeholder\n    }\n    ... on MessageTemplateDatePicker {\n        dateTime\n    }\n    ... on MessageTemplateDropdown {\n        options\n        selectedOption\n    }\n    ... on MessageTemplateAttachments {\n        attachments {\n            ...AttachmentFragment\n        }\n    }\n    ... on MessageTemplateMultilineTextField {\n        text\n    }\n    ... on MessageTemplateCheckbox {\n        options\n        state\n    }\n    ... on MessageTemplateRadioButton {\n        options\n        selectedOption\n    }\n    ... on MessageTemplateToggle {\n        toggleState: state\n    }\n}\n\nfragment AttachmentFragment on File {\n    id\n    url\n}","variables":"{\n    \"uniqueId\": \"a2eef157-58e8-41e8-8f8f-0087eebf6d14\",\n    \"chatId\": \"{{chatId}}\",\n    \"messageId\": {{messageId}},\n    \"responseData\": {\n        \"children\": [\n            {\n                \"id\": \"61d890f5eb90365ddeb05239\",\n                \"text\": \"hello\"\n            },\n            {\n                \"id\": \"61d890f5eb90365ddeb0523a\",\n                \"selectedOption\": 0\n            }\n        ]\n    }\n}"}},"url":"{{api_base_url}}/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"6990d72a-8f9b-4229-b92e-525f53621be5","name":"Successful Response to Affirmative Response Type","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation RespondToTemplateMessage($chatId: ID!, $messageId: Int!, $uniqueId: ID, $responseData: MessageTemplateFormResponseValue!) {\n    chat(chatId: $chatId) {\n        message(id: $messageId) {\n            template {\n                respond(uniqueId: $uniqueId, responseData: $responseData) {\n                    ...MessageFragment\n                }\n            }\n        }\n    }\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    template {\n        ...MessageTemplateFormFragment\n    }\n    repliedTo {\n        id\n        type\n        message\n        template {\n            ...MessageTemplateFormFragment\n        }\n    }\n}\n\nfragment MessageTemplateFormFragment on MessageTemplateForm {\n    id\n    formTitle\n    requestTitle\n    description\n    disclaimer {\n        title\n        body\n    }\n    request {\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    response {\n        isAcknowledged\n        isAffirmative\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    status\n}\n\nfragment MessageTemplateFieldFragment on MessageTemplateField {\n    id\n    type\n    title\n    isRequired\n    ... on MessageTemplateTextField {\n        text\n        placeholder\n    }\n    ... on MessageTemplateDatePicker {\n        dateTime\n    }\n    ... on MessageTemplateDropdown {\n        options\n        selectedOption\n    }\n    ... on MessageTemplateAttachments {\n        attachments {\n            ...AttachmentFragment\n        }\n    }\n    ... on MessageTemplateMultilineTextField {\n        text\n    }\n    ... on MessageTemplateCheckbox {\n        options\n        state\n    }\n    ... on MessageTemplateRadioButton {\n        options\n        selectedOption\n    }\n    ... on MessageTemplateToggle {\n        toggleState: state\n    }\n}\n\nfragment AttachmentFragment on File {\n    id\n    url\n}","variables":"{\n    \"uniqueId\": \"0b9dc1b4-ae37-45e2-9660-223af1508da2\",\n    \"chatId\": \"{{chatId}}\",\n    \"messageId\": {{messageId}},\n    \"responseData\": {\n        \"isAffirmative\": true\n    },\n    \"priority\": \"regular\"\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"Surrogate-Control","value":"no-store","enabled":true},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate","enabled":true},{"key":"Pragma","value":"no-cache","enabled":true},{"key":"Expires","value":"0","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Content-Length","value":"3535","enabled":true},{"key":"Date","value":"Mon, 13 Dec 2021 09:23:14 GMT","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"chat\": {\n            \"message\": {\n                \"template\": {\n                    \"respond\": {\n                        \"id\": 208081,\n                        \"type\": \"text\",\n                        \"message\": \"Umar has responded to Umar request sent 21/May/2021. Tap the reply bubble to view detailed response\",\n                        \"template\": null,\n                        \"repliedTo\": {\n                            \"id\": 208080,\n                            \"type\": \"template\",\n                            \"message\": \"\",\n                            \"template\": {\n                                \"id\": \"61b706e64f0d515b77717b9c\",\n                                \"formTitle\": \"Test Affirmation Response Type\",\n                                \"requestTitle\": null,\n                                \"description\": \"This form is to demonstrate that you can create and respond to a form with an affirmation response type.\",\n                                \"disclaimer\": null,\n                                \"request\": {\n                                    \"children\": [\n                                        {\n                                            \"id\": \"61b706e64f0d515b77717b9d\",\n                                            \"type\": \"textfield\",\n                                            \"title\": \"Random Field 2\",\n                                            \"isRequired\": true,\n                                            \"text\": \"Test with radio button 2\",\n                                            \"placeholder\": \"random value\"\n                                        },\n                                        {\n                                            \"id\": \"61b706e64f0d515b77717b9e\",\n                                            \"type\": \"dropdown\",\n                                            \"title\": \"Random Dropdown 2\",\n                                            \"isRequired\": false,\n                                            \"options\": [\n                                                \"Wow\",\n                                                \"Hello World\",\n                                                \"Last\"\n                                            ],\n                                            \"selectedOption\": 1\n                                        },\n                                        {\n                                            \"id\": \"61b706e64f0d515b77717b9f\",\n                                            \"type\": \"multiline_textfield\",\n                                            \"title\": \"Show Ralph Multiline\",\n                                            \"isRequired\": false,\n                                            \"text\": \"this is a multiline textfield\"\n                                        },\n                                        {\n                                            \"id\": \"61b706e64f0d515b77717ba0\",\n                                            \"type\": \"checkbox\",\n                                            \"title\": \"Which sports do you play?\",\n                                            \"isRequired\": true,\n                                            \"options\": [\n                                                \"Badminton\",\n                                                \"Soccer\",\n                                                \"Basketball\"\n                                            ],\n                                            \"state\": [\n                                                true,\n                                                false,\n                                                false\n                                            ]\n                                        },\n                                        {\n                                            \"id\": \"61b706e64f0d515b77717ba1\",\n                                            \"type\": \"toggle\",\n                                            \"title\": \"Share with friend?\",\n                                            \"isRequired\": true,\n                                            \"toggleState\": false\n                                        },\n                                        {\n                                            \"id\": \"61b706e64f0d515b77717ba2\",\n                                            \"type\": \"radio_button\",\n                                            \"title\": \"Random radio 1\",\n                                            \"isRequired\": true,\n                                            \"options\": [\n                                                \"Wow 2\",\n                                                \"Hello World 2\",\n                                                \"Last 2\"\n                                            ],\n                                            \"selectedOption\": 0\n                                        }\n                                    ]\n                                },\n                                \"response\": {\n                                    \"isAcknowledged\": false,\n                                    \"isAffirmative\": true,\n                                    \"children\": []\n                                },\n                                \"status\": \"responded\"\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"68ea75f4-73cb-4750-8215-7c6418a424e5","name":"Successful Response to Acknowledge Response Type","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation RespondToTemplateMessage($chatId: ID!, $messageId: Int!, $uniqueId: ID, $responseData: MessageTemplateFormResponseValue!) {\n    chat(chatId: $chatId) {\n        message(id: $messageId) {\n            template {\n                respond(uniqueId: $uniqueId, responseData: $responseData) {\n                    ...MessageFragment\n                }\n            }\n        }\n    }\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    template {\n        ...MessageTemplateFormFragment\n    }\n    repliedTo {\n        id\n        type\n        message\n        template {\n            ...MessageTemplateFormFragment\n        }\n    }\n}\n\nfragment MessageTemplateFormFragment on MessageTemplateForm {\n    id\n    formTitle\n    requestTitle\n    description\n    disclaimer {\n        title\n        body\n    }\n    request {\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    response {\n        isAcknowledged\n        isAffirmative\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    status\n}\n\nfragment MessageTemplateFieldFragment on MessageTemplateField {\n    id\n    type\n    title\n    isRequired\n    ... on MessageTemplateTextField {\n        text\n        placeholder\n    }\n    ... on MessageTemplateDatePicker {\n        dateTime\n    }\n    ... on MessageTemplateDropdown {\n        options\n        selectedOption\n    }\n    ... on MessageTemplateAttachments {\n        attachments {\n            ...AttachmentFragment\n        }\n    }\n    ... on MessageTemplateMultilineTextField {\n        text\n    }\n    ... on MessageTemplateCheckbox {\n        options\n        state\n    }\n    ... on MessageTemplateRadioButton {\n        options\n        selectedOption\n    }\n    ... on MessageTemplateToggle {\n        toggleState: state\n    }\n}\n\nfragment AttachmentFragment on File {\n    id\n    url\n}","variables":"{\n    \"uniqueId\": \"b65d1311-4eaa-4202-b535-fa9da0f4ddcb\",\n    \"chatId\": \"{{chatId}}\",\n    \"messageId\": {{messageId}},\n    \"responseData\": {\n        \"isAcknowledged\": true\n    },\n    \"priority\": \"regular\"\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"Surrogate-Control","value":"no-store","enabled":true},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate","enabled":true},{"key":"Pragma","value":"no-cache","enabled":true},{"key":"Expires","value":"0","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Content-Length","value":"3535","enabled":true},{"key":"Date","value":"Mon, 13 Dec 2021 09:23:14 GMT","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"chat\": {\n            \"message\": {\n                \"template\": {\n                    \"respond\": {\n                        \"id\": 208081,\n                        \"type\": \"text\",\n                        \"message\": \"Umar has responded to Umar request sent 21/May/2021. Tap the reply bubble to view detailed response\",\n                        \"template\": null,\n                        \"repliedTo\": {\n                            \"id\": 208080,\n                            \"type\": \"template\",\n                            \"message\": \"\",\n                            \"template\": {\n                                \"id\": \"61b706e64f0d515b77717b9c\",\n                                \"formTitle\": \"Test Affirmation Response Type\",\n                                \"requestTitle\": null,\n                                \"description\": \"This form is to demonstrate that you can create and respond to a form with an affirmation response type.\",\n                                \"disclaimer\": null,\n                                \"request\": {\n                                    \"children\": [\n                                        {\n                                            \"id\": \"61b706e64f0d515b77717b9d\",\n                                            \"type\": \"textfield\",\n                                            \"title\": \"Random Field 2\",\n                                            \"isRequired\": true,\n                                            \"text\": \"Test with radio button 2\",\n                                            \"placeholder\": \"random value\"\n                                        },\n                                        {\n                                            \"id\": \"61b706e64f0d515b77717b9e\",\n                                            \"type\": \"dropdown\",\n                                            \"title\": \"Random Dropdown 2\",\n                                            \"isRequired\": false,\n                                            \"options\": [\n                                                \"Wow\",\n                                                \"Hello World\",\n                                                \"Last\"\n                                            ],\n                                            \"selectedOption\": 1\n                                        },\n                                        {\n                                            \"id\": \"61b706e64f0d515b77717b9f\",\n                                            \"type\": \"multiline_textfield\",\n                                            \"title\": \"Show Ralph Multiline\",\n                                            \"isRequired\": false,\n                                            \"text\": \"this is a multiline textfield\"\n                                        },\n                                        {\n                                            \"id\": \"61b706e64f0d515b77717ba0\",\n                                            \"type\": \"checkbox\",\n                                            \"title\": \"Which sports do you play?\",\n                                            \"isRequired\": true,\n                                            \"options\": [\n                                                \"Badminton\",\n                                                \"Soccer\",\n                                                \"Basketball\"\n                                            ],\n                                            \"state\": [\n                                                true,\n                                                false,\n                                                false\n                                            ]\n                                        },\n                                        {\n                                            \"id\": \"61b706e64f0d515b77717ba1\",\n                                            \"type\": \"toggle\",\n                                            \"title\": \"Share with friend?\",\n                                            \"isRequired\": true,\n                                            \"toggleState\": false\n                                        },\n                                        {\n                                            \"id\": \"61b706e64f0d515b77717ba2\",\n                                            \"type\": \"radio_button\",\n                                            \"title\": \"Random radio 1\",\n                                            \"isRequired\": true,\n                                            \"options\": [\n                                                \"Wow 2\",\n                                                \"Hello World 2\",\n                                                \"Last 2\"\n                                            ],\n                                            \"selectedOption\": 0\n                                        }\n                                    ]\n                                },\n                                \"response\": {\n                                    \"isAcknowledged\": true,\n                                    \"isAffirmative\": false,\n                                    \"children\": []\n                                },\n                                \"status\": \"responded\"\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"23215dcb-f464-4052-9872-1e203d8d5119","name":"User Already Responded To Template Message","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation RespondToTemplateMessage($chatId: ID!, $messageId: Int!, $uniqueId: ID, $responseData: MessageTemplateFormResponseValue!) {\n    chat(chatId: $chatId) {\n        message(id: $messageId) {\n            template {\n                respond(uniqueId: $uniqueId, responseData: $responseData) {\n                    ...MessageFragment\n                }\n            }\n        }\n    }\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    template {\n        ...MessageTemplateFormFragment\n    }\n    repliedTo {\n        id\n        type\n        message\n        template {\n            ...MessageTemplateFormFragment\n        }\n    }\n}\n\nfragment MessageTemplateFormFragment on MessageTemplateForm {\n    id\n    formTitle\n    requestTitle\n    description\n    disclaimer {\n        title\n        body\n    }\n    request {\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    response {\n        isAcknowledged\n        isAffirmative\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    status\n}\n\nfragment MessageTemplateFieldFragment on MessageTemplateField {\n    id\n    type\n    title\n    isRequired\n    ... on MessageTemplateTextField {\n        text\n        placeholder\n    }\n    ... on MessageTemplateDatePicker {\n        dateTime\n    }\n    ... on MessageTemplateDropdown {\n        options\n        selectedOption\n    }\n    ... on MessageTemplateAttachments {\n        attachments {\n            ...AttachmentFragment\n        }\n    }\n    ... on MessageTemplateMultilineTextField {\n        text\n    }\n    ... on MessageTemplateCheckbox {\n        options\n        state\n    }\n    ... on MessageTemplateRadioButton {\n        options\n        selectedOption\n    }\n    ... on MessageTemplateToggle {\n        toggleState: state\n    }\n}\n\nfragment AttachmentFragment on File {\n    id\n    url\n}","variables":"{\n    \"uniqueId\": \"7fa80898-ec0e-491d-b21a-2eea855f3455\",\n    \"chatId\": \"{{chatId}}\",\n    \"messageId\": {{messageId}},\n    \"responseData\": {\n        \"children\": [\n            {\n                \"id\": \"61d890f5eb90365ddeb05239\",\n                \"text\": \"hello\"\n            },\n            {\n                \"id\": \"61d890f5eb90365ddeb0523a\",\n                \"selectedOption\": 0\n            }\n        ]\n    }\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"Surrogate-Control","value":"no-store","enabled":true},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate","enabled":true},{"key":"Pragma","value":"no-cache","enabled":true},{"key":"Expires","value":"0","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Content-Length","value":"325","enabled":true},{"key":"Date","value":"Fri, 18 Feb 2022 03:19:19 GMT","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"User has already responded to template message\",\n            \"name\": \"UserAlreadyRespondedToTemplateMessaage\",\n            \"code\": \"UserAlreadyRespondedToTemplateMessaage\",\n            \"statusCode\": 409\n        }\n    ],\n    \"data\": {\n        \"chat\": {\n            \"message\": {\n                \"template\": null\n            }\n        }\n    }\n}"}],"_postman_id":"0b597802-4973-4c7c-b706-bf438a8860ad"},{"name":"Fetch Message Template Metadata","id":"f7216e0b-5dcc-4caf-b169-068da6eab412","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchMessage($chatId: ID!, $messageId: Int!) {\n    chat(chatId: $chatId) {\n        message(id: $messageId) {\n            ...MessageFragment\n        }\n    }\n}\n\nfragment MessageFragment on Message {\n    id\n    message\n    type\n    template {\n        ...MessageTemplateFormFragment\n    }\n}\n\nfragment MessageTemplateFormFragment on MessageTemplateForm {\n    id\n    formTitle\n    requestTitle\n    description\n    disclaimer {\n        title\n        body\n    }\n    request {\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    response {\n        type\n        isAcknowledged\n        isAffirmative\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    metadata {\n        ...MessageTemplateMetadataFragment\n    }\n    status\n}\n\nfragment MessageTemplateFieldFragment on MessageTemplateField {\n    id\n    type\n    title\n    isRequired\n}\n\nfragment MessageTemplateMetadataFragment on MessageTemplateMetadata {\n    parentId\n    sentAt\n    sentBy {\n        ...PublicUserFragment\n    }\n    respondedAt\n    respondedBy {\n        ...PublicUserFragment\n    }\n}\n\nfragment PublicUserFragment on PublicUser {\n    id\n    firstname\n    lastname\n    username\n}","variables":"{\n\t\"chatId\": \"{{chatId}}\",\n\t\"messageId\": {{messageId}}\n}"}},"url":"{{api_base_url}}/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f7216e0b-5dcc-4caf-b169-068da6eab412"},{"name":"Favourite Template Message","id":"4c65b8bb-9a29-437b-8784-d7447438aca1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation FavouriteTemplateMessage($chatId: ID!, $templateId: ID!) {\n    chat(chatId: $chatId) {\n        messageTemplates {\n            template(id: $templateId) {\n                favourite {\n                    ...MessageTemplateFormFragment\n                }\n            }\n        }\n    }\n}\n\nfragment MessageTemplateFormFragment on MessageTemplateForm {\n    id\n    formTitle\n    requestTitle\n    description\n    disclaimer {\n        title\n        body\n    }\n    request {\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    response {\n        type\n        isAcknowledged\n        isAffirmative\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    metadata {\n        ...MessageTemplateMetadataFragment\n    }\n    status\n}\n\nfragment MessageTemplateFieldFragment on MessageTemplateField {\n    id\n    type\n    title\n    isRequired\n}\n\nfragment MessageTemplateMetadataFragment on MessageTemplateMetadata {\n    parentId\n    sentAt\n    sentBy {\n        ...PublicUserFragment\n    }\n    respondedAt\n    respondedBy {\n        ...PublicUserFragment\n    }\n}\n\nfragment PublicUserFragment on PublicUser {\n    id\n    firstname\n    lastname\n    username\n}","variables":"{\n    \"chatId\": \"{{chatId}}\",\n    \"templateId\": \"{{templateId}}\"\n}"}},"url":"{{api_base_url}}/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c65b8bb-9a29-437b-8784-d7447438aca1"},{"name":"Un-Favourite Template Message","id":"230544a1-62be-4804-894e-3b8b9cba7961","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation FavouriteTemplateMessage($chatId: ID!, $templateId: ID!) {\n    chat(chatId: $chatId) {\n        messageTemplates {\n            template(id: $templateId) {\n                unfavourite {\n                    ...MessageTemplateFormFragment\n                }\n            }\n        }\n    }\n}\n\nfragment MessageTemplateFormFragment on MessageTemplateForm {\n    id\n    formTitle\n    requestTitle\n    description\n    disclaimer {\n        title\n        body\n    }\n    request {\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    response {\n        type\n        isAcknowledged\n        isAffirmative\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    metadata {\n        ...MessageTemplateMetadataFragment\n    }\n    status\n}\n\nfragment MessageTemplateFieldFragment on MessageTemplateField {\n    id\n    type\n    title\n    isRequired\n}\n\nfragment MessageTemplateMetadataFragment on MessageTemplateMetadata {\n    parentId\n    sentAt\n    sentBy {\n        ...PublicUserFragment\n    }\n    respondedAt\n    respondedBy {\n        ...PublicUserFragment\n    }\n}\n\nfragment PublicUserFragment on PublicUser {\n    id\n    firstname\n    lastname\n    username\n}","variables":"{\n    \"chatId\": \"{{chatId}}\",\n    \"templateId\": \"{{templateId}}\"\n}"}},"url":"{{api_base_url}}/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"230544a1-62be-4804-894e-3b8b9cba7961"},{"name":"Fetch Favourited Message Templates","id":"e1391b2c-e500-434c-8cd3-ef5688fa9ded","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchFavouritedMessageTemplates($chatId: ID!) {\n    chat(chatId: $chatId) {\n        messageTemplates {\n            favouriteTemplates {\n                ...MessageTemplateFormFragment\n            }\n        }\n    }\n}\n\nfragment MessageTemplateFormFragment on MessageTemplateForm {\n    id\n    formTitle\n    requestTitle\n    description\n    disclaimer {\n        title\n        body\n    }\n    request {\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    response {\n        type\n        isAcknowledged\n        isAffirmative\n        children {\n            ...MessageTemplateFieldFragment\n        }\n    }\n    metadata {\n        ...MessageTemplateMetadataFragment\n    }\n    status\n}\n\nfragment MessageTemplateFieldFragment on MessageTemplateField {\n    id\n    type\n    title\n    isRequired\n}\n\nfragment MessageTemplateMetadataFragment on MessageTemplateMetadata {\n    parentId\n    sentAt\n    sentBy {\n        ...PublicUserFragment\n    }\n    respondedAt\n    respondedBy {\n        ...PublicUserFragment\n    }\n}\n\nfragment PublicUserFragment on PublicUser {\n    id\n    firstname\n    lastname\n    username\n}","variables":"{\n    \"chatId\": \"{{chatId}}\"\n}"}},"url":"{{api_base_url}}/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e1391b2c-e500-434c-8cd3-ef5688fa9ded"}],"id":"3cc44e98-8d23-432f-a73d-21deb9386f8d","description":"<p>Templated messages allows users to create structured and standardized fillable forms that ensure that the right types of information are sent. Examples of useful applications include consultation requests, verbal orders, and referral forms.</p>\n<p>The response to these templates are also customizable, allowing creators to specify the type of response that is expected, such as: require the recipient to formally acknowledge the message; require a specific decision/choice; or require a detailed free-text response.</p>\n<p>The following queries and mutations allows users to interact with existing templates.</p>\n<p>Please contact Hypercare's Customer Success team to learn more about setting up templated messages.</p>\n","_postman_id":"3cc44e98-8d23-432f-a73d-21deb9386f8d","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Muting Chats","item":[{"name":"Mute Chat","id":"6ef30bbb-7bb4-4561-aabe-27f722b8dcc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation MuteChat($chatId: ID!, $muteTypes: [MuteNotificationType!]!) {\n    chat(chatId: $chatId) {\n        mute(types: $muteTypes)\n    }\n}","variables":"{\n    \"chatId\": \"{{chatId}}\",\n    \"muteTypes\": [\n        \"messages\",\n        \"system\"\n    ]\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"mute-chat\">Mute Chat</h2>\n<p>GraphQL mutation for muting notifications for a given chat.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>chatId</code> (String): The ID of the chat</p>\n</li>\n<li><p><code>muteTypes</code> ([String]): An array of the type of messages to be muted (e.g. messages, system)</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>A boolean value indicating if operation was successful</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>InvalidOperationShellAccount</code> : Inactive/shell accounts cannot perform this action</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ef30bbb-7bb4-4561-aabe-27f722b8dcc2"},{"name":"Un-Mute Chat","id":"cd8d078b-0fcd-497a-b826-0aafcdd7caad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation MuteChat($chatId: ID!, $muteTypes: [MuteNotificationType!]!) {\n    chat(chatId: $chatId) {\n        unmute(types: $muteTypes)\n    }\n}","variables":"{\n    \"chatId\": \"{{chatId}}\",\n    \"muteTypes\": [\n        \"messages\",\n        \"system\"\n    ]\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"unmute-chat\">Unmute Chat</h2>\n<p>GraphQL mutation for unmuting notifications for a given chat.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>chatId</code> (String): The ID of the chat</p>\n</li>\n<li><p><code>muteTypes</code> ([String]): An array of the type of messages to be unmuted (e.g. messages, system)</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>A boolean value indicating if operation was successful</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>InvalidOperationShellAccount</code> : Inactive/shell accounts cannot perform this action</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"cd8d078b-0fcd-497a-b826-0aafcdd7caad"},{"name":"Is Chat Muted","event":[{"listen":"test","script":{"id":"8047b88a-51a4-49f0-8049-abc1132dd59b","exec":[" let jsonBody = pm.response.json();","pm.test(\"Get chat id\",function(){","   ","  let id = jsonBody.data.chat.id;","  console.log(\"the chat id is:\",id);","    })","    pm.test(\"Total number of members in chat\", function(){","      let lengthOfMembers =  jsonBody.data.chat.members.length ;","      console.log(\"total number of members in the chat are:\", lengthOfMembers);","    })","    pm.test(\"Get all the members in chat\", function(){","         let Members =  jsonBody.data.chat.members ;","         console.log(\"The members are :\",Members);","        ","        })","    pm.test(\"Get the last message\", function(){","        let message = jsonBody.data.chat.lastMessage.message;","        console.log(\"The last message is:\", message)","        ","    })","    pm.test(\"Get chat created date\",function(){","        let date = jsonBody.data.chat.lastMessage.dateCreated;","        console.log(\"The date created is:\", date);","    })"],"type":"text/javascript","packages":{}}}],"id":"e01358eb-5cf7-41fe-a5b9-f927cd583902","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query fetchChat($chatId: ID!) {\n    chat(chatId: $chatId) {\n        ...ChatFragment\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    type\n    muted\n}\n ","variables":"{\n\t\"chatId\": \"{{chatId}}\"\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"is-chat-muted\">Is Chat Muted</h2>\n<p>GraphQL query for checking if a chat has been muted</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>chatId</code> (String): The ID of the chat</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the chat</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>UserNotMemberOfChat</code>: You are not a part of the chat you are trying to access</p>\n</li>\n<li><p><code>ChatNotMemberOfOrganization</code>: The chat ID given does not exist in your organization</p>\n</li>\n<li><p><code>InvalidOperationShellAccount</code> : Inactive/shell accounts cannot perform this action</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e01358eb-5cf7-41fe-a5b9-f927cd583902"}],"id":"4933225d-9233-4116-bf5b-87bd7a27e737","_postman_id":"4933225d-9233-4116-bf5b-87bd7a27e737","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Fetch Chat","event":[{"listen":"test","script":{"id":"8047b88a-51a4-49f0-8049-abc1132dd59b","exec":[" let jsonBody = pm.response.json();","pm.test(\"Get chat id\",function(){","   ","  let id = jsonBody.data.chat.id;","  console.log(\"the chat id is:\",id);","    })","    pm.test(\"Total number of members in chat\", function(){","      let lengthOfMembers =  jsonBody.data.chat.members.length ;","      console.log(\"total number of members in the chat are:\", lengthOfMembers);","    })","    pm.test(\"Get all the members in chat\", function(){","         let Members =  jsonBody.data.chat.members ;","         console.log(\"The members are :\",Members);","        ","        })","    pm.test(\"Get the last message\", function(){","        let message = jsonBody.data.chat.lastMessage.message;","        console.log(\"The last message is:\", message)","        ","    })","    pm.test(\"Get chat created date\",function(){","        let date = jsonBody.data.chat.lastMessage.dateCreated;","        console.log(\"The date created is:\", date);","    })"],"type":"text/javascript","packages":{}}}],"id":"45a86f4e-60a3-4079-9655-b1579c4164d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query fetchChat($chatId: ID!) {\n    chat(chatId: $chatId) {\n        ...ChatFragment\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    type\n    muted\n    image {\n        ...AttachmentFragment\n    }\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n \n \nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n    addresses {\n        id\n        address\n        type\n        access\n        ordinal\n    }\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}\n\nfragment AttachmentFragment on Attachment {\n    id\n    url\n}","variables":"{\n\t\"chatId\": \"{{chatId}}\"\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"fetch-chat-by-id\">Fetch Chat by ID</h2>\n<p>GraphQL query for retrieving the details of a specific chat. It verifies the user's membership in the chat and the chat's association with the user's organization before fetching the chat details.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>chatId</code> (String): ID of the chat to retrieve</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the chat details.</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>UserNotMemberOfChat</code>: You are not a part of the chat you are trying to access</p>\n</li>\n<li><p><code>ChatNotMemberOfOrganization</code>: The chat ID given does not exist in your organization</p>\n</li>\n<li><p><code>InvalidOperationShellAccount</code> : Inactive/shell accounts cannot perform this action</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"0e5f7e31-556d-414d-a87f-3362ed4c2d63","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query fetchChat($chatId: ID!) {\n    chat(chatId: $chatId) {\n        ...ChatFragment\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    image {\n        ...AttachmentFragment\n    }\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n \n \nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n    addresses {\n        id\n        address\n        type\n        access\n        ordinal\n    }\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}\n\nfragment AttachmentFragment on Attachment {\n    id\n    url\n}","variables":"{\n\t\"chatId\": \"9b98216c-76af-4402-bcc4-1d8415234485\"\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 09 Oct 2020 16:21:21 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Content-Length","value":"4393","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"Surrogate-Control","value":"no-store","enabled":true},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate","enabled":true},{"key":"Pragma","value":"no-cache","enabled":true},{"key":"Expires","value":"0","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"chat\": {\n            \"id\": \"9b98216c-76af-4402-bcc4-1d8415234485\",\n            \"title\": \"Chat Title\",\n            \"image\": null,\n            \"members\": [\n                {\n                    \"id\": \"20bfe8b5-62a4-4af8-9df7-6c7c5950d1c8\",\n                    \"username\": \"testUser002\",\n                    \"firstname\": \"Jane\",\n                    \"lastname\": \"Doe\",\n                    \"addresses\": [\n                        {\n                            \"id\": \"dW1hckBoeXBlcmNhcmUuY29t\",\n                            \"address\": \"email@example.com\",\n                            \"type\": \"email\",\n                            \"access\": \"public\",\n                            \"ordinal\": \"primary\"\n                        }\n                    ]\n                },\n                {\n                    \"id\": \"d15a26df-483c-4baf-8606-d7dee3076859\",\n                    \"username\": \"testUser001\",\n                    \"firstname\": \"Bob\",\n                    \"lastname\": \"Smith\",\n                    \"addresses\": []\n                }\n            ],\n            \"lastMessage\": {\n                \"id\": 146701,\n                \"type\": \"text\",\n                \"message\": \"This is an example chat message.\",\n                \"sender\": {\n                    \"id\": \"d15a26df-483c-4baf-8606-d7dee3076859\",\n                    \"username\": \"testUser001\",\n                    \"firstname\": \"Bob\",\n                    \"lastname\": \"Smith\",\n                    \"addresses\": []\n                },\n                \"dateCreated\": \"2019-12-18T17:06:49.942Z\"\n            },\n            \"lastUnreadMessage\": null,\n            \"unreadPriorityMessages\": []\n        }\n    }\n}"},{"id":"7cf094dc-8844-4f36-9716-401a2f5430d4","name":"Failed - User Not Member of Chat","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query fetchChat($chatId: ID!) {\n    chat(chatId: $chatId) {\n        ...ChatFragment\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    type\n    muted\n    image {\n        ...AttachmentFragment\n    }\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n \n \nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n    addresses {\n        id\n        address\n        type\n        access\n        ordinal\n    }\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}\n\nfragment AttachmentFragment on Attachment {\n    id\n    url\n}","variables":"{\n\t\"chatId\": \"22951fbf-5e5b-4d43-accc-832e61c1c697\"\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 18:21:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"196"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"117f5546-8ad9-48e1-9342-f0097f70d2b9"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"User is not a member of chat\",\n            \"name\": \"UserNotMemberOfChat\",\n            \"code\": \"UserNotMemberOfChat\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": null\n}"}],"_postman_id":"45a86f4e-60a3-4079-9655-b1579c4164d1"},{"name":"Fetch Messages for Chat","event":[{"listen":"test","script":{"id":"aada7428-8607-4c09-954e-5d85bdcc458b","exec":["let jsonBody = pm.response.json();","let response = jsonBody.data.chat.messages;","pm.test(\"Fetch total number of messages\", function(){","    let messages = jsonBody.data.chat.messages.messages.length;","    console.log(\"Total number of messages are:\", messages)","});"," ","pm.test(\"fetch all messages\",function(){","    console.log(\"the messages are:\");","     ","    for(let i=0;i<response.messages.length;i++){","     console.log(response.messages[i].message);","    }","    ","});","pm.test(\"the first message is\", function(){"," ","  console.log(\"The first message of this chat is\",response.messages[0].message); ","});","pm.test(\"the last message is\", function(){","    var k =   response.messages.length-1;","      let lastmessage = response.messages[k].message;","  console.log(\"The last message of this chat is\", lastmessage); ","});","pm.test(\"fetch all message Id's\", function(){","     console.log(\"the messages Id's are:\");","     for(let i=0;i<response.messages.length;i++){","     console.log(response.messages[i].id);","    }","    ","})","",""],"type":"text/javascript","packages":{}}}],"id":"365d8ce0-1a72-4c64-9e6c-c2e3da9a08c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query fetchMessages ($chatId: ID!, $continuationId: Int, $limit: Int, $direction: PaginationDirection) {\n    chat(chatId: $chatId) {\n        messages(continuationId: $continuationId, limit: $limit, direction: $direction) {\n            messages {\n                ...messageFields\n            }\n        }\n    }\n}\n\nfragment messageFields on Message {\n    id\n    priority\n    message\n    image\n    type\n    template {\n        id\n        formTitle\n        requestTitle\n    }\n    attachment {\n        ...AttachmentFragment\n    }\n    dateCreated\n    sender {\n        ...publicUserFields\n    }\n    deliveredTo {\n        ...deliveryReceiptFields\n    }\n    readBy {\n        ...readReceiptFields\n    }\n    repliedTo {\n        id\n    }\n    data {\n        __typename ... on ConsultMessageData {\n            mrn\n            firstname\n            lastname\n            details\n        }\n    }\n}\n\nfragment readReceiptFields on ReadReceipt {\n    messageId\n    user {\n        ...publicUserFields\n    }\n    timestamp\n}\n\nfragment deliveryReceiptFields on DeliveryReceipt {\n    messageId\n    user {\n        ...publicUserFields\n    }\n    timestamp\n}\n\nfragment publicUserFields on PublicUser {\n    id\n    firstname\n    lastname\n    username\n    email\n    phonenumber\n    role\n    profilePic {\n        url\n    }\n    workStatus\n    statusDescription\n    workStatusProxy {\n        ...publicUserStatusFields\n    }\n}\n\nfragment publicUserStatusFields on PublicUser {\n    id\n    firstname\n    lastname\n    username\n    phonenumber\n    role\n    profilePic {\n        url\n    }\n}\n\nfragment AttachmentFragment on File {\n    id\n    url\n    # mimeType\n    # fileName\n}\n","variables":"{\n\t\"chatId\": \"{{chatId}}\",\n\t\"direction\": \"previous\",\n    \"limit\": 25\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"fetch-messages-for-chat\">Fetch Messages for Chat</h2>\n<p>This GraphQL query retrieves paginated messages for a given chat ID. It supports both forward and reverse pagination based on the provided direction.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>chatId</code>(String): ID referencing the chat to fetch messages for</p>\n</li>\n<li><p><code>continuationId</code> (String, optional): ID of the message to start paginating from</p>\n</li>\n<li><p><code>limit</code>(Int): the number of messages to load</p>\n</li>\n<li><p><code>direction</code>(String): The direction of pagination. It can be either <code>previous</code> for forward pagination or <code>next</code> for reverse pagination</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object containing the list of retrieved messages</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>InvalidOperationShellAccount</code> : Inactive/shell accounts cannot perform this action</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"d645e79a-a51c-49e8-99cd-1cd467af16be","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query fetchMessages ($chatId: ID!, $continuationId: Int, $limit: Int, $direction: PaginationDirection) {\n    chat(chatId: $chatId) {\n        messages(continuationId: $continuationId, limit: $limit, direction: $direction) {\n            messages {\n                ...messageFields\n            }\n        }\n    }\n}\n\nfragment messageFields on Message {\n    id\n    priority\n    message\n    image\n    type\n    template {\n        id\n        formTitle\n        requestTitle\n    }\n    attachment {\n        ...AttachmentFragment\n    }\n    dateCreated\n    sender {\n        ...publicUserFields\n    }\n    deliveredTo {\n        ...deliveryReceiptFields\n    }\n    readBy {\n        ...readReceiptFields\n    }\n    repliedTo {\n        id\n    }\n    data {\n        __typename ... on ConsultMessageData {\n            mrn\n            firstname\n            lastname\n            details\n        }\n    }\n}\n\nfragment readReceiptFields on ReadReceipt {\n    messageId\n    user {\n        ...publicUserFields\n    }\n    timestamp\n}\n\nfragment deliveryReceiptFields on DeliveryReceipt {\n    messageId\n    user {\n        ...publicUserFields\n    }\n    timestamp\n}\n\nfragment publicUserFields on PublicUser {\n    id\n    firstname\n    lastname\n    username\n    email\n    phonenumber\n    role\n    profilePic {\n        url\n    }\n    workStatus\n    statusDescription\n    workStatusProxy {\n        ...publicUserStatusFields\n    }\n}\n\nfragment publicUserStatusFields on PublicUser {\n    id\n    firstname\n    lastname\n    username\n    phonenumber\n    role\n    profilePic {\n        url\n    }\n}\n\nfragment AttachmentFragment on File {\n    id\n    url\n    # mimeType\n    # fileName\n}\n","variables":"{\n\t\"chatId\": \"0258aec5-ca74-4af8-b49a-ef3764daf70a\",\n\t\"direction\": \"previous\",\n    \"limit\": 25\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 19:17:52 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"10161"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"95087c82-6aea-4252-9610-0904f6cb0190"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"chat\": {\n            \"messages\": {\n                \"messages\": [\n                    {\n                        \"id\": 38608,\n                        \"priority\": false,\n                        \"message\": \"testing\",\n                        \"image\": null,\n                        \"type\": \"text\",\n                        \"template\": null,\n                        \"attachment\": null,\n                        \"dateCreated\": \"2024-03-04T19:07:52.670Z\",\n                        \"sender\": {\n                            \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                            \"firstname\": \"Support\",\n                            \"lastname\": \"Hypercare\",\n                            \"username\": \"support\",\n                            \"email\": \"support@hypercare.com\",\n                            \"phonenumber\": null,\n                            \"role\": \"Support\",\n                            \"profilePic\": null,\n                            \"workStatus\": \"on_shift\",\n                            \"statusDescription\": null,\n                            \"workStatusProxy\": {\n                                \"id\": \"93cfa194-d825-4890-86b3-7b12bbf3a6bc\",\n                                \"firstname\": \"Bob\",\n                                \"lastname\": \"Smith\",\n                                \"username\": \"user001\",\n                                \"phonenumber\": null,\n                                \"role\": \"Physician - Emergency\",\n                                \"profilePic\": null\n                            }\n                        },\n                        \"deliveredTo\": [\n                            {\n                                \"messageId\": 38608,\n                                \"user\": {\n                                    \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                                    \"firstname\": \"Support\",\n                                    \"lastname\": \"Hypercare\",\n                                    \"username\": \"support\",\n                                    \"email\": \"support@hypercare.com\",\n                                    \"phonenumber\": null,\n                                    \"role\": \"Support\",\n                                    \"profilePic\": null,\n                                    \"workStatus\": \"on_shift\",\n                                    \"statusDescription\": null,\n                                    \"workStatusProxy\": {\n                                        \"id\": \"93cfa194-d825-4890-86b3-7b12bbf3a6bc\",\n                                        \"firstname\": \"Bob\",\n                                        \"lastname\": \"Smith\",\n                                        \"username\": \"user001\",\n                                        \"phonenumber\": null,\n                                        \"role\": \"Physician - Emergency\",\n                                        \"profilePic\": null\n                                    }\n                                },\n                                \"timestamp\": \"2024-03-04T19:07:52.000Z\"\n                            }\n                        ],\n                        \"readBy\": [\n                            {\n                                \"messageId\": 38608,\n                                \"user\": {\n                                    \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                                    \"firstname\": \"Support\",\n                                    \"lastname\": \"Hypercare\",\n                                    \"username\": \"support\",\n                                    \"email\": \"support@hypercare.com\",\n                                    \"phonenumber\": null,\n                                    \"role\": \"Support\",\n                                    \"profilePic\": null,\n                                    \"workStatus\": \"on_shift\",\n                                    \"statusDescription\": null,\n                                    \"workStatusProxy\": {\n                                        \"id\": \"93cfa194-d825-4890-86b3-7b12bbf3a6bc\",\n                                        \"firstname\": \"Bob\",\n                                        \"lastname\": \"Smith\",\n                                        \"username\": \"user001\",\n                                        \"phonenumber\": null,\n                                        \"role\": \"Physician - Emergency\",\n                                        \"profilePic\": null\n                                    }\n                                },\n                                \"timestamp\": \"2024-03-04T19:07:52.000Z\"\n                            }\n                        ],\n                        \"repliedTo\": null,\n                        \"data\": null\n                    },\n                    {\n                        \"id\": 38605,\n                        \"priority\": false,\n                        \"message\": \"+ FIRST4 LAST4 has been added\",\n                        \"image\": null,\n                        \"type\": \"system\",\n                        \"template\": null,\n                        \"attachment\": null,\n                        \"dateCreated\": \"2024-03-04T18:57:07.698Z\",\n                        \"sender\": {\n                            \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                            \"firstname\": \"Support\",\n                            \"lastname\": \"Hypercare\",\n                            \"username\": \"support\",\n                            \"email\": \"support@hypercare.com\",\n                            \"phonenumber\": null,\n                            \"role\": \"Support\",\n                            \"profilePic\": null,\n                            \"workStatus\": \"on_shift\",\n                            \"statusDescription\": null,\n                            \"workStatusProxy\": {\n                                \"id\": \"93cfa194-d825-4890-86b3-7b12bbf3a6bc\",\n                                \"firstname\": \"Bob\",\n                                \"lastname\": \"Smith\",\n                                \"username\": \"user001\",\n                                \"phonenumber\": null,\n                                \"role\": \"Physician - Emergency\",\n                                \"profilePic\": null\n                            }\n                        },\n                        \"deliveredTo\": [\n                            {\n                                \"messageId\": 38605,\n                                \"user\": {\n                                    \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                                    \"firstname\": \"Support\",\n                                    \"lastname\": \"Hypercare\",\n                                    \"username\": \"support\",\n                                    \"email\": \"support@hypercare.com\",\n                                    \"phonenumber\": null,\n                                    \"role\": \"Support\",\n                                    \"profilePic\": null,\n                                    \"workStatus\": \"on_shift\",\n                                    \"statusDescription\": null,\n                                    \"workStatusProxy\": {\n                                        \"id\": \"93cfa194-d825-4890-86b3-7b12bbf3a6bc\",\n                                        \"firstname\": \"Bob\",\n                                        \"lastname\": \"Smith\",\n                                        \"username\": \"user001\",\n                                        \"phonenumber\": null,\n                                        \"role\": \"Physician - Emergency\",\n                                        \"profilePic\": null\n                                    }\n                                },\n                                \"timestamp\": \"2024-03-04T18:57:07.000Z\"\n                            }\n                        ],\n                        \"readBy\": [\n                            {\n                                \"messageId\": 38605,\n                                \"user\": {\n                                    \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                                    \"firstname\": \"Support\",\n                                    \"lastname\": \"Hypercare\",\n                                    \"username\": \"support\",\n                                    \"email\": \"support@hypercare.com\",\n                                    \"phonenumber\": null,\n                                    \"role\": \"Support\",\n                                    \"profilePic\": null,\n                                    \"workStatus\": \"on_shift\",\n                                    \"statusDescription\": null,\n                                    \"workStatusProxy\": {\n                                        \"id\": \"93cfa194-d825-4890-86b3-7b12bbf3a6bc\",\n                                        \"firstname\": \"Bob\",\n                                        \"lastname\": \"Smith\",\n                                        \"username\": \"user001\",\n                                        \"phonenumber\": null,\n                                        \"role\": \"Physician - Emergency\",\n                                        \"profilePic\": null\n                                    }\n                                },\n                                \"timestamp\": \"2024-03-04T18:57:07.000Z\"\n                            }\n                        ],\n                        \"repliedTo\": null,\n                        \"data\": null\n                    },\n                    {\n                        \"id\": 26117,\n                        \"priority\": false,\n                        \"message\": \"Hey pmqozkgx, welcome to Hypercare! If you have any questions check out https://support.hypercare.com. If you have any additional questions or issues, you can always send us a quick message! We are excited for you to join our family.\",\n                        \"image\": null,\n                        \"type\": \"text\",\n                        \"template\": null,\n                        \"attachment\": null,\n                        \"dateCreated\": \"2024-01-23T17:27:42.414Z\",\n                        \"sender\": {\n                            \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                            \"firstname\": \"Support\",\n                            \"lastname\": \"Hypercare\",\n                            \"username\": \"support\",\n                            \"email\": \"support@hypercare.com\",\n                            \"phonenumber\": null,\n                            \"role\": \"Support\",\n                            \"profilePic\": null,\n                            \"workStatus\": \"on_shift\",\n                            \"statusDescription\": null,\n                            \"workStatusProxy\": {\n                                \"id\": \"93cfa194-d825-4890-86b3-7b12bbf3a6bc\",\n                                \"firstname\": \"Bob\",\n                                \"lastname\": \"Smith\",\n                                \"username\": \"user001\",\n                                \"phonenumber\": null,\n                                \"role\": \"Physician - Emergency\",\n                                \"profilePic\": null\n                            }\n                        },\n                        \"deliveredTo\": [\n                            {\n                                \"messageId\": 26117,\n                                \"user\": {\n                                    \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                                    \"firstname\": \"Support\",\n                                    \"lastname\": \"Hypercare\",\n                                    \"username\": \"support\",\n                                    \"email\": \"support@hypercare.com\",\n                                    \"phonenumber\": null,\n                                    \"role\": \"Support\",\n                                    \"profilePic\": null,\n                                    \"workStatus\": \"on_shift\",\n                                    \"statusDescription\": null,\n                                    \"workStatusProxy\": {\n                                        \"id\": \"93cfa194-d825-4890-86b3-7b12bbf3a6bc\",\n                                        \"firstname\": \"Bob\",\n                                        \"lastname\": \"Smith\",\n                                        \"username\": \"user001\",\n                                        \"phonenumber\": null,\n                                        \"role\": \"Physician - Emergency\",\n                                        \"profilePic\": null\n                                    }\n                                },\n                                \"timestamp\": \"2024-01-23T17:27:42.000Z\"\n                            }\n                        ],\n                        \"readBy\": [\n                            {\n                                \"messageId\": 26117,\n                                \"user\": {\n                                    \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                                    \"firstname\": \"Support\",\n                                    \"lastname\": \"Hypercare\",\n                                    \"username\": \"support\",\n                                    \"email\": \"support@hypercare.com\",\n                                    \"phonenumber\": null,\n                                    \"role\": \"Support\",\n                                    \"profilePic\": null,\n                                    \"workStatus\": \"on_shift\",\n                                    \"statusDescription\": null,\n                                    \"workStatusProxy\": {\n                                        \"id\": \"93cfa194-d825-4890-86b3-7b12bbf3a6bc\",\n                                        \"firstname\": \"Bob\",\n                                        \"lastname\": \"Smith\",\n                                        \"username\": \"user001\",\n                                        \"phonenumber\": null,\n                                        \"role\": \"Physician - Emergency\",\n                                        \"profilePic\": null\n                                    }\n                                },\n                                \"timestamp\": \"2024-01-23T17:27:42.000Z\"\n                            }\n                        ],\n                        \"repliedTo\": null,\n                        \"data\": null\n                    }\n                ]\n            }\n        }\n    }\n}"},{"id":"b99a0064-20af-40a2-8564-c483e9aeee58","name":"Failed - User Not Member of Chat","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query fetchMessages ($chatId: ID!, $continuationId: Int, $limit: Int, $direction: PaginationDirection) {\n    chat(chatId: $chatId) {\n        messages(continuationId: $continuationId, limit: $limit, direction: $direction) {\n            messages {\n                ...messageFields\n            }\n        }\n    }\n}\n\nfragment messageFields on Message {\n    id\n    priority\n    message\n    image\n    type\n    template {\n        id\n        formTitle\n        requestTitle\n    }\n    attachment {\n        ...AttachmentFragment\n    }\n    dateCreated\n    sender {\n        ...publicUserFields\n    }\n    deliveredTo {\n        ...deliveryReceiptFields\n    }\n    readBy {\n        ...readReceiptFields\n    }\n    repliedTo {\n        id\n    }\n    data {\n        __typename ... on ConsultMessageData {\n            mrn\n            firstname\n            lastname\n            details\n        }\n    }\n}\n\nfragment readReceiptFields on ReadReceipt {\n    messageId\n    user {\n        ...publicUserFields\n    }\n    timestamp\n}\n\nfragment deliveryReceiptFields on DeliveryReceipt {\n    messageId\n    user {\n        ...publicUserFields\n    }\n    timestamp\n}\n\nfragment publicUserFields on PublicUser {\n    id\n    firstname\n    lastname\n    username\n    email\n    phonenumber\n    role\n    profilePic {\n        url\n    }\n    workStatus\n    statusDescription\n    workStatusProxy {\n        ...publicUserStatusFields\n    }\n}\n\nfragment publicUserStatusFields on PublicUser {\n    id\n    firstname\n    lastname\n    username\n    phonenumber\n    role\n    profilePic {\n        url\n    }\n}\n\nfragment AttachmentFragment on File {\n    id\n    url\n    # mimeType\n    # fileName\n}\n","variables":"{\n\t\"chatId\": \"0258aec5-ca74-4af8-b49a-ef3764daf70\",\n\t\"direction\": \"previous\",\n    \"limit\": 25\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 19:21:57 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"196"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"07508d50-c933-4199-b626-27f73fe84925"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"User is not a member of chat\",\n            \"name\": \"UserNotMemberOfChat\",\n            \"code\": \"UserNotMemberOfChat\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": null\n}"}],"_postman_id":"365d8ce0-1a72-4c64-9e6c-c2e3da9a08c7"},{"name":"Create / Start Chat","event":[{"listen":"test","script":{"id":"bf8f2af1-7dbf-46fd-9b4a-324c56a38fc5","exec":["let jsonBody = pm.response.json();","let response = jsonBody.data.createChat;","pm.test(\"Get the chat id\", function(){","    let chatId = response.id;","    let chatTitle = response.title;","    console.log(\"chatn Id is\"  +chatId+   \"chat title is:\"+ chatTitle);","});","pm.test(\"Get the members in the chat\", function(){","    let members = response.members;","    console.log(\"the members are:\", members);","});","","pm.test(\"Get the length of the members in the chat\", function(){","    let length = response.members.length;","    console.log(\"the length of the members are:\", length);","});","pm.test(\"Get the usernames of all the members\", function(){","    console.log(\"The usernames are: \")","    for(var i=0;i<response.members.length;i++){","      let usernames =  response.members[i].username;","      console.log(usernames)","    }","});",""],"type":"text/javascript","packages":{}}}],"id":"4a7468ed-de2d-49b5-8484-e722872067ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation createChat($userIds: [ID!]!, $title: String) {\n    createChat(members: $userIds, title: $title) {\n        ...ChatFragment\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"userIds\": [\n    \"{{userId1}}\", \"{{userId2}}\"\n    ]\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"create-chat\">Create Chat</h2>\n<p>GraphQL mutation for creating a new chat. It verifies the user's account status and then creates the chat with the specified members, type, and title. If chat matching similar pattern already exists then returns existing chat.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>userIds</code> ([String]): An array of user IDs to be added as members of the chat</p>\n</li>\n<li><p><code>title</code> (String, optional): The initial title of the chat</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>A chat object representing the created chat</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>UserNotFound</code> : One or more of the userIds being added to chat does not exist in the organization</p>\n</li>\n<li><p><code>InvalidOperationNonActiveAccount</code> : One or more of the userIds to be added are inactive/shell accounts</p>\n</li>\n<li><p><code>ChatMembersExceedLimit</code> : Exceed limit of 100 users per chat</p>\n</li>\n<li><p><code>InvalidOperationShellAccount</code> : Inactive/shell accounts cannot perform this action</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"9f4508e1-b973-42ff-a99f-434c60081eef","name":"Success Sample Response - New Chat","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation createChat($userIds: [ID!]!, $title: String) {\n    createChat(members: $userIds, title: $title) {\n        ...ChatFragment\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"userIds\": [\n    \"c4866106-cb24-4ac6-ac94-413975d06bb0\", \"c9c57a2a-9e04-4060-bc17-c3131c87ba9b\"\n    ]\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 19:35:37 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"776"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"72789701-4fe7-4d30-b467-1f0dd6b8a7d0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"createChat\": {\n            \"id\": \"0b001589-7fb2-4907-b6fb-f4b68a271ab4\",\n            \"title\": null,\n            \"members\": [\n                {\n                    \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                    \"username\": \"support\",\n                    \"firstname\": \"Support\",\n                    \"lastname\": \"Hypercare\"\n                },\n                {\n                    \"id\": \"c4866106-cb24-4ac6-ac94-413975d06bb0\",\n                    \"username\": \"user001\",\n                    \"firstname\": \"Bob\",\n                    \"lastname\": \"Smitch\"\n                },\n                {\n                    \"id\": \"c9c57a2a-9e04-4060-bc17-c3131c87ba9b\",\n                    \"username\": \"user4\",\n                    \"firstname\": \"Jane\",\n                    \"lastname\": \"Doe\"\n                }\n            ],\n            \"lastMessage\": null,\n            \"lastUnreadMessage\": null,\n            \"unreadPriorityMessages\": []\n        }\n    }\n}"},{"id":"a5405be2-779b-4931-a95f-36231a317956","name":"Success Sample Response - Existing Chat","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation createChat($userIds: [ID!]!, $title: String) {\n    createChat(members: $userIds, title: $title) {\n        ...ChatFragment\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"userIds\": [\n    \"c4866106-cb24-4ac6-ac94-413975d06bb0\"\n    ]\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 27 Feb 2024 18:56:42 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"916"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"35a3af47-040f-45ff-9aa7-c87965e6191c"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"createChat\": {\n            \"id\": \"732409bc-085b-4569-8e35-6a3d7a15ffa2\",\n            \"title\": null,\n            \"members\": [\n                {\n                    \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                    \"username\": \"support\",\n                    \"firstname\": \"Support\",\n                    \"lastname\": \"Hypercare\"\n                },\n                {\n                    \"id\": \"c4866106-cb24-4ac6-ac94-413975d06bb0\",\n                    \"username\": \"user001\",\n                    \"firstname\": \"Bob\",\n                    \"lastname\": \"Smith\"\n                }\n            ],\n            \"lastMessage\": {\n                \"id\": 38085,\n                \"type\": \"text\",\n                \"message\": \"hi\",\n                \"sender\": {\n                    \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                    \"username\": \"support\",\n                    \"firstname\": \"Support\",\n                    \"lastname\": \"Hypercare\"\n                },\n                \"dateCreated\": \"2024-02-21T16:01:05.270Z\"\n            },\n            \"lastUnreadMessage\": null,\n            \"unreadPriorityMessages\": []\n        }\n    }\n}"},{"id":"8a37164b-3323-489a-8f6d-683114dd18e8","name":"Failed - Can't Start Chat with Shell Account","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation createChat($userIds: [ID!]!, $title: String) {\n    createChat(members: $userIds, title: $title) {\n        ...ChatFragment\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"userIds\": [\"37a5834d-df8e-4740-939d-62cc3bd99ba2\"]\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 23 Mar 2022 16:10:43 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Content-Length","value":"221","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"Surrogate-Control","value":"no-store","enabled":true},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate","enabled":true},{"key":"Pragma","value":"no-cache","enabled":true},{"key":"Expires","value":"0","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"Can't start chat with shell account\",\n            \"name\": \"InvalidOperationShellAccount\",\n            \"code\": \"InvalidOperationShellAccount\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": null\n}"}],"_postman_id":"4a7468ed-de2d-49b5-8484-e722872067ee"},{"name":"Add Members to Chat","event":[{"listen":"test","script":{"id":"8570e40d-7460-472a-8f06-bbebb20a85dd","exec":["let jsonBody = pm.response.json();","let response =  jsonBody.data.chat.addMembers;","pm.test(\"Get the chat id\", function(){","  let chatId = jsonBody.data.chat.addMembers.id;","  console.log(\"the chat Id is:\", chatId);","});","","pm.test(\"Total number of members in the chat\", function(){","    let length = response.members.length;","    console.log(\"Total members in the chat:\", length);","});","pm.test(\"Get the members in the chat\", function(){","    let members = response.members;","    console.log(\"the members in the chat is :\", members);","});","pm.test(\"Get the usernames of all the chats\", function(){","    console.log(\"The usernames are: \")","    for(var i=0;i<response.members.length;i++){","      let usernames =  response.members[i].username;","      console.log(usernames)","    }","});",""],"type":"text/javascript","packages":{}}}],"id":"0eec6ecd-0245-431d-b5d7-e81fb1585f60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation addMembers($chatId: ID!, $userIds: [ID!]!) {\n    chat(chatId: $chatId) {\n        addMembers(userIds: $userIds) {\n            ...ChatFragment\n        }\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"chatId\": \"{{chatId}}\",\n\t\"userIds\": [\"{{userId1}}\", \"{{userId2}}\"]\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"add-members-to-chat\">Add Members to Chat</h2>\n<p>GraphQL mutation for adding new members to an existing chat. It verifies the user's membership in the chat and then adds the specified members to the chat.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>chatId</code> (String): The ID of the chat to which members are being added</p>\n</li>\n<li><p><code>userIds</code> ([String]): An array of user IDs to be added as members of the chat</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object of the updated chat with the new members added</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>UserNotMemberOfChat</code> : The user is not a member of the chat</p>\n</li>\n<li><p><code>ChatNotMemberOfOrganization</code>: chatId provided does not corespond to any chat in the organization</p>\n</li>\n<li><p><code>ChatIsLocked</code>: The chatId given belongs to a locked/archived chat</p>\n</li>\n<li><p><code>MemberAlreadyExistsError</code>: One or more userIds being added already exists in the chat</p>\n</li>\n<li><p><code>InvalidUserIdError</code>: One or more userIds provided are invalid or misformed (e.g., not in the correct format)</p>\n</li>\n<li><p><code>InvalidOperationShellAccount</code> : Inactive/shell accounts cannot perform this action</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"aefc038e-032b-4ac5-9751-6c42058be5cd","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation addMembers($chatId: ID!, $userIds: [ID!]!) {\n    chat(chatId: $chatId) {\n        addMembers(userIds: $userIds) {\n            ...ChatFragment\n        }\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"chatId\": \"0258aec5-ca74-4af8-b49a-ef3764daf70a\",\n\t\"userIds\": [\"c9c57a2a-9e04-4060-bc17-c3131c87ba9b\"]\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 18:57:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1404"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"0dd3f208-1766-498a-bb9d-822b0e0534e1"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"chat\": {\n            \"addMembers\": {\n                \"id\": \"0258aec5-ca74-4af8-b49a-ef3764daf70a\",\n                \"title\": null,\n                \"members\": [\n                    {\n                        \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                        \"username\": \"support\",\n                        \"firstname\": \"Support\",\n                        \"lastname\": \"Hypercare\"\n                    },\n                    {\n                        \"id\": \"5760afe0-0e6b-4a48-a7e6-2ea65c3d674e\",\n                        \"username\": \"testUser001\",\n                        \"firstname\": \"Bob\",\n                        \"lastname\": \"Smith\"\n                    },\n                    {\n                        \"id\": \"c9c57a2a-9e04-4060-bc17-c3131c87ba9b\",\n                        \"username\": \"testUser002\",\n                        \"firstname\": \"Jane\",\n                        \"lastname\": \"Doe\"\n                    }\n                ],\n                \"lastMessage\": {\n                    \"id\": 26117,\n                    \"type\": \"text\",\n                    \"message\": \"This is an example chat message.\",\n                    \"sender\": {\n                        \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                        \"username\": \"support\",\n                        \"firstname\": \"Support\",\n                        \"lastname\": \"Hypercare\"\n                    },\n                    \"dateCreated\": \"2024-01-23T17:27:42.414Z\"\n                },\n                \"lastUnreadMessage\": null,\n                \"unreadPriorityMessages\": []\n            }\n        }\n    }\n}"},{"id":"cadba135-e521-4c92-8d2c-5ef26ff46582","name":"Failed - Chat Not in Org","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation addMembers($chatId: ID!, $userIds: [ID!]!) {\n    chat(chatId: $chatId) {\n        addMembers(userIds: $userIds) {\n            ...ChatFragment\n        }\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"chatId\": \"0258aec5-ca74-4af8-b49a-ef3764daf70a\",\n\t\"userIds\": [\"8245476a-3f2a-4a21-9f91-acd1992810b6\"]\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 18:55:37 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"225"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"056eb9f4-3afb-472d-8f00-604ccdbd5a26"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"Chat does not belong to this organization\",\n            \"name\": \"ChatNotMemberOfOrganization\",\n            \"code\": \"ChatNotMemberOfOrganization\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": null\n}"},{"id":"e9cef424-7e13-4126-bfb1-9ad2ed1487a5","name":"Failed - Member Already in Chat","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation addMembers($chatId: ID!, $userIds: [ID!]!) {\n    chat(chatId: $chatId) {\n        addMembers(userIds: $userIds) {\n            ...ChatFragment\n        }\n    }\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...GeneralUserFragment\n    }\n    lastMessage {\n        ...MessageFragment\n    }\n    lastUnreadMessage {\n        ...MessageFragment\n    }\n    unreadPriorityMessages\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    username\n    firstname\n    lastname\n}\n\nfragment MessageFragment on Message {\n    id\n    type\n    message\n    sender {\n        ...GeneralUserFragment\n    }\n    dateCreated\n}","variables":"{\n\t\"chatId\": \"0258aec5-ca74-4af8-b49a-ef3764daf70a\",\n\t\"userIds\": [\"2b881170-5b6d-11e7-a17b-2d997b30f468\"]\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 18:56:52 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"209"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"fa30f59d-15d0-458f-951b-87ba964516b9"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"Member already exists in chat\",\n            \"name\": \"MemberAlreadyExistsInChat\",\n            \"code\": \"MemberAlreadyExistsInChat\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": null\n}"}],"_postman_id":"0eec6ecd-0245-431d-b5d7-e81fb1585f60"},{"name":"Send Message to Chat","event":[{"listen":"test","script":{"id":"09a11f45-c2dc-42fb-a6bf-c0332b5bce90","exec":["// let jsonBody = pm.response.json();","// let response = jsonBody.data.chat.sendMessage;","// pm.test(\"SEND A MESSAGE\", function(){","//   let message =  response.message;","//   console.log(message);","  ","// });","// pm.test(\"sender's username of the message\", function(){","//     let sender = response.sender.username;","//     console.log(\"sender of the message\", sender);","// });","// pm.test(\"senderId of the message\", function(){","//     let senderId = response.sender.id;","//     console.log(\"senderId of the message\", senderId);","// });","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response time is less than 200ms\", function () {","    pm.expect(pm.response.responseTime).to.be.below(200);","});"],"type":"text/javascript","packages":{}}}],"id":"ce83ba09-8b5c-4e20-a7c7-1eebde08d096","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation sendMessage($chatId: ID!, $uniqueId: ID, $message: String!, $fileId: Int, $type: MessageType, $priorityType: MessagePriority) {\n    chat(chatId: $chatId) {\n        sendMessage(uniqueId: $uniqueId, message: $message, type: $type, fileId: $fileId, priorityType: $priorityType) {\n            id\n            image\n            attachment {\n                ...AttachmentFragment\n            }\n            message\n            type\n            sender {\n                id\n                username\n            }\n        }\n    }\n}\n\nfragment AttachmentFragment on Attachment {\n    id\n    url\n    mimeType\n    fileName\n}","variables":"{\n\t\"chatId\": \"{{chatId}}\",\n\t\"message\": \"testing\",\n    \"priorityType\": \"regular\",\n    \"type\": \"text\"\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"send-message-chat\">Send Message Chat</h2>\n<p>GraphQL mutation for sending a message to a specific chat.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>chatId</code> (String): The ID of the chat to which the message is being sent</p>\n</li>\n<li><p><code>message</code> (String): The content of the message to be sent</p>\n</li>\n<li><p><code>type</code> (String, optional): The type of the message (text, image, system, attachment, template, consult)</p>\n</li>\n<li><p><code>priority</code> (String, optional): The priority of the message (regular, urgent, stat)</p>\n</li>\n<li><p><code>fileId</code> (String, optional): An id referencing the uploaded file on our S3 bucket (e.g. for file/picture messages). See <strong>'Upload Files'</strong></p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the sent message</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>UserNotMemberOfChat</code> : The user is not a member of the chat</p>\n</li>\n<li><p><code>ChatNotMemberOfOrganization</code>: chatId provided does not corespond to any chat in the organization</p>\n</li>\n<li><p><code>ChatIsLocked</code>: The chatId given belongs to a locked/archived chat</p>\n</li>\n<li><p><code>InvalidMessageType</code>: The message type provided is invalid</p>\n</li>\n<li><p><code>InvalidMessagePriority</code>: The message priority provided is invalid</p>\n</li>\n<li><p><code>InvalidOperationShellAccount</code> : Inactive/shell accounts cannot perform this action</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"ffab52f8-ec99-4693-bd6f-17daddd0f09b","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","type":"text","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation sendMessage($chatId: ID!, $uniqueId: ID, $message: String!, $fileId: Int, $type: MessageType, $priorityType: MessagePriority) {\n    chat(chatId: $chatId) {\n        sendMessage(uniqueId: $uniqueId, message: $message, type: $type, fileId: $fileId, priorityType: $priorityType) {\n            id\n            image\n            attachment {\n                ...AttachmentFragment\n            }\n            message\n            type\n            sender {\n                id\n                username\n            }\n        }\n    }\n}\n\nfragment AttachmentFragment on Attachment {\n    id\n    url\n    mimeType\n    fileName\n}","variables":"{\n\t\"chatId\": \"0258aec5-ca74-4af8-b49a-ef3764daf70a\",\n\t\"message\": \"This is an example chat message.\",\n    \"priorityType\": \"regular\",\n    \"type\": \"text\"\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 19:07:52 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"314"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"fd3dcd22-2349-454e-ab65-f63d4c29ccbd"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"chat\": {\n            \"sendMessage\": {\n                \"id\": 38608,\n                \"image\": null,\n                \"attachment\": null,\n                \"message\": \"This is an example chat message.\",\n                \"type\": \"text\",\n                \"sender\": {\n                    \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                    \"username\": \"support\"\n                }\n            }\n        }\n    }\n}"},{"id":"b1227efd-e971-4e24-af5a-b847fa3b94ae","name":"Failed - User Not Member of Chat","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","type":"text","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation sendMessage($chatId: ID!, $uniqueId: ID, $message: String!, $fileId: Int, $type: MessageType, $priority: Boolean) {\n    chat(chatId: $chatId) {\n        sendMessage(uniqueId: $uniqueId, message: $message, type: $type, fileId: $fileId, priority: $priority) {\n            id\n            image\n            attachment {\n                ...AttachmentFragment\n            }\n            message\n            type\n            sender {\n                id\n                username\n            }\n        }\n    }\n}\n\nfragment AttachmentFragment on Attachment {\n    id\n    url\n    mimeType\n    fileName\n}","variables":"{\n\t\"chatId\": \"f05184e7-119c-4664-9402-41de7c05a98f\",\n\t\"message\": \"hey its irsa\",\n\t\"priority\": false\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"Surrogate-Control","value":"no-store","enabled":true},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate","enabled":true},{"key":"Pragma","value":"no-cache","enabled":true},{"key":"Expires","value":"0","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Content-Length","value":"196","enabled":true},{"key":"Date","value":"Mon, 14 Feb 2022 17:14:24 GMT","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"User is not a member of chat\",\n            \"name\": \"UserNotMemberOfChat\",\n            \"code\": \"UserNotMemberOfChat\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": null\n}"}],"_postman_id":"ce83ba09-8b5c-4e20-a7c7-1eebde08d096"},{"name":"Reply to Message","id":"7add02a7-4860-498b-baa1-c79c7fd760c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation sendMessage($chatId: ID!, $message: String!, $fileId: Int, $type: MessageType, $priority: Boolean, $repliedTo: Int) {\n    chat(chatId: $chatId) {\n        sendMessage(message: $message, type: $type, fileId: $fileId, priority: $priority, repliedTo: $repliedTo) {\n            id\n            image\n            attachment {\n                ...AttachmentFragment\n            }\n            message\n            repliedTo {\n                id\n            }\n            forwardOf {\n                id\n            }\n            type\n            sender {\n                id\n                username\n            }\n        }\n    }\n}\n\nfragment AttachmentFragment on Attachment {\n    id\n    url\n    mimeType\n    fileName\n}","variables":"{\n\t\"chatId\": \"{{chatId}}\",\n\t\"message\": \"test reply message\",\n\t\"type\": \"text\",\n\t\"repliedTo\": {{messageId}}\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"reply-to-message\">Reply to Message</h2>\n<p>GraphQL mutation for replying to a specific message in chat.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>chatId</code> (String): The ID of the chat to which the message is being sent</p>\n</li>\n<li><p><code>message</code> (String): The content of the message to be sent</p>\n</li>\n<li><p><code>repliedTo</code> (Int): The message being replied to</p>\n</li>\n<li><p><code>type</code> (String, optional): The type of the message (text, image, system, attachment, template, consult)</p>\n</li>\n<li><p><code>priority</code> (String, optional): The priority of the message (regular, urgent, stat)</p>\n</li>\n<li><p><code>fileId</code> (String, optional): An id referencing the uploaded file on our S3 bucket (e.g. for file/picture messages). See <strong>'Upload Files'</strong></p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the sent message</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>UserNotMemberOfChat</code> : The user is not a member of the chat</p>\n</li>\n<li><p><code>ChatNotMemberOfOrganization</code>: chatId provided does not corespond to any chat in the organization</p>\n</li>\n<li><p><code>ChatIsLocked</code>: The chatId given belongs to a locked/archived chat</p>\n</li>\n<li><p><code>InvalidMessageType</code>: The message type provided is invalid</p>\n</li>\n<li><p><code>InvalidMessagePriority</code>: The message priority provided is invalid</p>\n</li>\n<li><p><code>InvalidOperationShellAccount</code> : Inactive/shell accounts cannot perform this action</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"beefadc6-05a2-49b3-b830-7424f5658eb4","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation sendMessage($chatId: ID!, $message: String!, $fileId: Int, $type: MessageType, $priority: Boolean, $repliedTo: Int) {\n    chat(chatId: $chatId) {\n        sendMessage(message: $message, type: $type, fileId: $fileId, priority: $priority, repliedTo: $repliedTo) {\n            id\n            image\n            attachment {\n                ...AttachmentFragment\n            }\n            message\n            repliedTo {\n                id\n            }\n            forwardOf {\n                id\n            }\n            type\n            sender {\n                id\n                username\n            }\n        }\n    }\n}\n\nfragment AttachmentFragment on Attachment {\n    id\n    url\n    mimeType\n    fileName\n}","variables":"{\n\t\"chatId\": \"0258aec5-ca74-4af8-b49a-ef3764daf70a\",\n\t\"message\": \"test reply message\",\n\t\"type\": \"text\",\n\t\"priority\": false,\n\t\"repliedTo\": 38608\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 19:33:15 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"416"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"2a2ba7ba-f4e3-480a-88af-844c778d5fbd"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"chat\": {\n            \"sendMessage\": {\n                \"id\": 38610,\n                \"image\": null,\n                \"attachment\": null,\n                \"message\": \"test reply message\",\n                \"repliedTo\": {\n                    \"id\": 38608\n                },\n                \"forwardOf\": null,\n                \"type\": \"text\",\n                \"sender\": {\n                    \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                    \"username\": \"support\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"7add02a7-4860-498b-baa1-c79c7fd760c0"},{"name":"Read Message","event":[{"listen":"test","script":{"id":"ce7ac8b0-e06e-4bfb-a117-50c8af6df9bf","exec":["let jsonBody = pm.response.json();","","pm.test(\"All the messages were read\", function(){"," let messageRead = jsonBody.data.chat.messagesRead;"," console.log(\"The messages are:\", messageRead);"," pm.expect(messageRead).to.equal(true);","})"],"type":"text/javascript","packages":{}}}],"id":"fb22ecc4-aa8e-4f3d-9ec2-8b36631618ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation readMessage($chatId: ID!, $messageIds: [Int!]!) {\n    chat(chatId: $chatId) {\n        messagesRead(messageIds: $messageIds)\n    }\n}","variables":"{\n\t\"chatId\": \"{{chatId}}\",\n\t\"messageIds\": [{{messageId}}]\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"read-message\">Read Message</h2>\n<p>GraphQL mutation for marking specific messages as read by the user in a particular chat.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>chatId</code>(String): The ID of the chat where the messages are being marked as read</p>\n</li>\n<li><p><code>messageIds</code> ([String]): An array of message IDs to be marked as read</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>A boolean value indicating if operation was successful</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"fb22ecc4-aa8e-4f3d-9ec2-8b36631618ee"},{"name":"Deliver Message","event":[{"listen":"test","script":{"id":"ce7ac8b0-e06e-4bfb-a117-50c8af6df9bf","exec":["let jsonBody = pm.response.json();","","pm.test(\"All the messages were read\", function(){"," let messageRead = jsonBody.data.chat.messagesRead;"," console.log(\"The messages are:\", messageRead);"," pm.expect(messageRead).to.equal(true);","})"],"type":"text/javascript","packages":{}}}],"id":"790b69e3-fc97-43a4-bda8-1109f484f85a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation deliverMessage($chatId: ID!, $messageIds: [Int!]!) {\n    chat(chatId: $chatId) {\n        messagesDelivered(messageIds: $messageIds)\n    }\n}","variables":"{\n\t\"chatId\": \"{{chatId}}\",\n\t\"messageIds\": [{{messageId}}]\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"deliver-message\">Deliver Message</h2>\n<p>GraphQL mutation for marking specific messages as delivered to the user in a particular chat.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>chatId</code>(String): The ID of the chat where the messages are being marked as delivered</p>\n</li>\n<li><p><code>messageIds</code> ([String]): An array of message IDs to be marked as delivered</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>A boolean value indicating if operation was successful</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"790b69e3-fc97-43a4-bda8-1109f484f85a"},{"name":"Change Chat Name","event":[{"listen":"prerequest","script":{"id":"e6051cf4-318b-4d71-82f9-2bc8f8ef0b87","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"bbfb3dfd-a65f-4fdd-8148-788f6adc6cc7","exec":["let jsonBody = pm.response.json();","let title = pm.variables.get(\"title\")","","console.log('Members stored in pre request: ', pm.variables.get('chat'));","const preRequestChat = JSON.parse(pm.variables.get('chat'));","","pm.test(\"chat title is successfully changed\", function(){","   let title1 =  jsonBody.data.chat.editTitle.title;","  pm.expect(title1).to.equal(title)","  console.log(title1)","  console.log(title)"," ","})","","pm.test('member count', function() {","    pm.expect(jsonBody.data.chat.editTitle.members.length).to.equal(chat.members.length);","})","","pm.test(\"work status of all the members in the chat \", function(){","    console.log(\"Work status of all members look like:\")","    for(var i=0; i<jsonBody.data.chat.editTitle.members.length; i++){","    console.log(jsonBody.data.chat.editTitle.members[i].workStatus)","    }","})","","3"],"type":"text/javascript","packages":{}}}],"id":"ce4f24ab-c1f6-4219-a98f-7298973db89e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation EditChatTitle($title: String!, $chatId: ID!) {\n    chat(chatId: $chatId) {\n        editTitle(title: $title) {\n            id\n            title\n        }\n    }\n}","variables":"{\n    \"chatId\": \"{{chatId}}\",\n    \"title\": \"Hello World\"\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"change-chat-name\">Change Chat Name</h2>\n<p>GraphQL mutation for updating the name of a specific chat. It verifies the user's membership in the chat and updates the chat's title.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>chatIds</code> (String): The ID of the chat to be updated</p>\n</li>\n<li><p><code>title</code> (String): The updated title of the chat</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>A chat object representing the updated chat</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>UserNotMemberOfChat</code> : The user is not a member of the chat</p>\n</li>\n<li><p><code>ChatNotMemberOfOrganization</code>: chatId provided does not corespond to any chat in the organization</p>\n</li>\n<li><p><code>InvalidOperationShellAccount</code> : Inactive/shell accounts cannot perform this action</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"92037258-1115-4bd0-a548-7a1cb17490fa","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation EditChatTitle($title: String!, $chatId: ID!) {\n    chat(chatId: $chatId) {\n        editTitle(title: $title) {\n            id\n            title\n        }\n    }\n}","variables":"{\n    \"chatId\": \"092db80d-23a5-4d75-b6a5-db143ec6e6c2\",\n    \"title\": \"Hello World\"\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 19:29:44 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"153"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"21aa5afa-c290-4c42-a38a-f9de80a8d30d"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"chat\": {\n            \"editTitle\": {\n                \"id\": \"092db80d-23a5-4d75-b6a5-db143ec6e6c2\",\n                \"title\": \"Hello World\"\n            }\n        }\n    }\n}"}],"_postman_id":"ce4f24ab-c1f6-4219-a98f-7298973db89e"},{"name":"Leave Chat","id":"fa7a9380-89eb-4253-bcbe-74f131d9ee81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation LeaveChat($chatId: ID!) {\n    chat(chatId: $chatId) {\n        leave\n    }\n}","variables":"{\n\t\"chatId\": \"{{chatId}}\"\n}"}},"url":"{{api_base_url}}/graphql/private","description":"<h2 id=\"leave-chat\">Leave chat</h2>\n<p>GraphQL mutation for allowing a user to leave a specific chat. It verifies the user's membership in the chat and then removes the user from the chat.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>chatId</code>(String): The ID of the chat that the user is leaving</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>A boolean value indicating if the operation was successful</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>UserNotMemberOfChat</code> : The user is not a member of the chat</p>\n</li>\n<li><p><code>ChatNotMemberOfOrganization</code>: chatId provided does not corespond to any chat in the organization</p>\n</li>\n<li><p><code>ChatIsLocked</code>: The chatId given belongs to a locked/archived chat</p>\n</li>\n<li><p><code>LastAdminOfChatError</code>: Cannot remove the last admin of a chat before assigning a new admin</p>\n</li>\n<li><p><code>InvalidOperationShellAccount</code> : Inactive/shell accounts cannot perform this action</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"6b821655-0ee7-4c58-903e-c8f65c427ac3","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation LeaveChat($chatId: ID!) {\n    chat(chatId: $chatId) {\n        leave\n    }\n}","variables":"{\n\t\"chatId\": \"0e2e21a4-3652-4891-af68-af57d182cbc8\"\n}"}},"url":"https://{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 04 Mar 2024 19:38:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"273cc690-5109-400f-aa01-a4ce24b72f92"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"chat\": {\n            \"leave\": true\n        }\n    }\n}"}],"_postman_id":"fa7a9380-89eb-4253-bcbe-74f131d9ee81"}],"id":"d3b1db73-9ee8-4afd-8f70-fb43bebd990e","description":"<p>This section contains functionalities accessable to all users with and without administrator privileges.</p>\n","_postman_id":"d3b1db73-9ee8-4afd-8f70-fb43bebd990e","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}}],"id":"ff01932c-99e6-449d-bb45-4e62f059af1c","description":"<p>This section will provide developers with all the necessary information to integrate Hypercare's rich set of chat and messaging functionalities into their workflow using GraphQL. Our API supports a wide range of operations, from sending and receiving messages in real-time to managing chat groups and user presence.</p>\n","_postman_id":"ff01932c-99e6-449d-bb45-4e62f059af1c","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Locating","item":[{"name":"Admin","item":[{"name":"Update Code Team Callback Number","id":"9020a671-6bc6-4bd9-a847-df8941543101","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateCallbackNumber($teamId: Int!, $callbackNumber: String, $organizationalUnit: OrganizationalUnitInput!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminDepartmentMutation {\n                    __typename\n                    team(id: $teamId) {\n                        updateCallbackNumber(callbackNumber: $callbackNumber) {\n                            ... on Team {\n                                id\n                                name\n                                callbackNumber\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": {{departmentId}},\n\t\t\"type\": \"department\"\n\t},\n    \"teamId\": {{codeTeamId}},\n    \"callbackNumber\": \"12345\"\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"update-code-team-callback-number\">Update Code Team Callback Number</h2>\n<p>GraphQL mutation that allows admins to update the callback number sent to numeric pagers when a code team is activated.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the department the code team belongs to</p>\n</li>\n<li><p><code>type</code> (String): \"department\"</p>\n</li>\n</ul>\n</li>\n<li><p><code>teamId</code> (String): The ID of the code team to be updated</p>\n</li>\n<li><p><code>callbackNumber</code> (String): The callback number to be displayed on numeric pagers in String format</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the newly updated code team</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n<li><p><code>UserNotAdminForScope</code>: User is not an admin of the organizational unit they are checking against</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"b2598fa4-6d91-4d45-ad41-a1bc21993ffe","name":"sample update callback number","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateTeamMutation($teamID: Int!, $callbackNumber: String, $organizationalUnit: OrganizationalUnitInput!) {\n    adminMutation {\n        __typename\n        ... on UserNotAdminForScope {\n            __typename\n            message\n        }\n        ... on AdminMutation {\n            organizationalUnit(organizationalUnit: $organizationalUnit) {\n                ... on OrganizationalUnitNotFoundError {\n                    __typename\n                    message\n                }\n                ... on AdminDepartmentMutation {\n                    __typename\n                    team(id: $teamID) {\n                        updateCallbackNumber(callbackNumber: $callbackNumber) {\n                            id\n                            name\n                            callbackNumber\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n    \"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"department\"\n\t},\n    \"teamID\": 55,\n    \"callbackNumber\": \"123\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-Id","value":"059200e6-4e7d-4072-8870-4f74912b9ab9"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"346"},{"key":"Date","value":"Fri, 02 Feb 2024 16:21:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"adminMutation\": {\n            \"__typename\": \"AdminMutation\",\n            \"organizationalUnit\": {\n                \"__typename\": \"AdminDepartmentMutation\",\n                \"team\": {\n                    \"updateCallbackNumber\": {\n                        \"id\": \"55\",\n                        \"name\": \"test code team\",\n                        \"callbackNumber\": \"123\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"9020a671-6bc6-4bd9-a847-df8941543101"}],"id":"f461aa29-eade-4f03-8ae2-2cc7f0d11c1d","description":"<p>This section contains functionalities only accessable to users with administrator privileges. The error <code>UserNotAdminForScope</code> will return for all unauthorized access.</p>\n","_postman_id":"f461aa29-eade-4f03-8ae2-2cc7f0d11c1d","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Non-admin","item":[{"name":"Code Teams","item":[{"name":"Fetch Teams for Department","id":"9e7802f3-ea0c-4400-a5ec-aef3e239dbfa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchTeams($departmentId: Int) {\n    locating {\n        teams(departmentId: $departmentId) {\n            ...CodeFragment\n        }\n    }\n}\n\nfragment CodeFragment on Code {\n    id\n    name\n    type\n    requiresEscalation\n    organization {\n        ...OrganizationFragment\n    }\n    members {\n        user {\n            ...UserFragment\n        }\n        role {\n            ...RoleFragment\n        }\n    }\n    createdAt\n    updatedAt\n}\n\nfragment UserFragment on GeneralUser {\n    id\n    firstname\n    lastname\n    username\n}\n\nfragment RoleFragment on Role {\n    id\n    name\n    currentShift {\n        user {\n            ...UserFragment\n        }\n    }\n}\n\nfragment OrganizationFragment on Organization {\n    id\n    name\n}","variables":"{\n    \"departmentId\": {{departmentId}}\n}"}},"url":"https://{{api_hostname}}/graphql/private","description":"<h2 id=\"fetch-code-teams-for-department\">Fetch Code Teams for Department</h2>\n<p>GraphQL query to fetch all code teams for a department</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>departmentId</code> (Int): The ID of the department</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An array of object representing the code teams within the department</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"8ece282f-2baf-4600-bb1b-309cf7cee8dc","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchTeams($departmentId: Int) {\n    locating {\n        teams(departmentId: $departmentId) {\n            ...CodeFragment\n        }\n    }\n}\n\nfragment CodeFragment on Code {\n    id\n    name\n    type\n    requiresEscalation\n    organization {\n        ...OrganizationFragment\n    }\n    members {\n        user {\n            ...UserFragment\n        }\n        role {\n            ...RoleFragment\n        }\n    }\n    createdAt\n    updatedAt\n}\n\nfragment UserFragment on GeneralUser {\n    id\n    firstname\n    lastname\n    username\n}\n\nfragment RoleFragment on Role {\n    id\n    name\n    currentShift {\n        user {\n            ...UserFragment\n        }\n    }\n}\n\nfragment OrganizationFragment on Organization {\n    id\n    name\n}","variables":"{\n    \"departmentId\": 1\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Mar 2024 15:05:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"5889"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"938f0428-f6d7-47b3-b00f-fbb89cd79072"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"locating\": {\n            \"teams\": [\n                {\n                    \"id\": 1,\n                    \"name\": \"Code Pink\",\n                    \"type\": \"code\",\n                    \"requiresEscalation\": true,\n                    \"organization\": {\n                        \"id\": 1,\n                        \"name\": \"Hypercare\"\n                    },\n                    \"members\": [\n                        {\n                            \"user\": {\n                                \"id\": \"52a8fc92-3c66-40e4-a4c1-4a502ac001dd\",\n                                \"firstname\": \"Bob\",\n                                \"lastname\": \"Smith\",\n                                \"username\": \"user001\"\n                            },\n                            \"role\": null\n                        }\n                    ],\n                    \"createdAt\": \"2022-08-31T16:02:08.000Z\",\n                    \"updatedAt\": \"2022-08-31T16:02:08.000Z\"\n                },\n                {\n                    \"id\": 2,\n                    \"name\": \"Code Blue\",\n                    \"type\": \"code\",\n                    \"requiresEscalation\": true,\n                    \"organization\": {\n                        \"id\": 1,\n                        \"name\": \"Hypercare\"\n                    },\n                    \"members\": [\n                        {\n                            \"user\": {\n                                \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                \"firstname\": \"Stanley\",\n                                \"lastname\": \"Armstrong\",\n                                \"username\": \"user003\"\n                            },\n                            \"role\": null\n                        },\n                        {\n                            \"user\": {\n                                \"id\": \"1308ec3f-1778-41a6-a369-ec8bf403d9c0\",\n                                \"firstname\": \"Gideon\",\n                                \"lastname\": \"Hampton\",\n                                \"username\": \"usershell01\"\n                            },\n                            \"role\": null\n                        }\n                    ],\n                    \"createdAt\": \"2022-09-29T05:04:45.000Z\",\n                    \"updatedAt\": \"2022-09-29T05:04:45.000Z\"\n                },\n                {\n                    \"id\": 4,\n                    \"name\": \"Code Grey\",\n                    \"type\": \"code\",\n                    \"requiresEscalation\": false,\n                    \"organization\": {\n                        \"id\": 1,\n                        \"name\": \"Hypercare\"\n                    },\n                    \"members\": [\n                        {\n                            \"user\": {\n                                \"id\": \"4c06f4b3-d7ba-4a4b-b18a-4b6b654a35ad\",\n                                \"firstname\": \"Eileen\",\n                                \"lastname\": \"Boone\",\n                                \"username\": \"user084\"\n                            },\n                            \"role\": null\n                        },\n                        {\n                            \"user\": {\n                                \"id\": \"e2f30a64-3bff-470d-947b-8841c077e077\",\n                                \"firstname\": \"Anita\",\n                                \"lastname\": \"Howell\",\n                                \"username\": \"user0923\"\n                            },\n                            \"role\": null\n                        },\n                        {\n                            \"user\": {\n                                \"id\": \"8100fed5-c1bf-4af0-a5b7-284612f38e6d\",\n                                \"firstname\": \"Polly\",\n                                \"lastname\": \"Barlow\",\n                                \"username\": \"user8932\"\n                            },\n                            \"role\": null\n                        },\n                        {\n                            \"user\": {\n                                \"id\": \"f88cf2bc-f29f-4a9a-8255-af058cabce7f\",\n                                \"firstname\": \"Carrie\",\n                                \"lastname\": \"Shannon\",\n                                \"username\": \"user9023\"\n                            },\n                            \"role\": null\n                        },\n                        {\n                            \"user\": {\n                                \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                                \"firstname\": \"Alesha\",\n                                \"lastname\": \"Doherty\",\n                                \"username\": \"user7850\"\n                            },\n                            \"role\": null\n                        }\n                    ],\n                    \"createdAt\": \"2023-02-19T21:45:14.000Z\",\n                    \"updatedAt\": \"2023-05-12T19:23:57.000Z\"\n                }\n            ]\n        }\n    }\n}"}],"_postman_id":"9e7802f3-ea0c-4400-a5ec-aef3e239dbfa"},{"name":"Activate Code","id":"3f24cf92-308b-4936-9f7e-f22ebde7bbf5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation ActivateCode($codeId: Int!, $message: String!) {\n    locating {\n        activateCode(codeId: $codeId, message: $message) {\n            ...ActivatedCodeFragment\n        }\n    }\n}\n\nfragment ActivatedCodeFragment on ActivatedCode {\n    code {\n        ...CodeFragment\n    }\n    activatedBy {\n        ...UserFragment\n    }\n    chat {\n        ...ChatFragment\n    }\n    activatedAt\n    createdAt\n    updatedAt\n}\n\nfragment UserFragment on GeneralUser {\n    id\n    firstname\n    lastname\n    username\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...UserFragment\n    }\n}\n\nfragment CodeFragment on Code {\n    id\n    name\n}","variables":"{\n    \"codeId\": 54,\n    \"message\": \"test 234567\"\n}"}},"url":"https://{{api_hostname}}/graphql/private","description":"<h2 id=\"activate-code-teams\">Activate Code Teams</h2>\n<p>GraphQL mutation to activate a code teams with a specific message. Users and roles who are a part of team will be notified</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>codeId</code> (Int): The ID of the code team to be activated</p>\n</li>\n<li><p><code>message</code> (String): Message sent to the alphanumeric pagers, and the Hypercare chat</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the activated code, and the Hypercare chat created from the activation, with all the users who are added to the chat</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"2cfbafc8-8452-4e40-a42b-3c7956ecf546","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation ActivateCode($codeId: Int!, $message: String!) {\n    locating {\n        activateCode(codeId: $codeId, message: $message) {\n            ...ActivatedCodeFragment\n        }\n    }\n}\n\nfragment ActivatedCodeFragment on ActivatedCode {\n    code {\n        ...CodeFragment\n    }\n    activatedBy {\n        ...UserFragment\n    }\n    chat {\n        ...ChatFragment\n    }\n    activatedAt\n    createdAt\n    updatedAt\n}\n\nfragment UserFragment on GeneralUser {\n    id\n    firstname\n    lastname\n    username\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n    members {\n        ...UserFragment\n    }\n}\n\nfragment CodeFragment on Code {\n    id\n    name\n}","variables":"{\n    \"codeId\": 1,\n    \"message\": \"test 234567\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Mar 2024 16:46:32 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1258"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"e5ae3046-9190-4667-b20f-1004f43fb9d8"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"locating\": {\n            \"activateCode\": {\n                \"code\": {\n                    \"id\": 1,\n                    \"name\": \"Code Pink\"\n                },\n                \"activatedBy\": {\n                    \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                    \"firstname\": \"Stanley\",\n                    \"lastname\": \"Armstrong\",\n                    \"username\": \"user003\"\n                },\n                \"chat\": {\n                    \"id\": \"2f7075f1-3987-455e-b27c-335f8775bc12\",\n                    \"title\": \"Code Red 03/05/2024 - 11:46:31\",\n                    \"members\": [\n                        {\n                            \"id\": \"2b881170-5b6d-11e7-a17b-2d997b30f468\",\n                            \"firstname\": \"Stanley\",\n                            \"lastname\": \"Armstrong\",\n                            \"username\": \"user003\"\n                        },\n                        {\n                            \"id\": \"52a8fc92-3c66-40e4-a4c1-4a502ac001dd\",\n                            \"firstname\": \"Bob\",\n                            \"lastname\": \"Smith\",\n                            \"username\": \"user001\"\n                        },\n                        {\n                            \"id\": \"d96c41aa-24bd-4cc3-af8a-badb56e424a6\",\n                            \"firstname\": \"On-call\",\n                            \"lastname\": \"Bot\",\n                            \"username\": \"oncallbot\"\n                        }\n                    ]\n                },\n                \"activatedAt\": \"2024-03-05T16:46:32.000Z\",\n                \"createdAt\": \"2024-03-05T16:46:32.000Z\",\n                \"updatedAt\": \"2024-03-05T16:46:32.000Z\"\n            }\n        }\n    }\n}"}],"_postman_id":"3f24cf92-308b-4936-9f7e-f22ebde7bbf5"}],"id":"097b73d6-0c2d-41c3-9bd7-bdef41469e87","_postman_id":"097b73d6-0c2d-41c3-9bd7-bdef41469e87","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}}],"id":"4454171a-ee78-49d3-812c-dc6ccbb7cf38","description":"<p>This section contains functionalities accessable to all users with and without administrator privileges.</p>\n","_postman_id":"4454171a-ee78-49d3-812c-dc6ccbb7cf38","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}}],"id":"6a108ebb-3b4c-4869-bad8-0cc34939235f","description":"<p>This section provides comprehensive information for integrating Hypercare's code activation features into your applications.</p>\n<p>Code teams are specialized working units that can include both individual users and on-call roles. When a team is activated, all active users associated with the code are added to a group chat, and any pagers linked to shell accounts are contacted. The group chat will be named after the code team and include the timestamp of the activation.</p>\n<p>Teams can be activated at either a STAT or regular notification level, depending on the preset urgency of the code. Activated codes support either individual or group escalations for active users through our messaging platform, ensuring timely and efficient communication.</p>\n<p>For setting up a code team, please reach out to our Customer Success team.</p>\n","_postman_id":"6a108ebb-3b4c-4869-bad8-0cc34939235f","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Scheduling","item":[{"name":"Admin","item":[{"name":"Admin Fetch Schedule by Month","event":[{"listen":"test","script":{"id":"a4181fd5-ddac-4dc2-b825-9ea76b02a166","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"6cf7005a-71f5-41af-adbf-06cf8f7e455e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"},{"key":"hc-timezone","value":"{{hc-timezone}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query AdminFetchSchedule($siteId: Int!, $departmentId: Int!, $month: ScheduleMonths!, $year: Int!,$shiftStartDate: String!, $shiftEndDate: String!) {\n  admin {\n    organization {\n      site(id: $siteId) {\n        __typename\n        department(id: $departmentId) {\n          __typename\n          schedule(month: $month, year: $year) {\n            ...ScheduleFragment\n            __typename\n          }\n          __typename\n        }\n      }\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment ScheduleFragment on Schedule {\n  id\n  name\n  startDate\n  endDate\n  state\n  roles {\n    ...RoleFragment\n    __typename\n  }\n  createdAt\n  updatedAt\n  __typename\n}\n\nfragment RoleFragment on Role {\n  id\n  name\n  auditId\n  startTime\n  endTime\n  duration\n  repeatRule\n  pagerNumber\n  required\n  displayPosition\n  currentShift {\n    ...ShiftFragment\n    __typename\n  }\n  nextShift {\n    ...ShiftFragment\n    __typename\n  }\n  shifts(startDate: $shiftStartDate, endDate: $shiftEndDate) {\n    ...ShiftFragment\n    __typename\n  }\n  createdAt\n  updatedAt\n  __typename\n}\n\nfragment ShiftFragment on Shift {\n  id\n  user {\n    id\n    username\n    firstname\n    lastname\n    profilePic {\n      url\n      __typename\n    }\n    __typename\n  }\n  startDate\n  endDate\n  __typename\n}","variables":"{\n    \"siteId\":{{siteId}},\n    \"departmentId\":{{departmentId}},\"month\":\"june\",\n    \"year\":2024,\n    \"shiftStartDate\":\"2024-06-01T04:00:00.000Z\",\n    \"shiftEndDate\":\"2024-07-01T04:59:59.000Z\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"fetch-schedule-by-month-admin\">Fetch Schedule by Month (Admin)</h2>\n<p>GraphQL query that allows admins to retrieve a single schedule for a specific department given its month and year. This can return schedule with either publish or draft status. A time range can also be passed in to fetch shifts associated with the schedule during those times.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>siteId</code> (Int): ID of site</p>\n</li>\n<li><p><code>departmentId</code> (Int): ID of department</p>\n</li>\n<li><p><code>month</code> (String): Month of the schedule, lower case string. (e.g. \"january\", \"february\", \"march\", etc)</p>\n</li>\n<li><p><code>year</code> (Int): Year of the schedule</p>\n</li>\n<li><p><code>shiftStartDate</code> (Datetime, optional): Starting date time for shifts</p>\n</li>\n<li><p><code>shiftEndDate</code> (Datetime, optional): Ending date time for shifts</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the schedule, and its roles and shifts if any</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"f92b336a-06c5-4b8a-9b35-65e4c9c6ab3a","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"},{"key":"hc-timezone","value":"{{hc-timezone}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query AdminFetchSchedule($siteId: Int!, $departmentId: Int!, $month: ScheduleMonths!, $year: Int!,$shiftStartDate: String!, $shiftEndDate: String!) {\n  admin {\n    organization {\n      site(id: $siteId) {\n        __typename\n        department(id: $departmentId) {\n          __typename\n          schedule(month: $month, year: $year) {\n            ...ScheduleFragment\n            __typename\n          }\n          __typename\n        }\n      }\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment ScheduleFragment on Schedule {\n  id\n  name\n  startDate\n  endDate\n  state\n  roles {\n    ...RoleFragment\n    __typename\n  }\n  createdAt\n  updatedAt\n  __typename\n}\n\nfragment RoleFragment on Role {\n  id\n  name\n  auditId\n  startTime\n  endTime\n  duration\n  repeatRule\n  pagerNumber\n  required\n  displayPosition\n  currentShift {\n    ...ShiftFragment\n    __typename\n  }\n  nextShift {\n    ...ShiftFragment\n    __typename\n  }\n  shifts(startDate: $shiftStartDate, endDate: $shiftEndDate) {\n    ...ShiftFragment\n    __typename\n  }\n  createdAt\n  updatedAt\n  __typename\n}\n\nfragment ShiftFragment on Shift {\n  id\n  user {\n    id\n    username\n    firstname\n    lastname\n    profilePic {\n      url\n      __typename\n    }\n    __typename\n  }\n  startDate\n  endDate\n  __typename\n}","variables":"{\n    \"siteId\":1,\n    \"departmentId\":1,\"month\":\"june\",\n    \"year\":2024,\n    \"shiftStartDate\":\"2024-06-01T04:00:00.000Z\",\n    \"shiftEndDate\":\"2024-07-01T04:59:59.000Z\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jun 2024 21:17:51 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"14410"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"da2eda0e-d6b3-4b87-871e-4d9b27383d14"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"admin\": {\n            \"organization\": {\n                \"site\": {\n                    \"__typename\": \"AdminSiteQuery\",\n                    \"department\": {\n                        \"__typename\": \"AdminDepartmentQuery\",\n                        \"schedule\": {\n                            \"id\": 2881,\n                            \"name\": \"June\",\n                            \"startDate\": \"2024-06-01T04:00:00.000Z\",\n                            \"endDate\": \"2024-07-01T03:59:59.000Z\",\n                            \"state\": \"published\",\n                            \"roles\": [\n                                {\n                                    \"id\": 351653,\n                                    \"name\": \"Overnight on-call\",\n                                    \"auditId\": \"ced58724-5f65-45bd-9551-03533deda9b3\",\n                                    \"startTime\": \"16:26:00\",\n                                    \"endTime\": \"16:26:00\",\n                                    \"duration\": 86400,\n                                    \"repeatRule\": \"daily\",\n                                    \"pagerNumber\": null,\n                                    \"required\": false,\n                                    \"displayPosition\": 4,\n                                    \"currentShift\": null,\n                                    \"nextShift\": null,\n                                    \"shifts\": [\n                                        {\n                                            \"id\": 26943,\n                                            \"user\": {\n                                                \"id\": \"c5e8444a-df51-47b1-81ce-7d91584944e6\",\n                                                \"username\": \"testuser001\",\n                                                \"firstname\": \"Ash\",\n                                                \"lastname\": \"Ketchum\",\n                                                \"profilePic\": null,\n                                                \"__typename\": \"PublicUser\"\n                                            },\n                                            \"startDate\": \"2024-06-19T16:26:00.000Z\",\n                                            \"endDate\": \"2024-06-20T16:26:00.000Z\",\n                                            \"warningShifts\": [],\n                                            \"conflictingShifts\": [],\n                                            \"__typename\": \"Shift\"\n                                        }\n                                    ],\n                                    \"createdAt\": \"2024-06-07T20:49:32.000Z\",\n                                    \"updatedAt\": \"2024-06-07T20:49:32.000Z\",\n                                    \"__typename\": \"Role\"\n                                },\n                                {\n                                    \"id\": 351662,\n                                    \"name\": \"Daytime on-call\",\n                                    \"auditId\": \"71ed8c20-99dc-4d1a-8e95-083a483c1787\",\n                                    \"startTime\": \"15:00:00\",\n                                    \"endTime\": \"15:00:00\",\n                                    \"duration\": 86400,\n                                    \"repeatRule\": \"daily\",\n                                    \"pagerNumber\": null,\n                                    \"required\": false,\n                                    \"displayPosition\": 9,\n                                    \"currentShift\": null,\n                                    \"nextShift\": null,\n                                    \"shifts\": [\n                                        {\n                                            \"id\": 26923,\n                                            \"user\": {\n                                                \"id\": \"99d4f35f-13af-4a86-bfee-7e99f8e7c884\",\n                                                \"username\": \"testuser002\",\n                                                \"firstname\": \"Solid\",\n                                                \"lastname\": \"Snake\",\n                                                \"profilePic\": null,\n                                                \"__typename\": \"PublicUser\"\n                                            },\n                                            \"startDate\": \"2024-06-18T15:00:00.000Z\",\n                                            \"endDate\": \"2024-06-19T15:00:00.000Z\",\n                                            \"warningShifts\": [],\n                                            \"conflictingShifts\": [],\n                                            \"__typename\": \"Shift\"\n                                        }\n                                    ],\n                                    \"createdAt\": \"2024-06-07T20:49:32.000Z\",\n                                    \"updatedAt\": \"2024-06-07T20:49:32.000Z\",\n                                    \"__typename\": \"Role\"\n                                },\n                                {\n                                    \"id\": 353384,\n                                    \"name\": \"Charge Nurse\",\n                                    \"auditId\": \"4d8614f4-2ef3-4a38-bebc-f468a56ad690\",\n                                    \"startTime\": \"19:00:00\",\n                                    \"endTime\": \"19:00:00\",\n                                    \"duration\": 86400,\n                                    \"repeatRule\": \"daily\",\n                                    \"pagerNumber\": null,\n                                    \"required\": false,\n                                    \"displayPosition\": 3,\n                                    \"currentShift\": null,\n                                    \"nextShift\": null,\n                                    \"shifts\": [\n                                        {\n                                            \"id\": 26945,\n                                            \"user\": {\n                                                \"id\": \"c9c57a2a-9e04-4060-bc17-c3131c87ba9b\",\n                                                \"username\": \"testuser003\",\n                                                \"firstname\": \"Cloud\",\n                                                \"lastname\": \"Strife\",\n                                                \"profilePic\": null,\n                                                \"__typename\": \"PublicUser\"\n                                            },\n                                            \"startDate\": \"2024-06-19T19:00:00.000Z\",\n                                            \"endDate\": \"2024-06-20T19:00:00.000Z\",\n                                            \"warningShifts\": [],\n                                            \"conflictingShifts\": [],\n                                            \"__typename\": \"Shift\"\n                                        }\n                                    ],\n                                    \"createdAt\": \"2024-06-19T19:51:42.000Z\",\n                                    \"updatedAt\": \"2024-06-19T19:51:42.000Z\",\n                                    \"__typename\": \"Role\"\n                                }\n                            ],\n                            \"createdAt\": \"2024-06-07T20:49:32.000Z\",\n                            \"updatedAt\": \"2024-06-07T20:49:37.000Z\",\n                            \"__typename\": \"Schedule\"\n                        }\n                    }\n                },\n                \"__typename\": \"AdminOrganizationQuery\"\n            },\n            \"__typename\": \"AdminQuery\"\n        }\n    }\n}"}],"_postman_id":"6cf7005a-71f5-41af-adbf-06cf8f7e455e"},{"name":"Create Schedule","id":"7a9ef677-042f-46d0-92ca-256f2254d2a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateSchedule($departmentId: Int!, $scheduleDetails: CreateScheduleDetails!) {\n  admin {\n    locating {\n      department(id: $departmentId) {\n        createSchedule(details: $scheduleDetails) {\n          ...ScheduleFragment\n          __typename\n        }\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment ScheduleFragment on Schedule {\n  id\n  startDate\n  endDate\n  state\n  updatedAt\n  __typename\n}\n","variables":"{\n  \"departmentId\": {{departmentId}},\n  \"scheduleDetails\": {\n    \"name\": \"November\",\n    \"month\": \"november\",\n    \"year\": 2023\n  }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"create-schedule-admin\">Create Schedule (Admin)</h2>\n<p>GraphQL mutation that allows admins to create a schedule for given time range.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>departmentId</code> (Int): Department ID of where the schedule will be created</p>\n</li>\n<li><p><code>scheduleDetails</code> (Object)</p>\n<ul>\n<li><p><code>name</code> (String): Name of the schedule</p>\n</li>\n<li><p><code>month</code> (String): Month of the schedule, lower case string. (e.g. \"january\", \"february\", \"march\", etc)</p>\n</li>\n<li><p><code>year</code> (Int): Year of the schedule</p>\n</li>\n<li><p><code>state</code> (String, optional): Default <code>draft</code> (other options: <code>published</code>, <code>archived</code>)</p>\n</li>\n</ul>\n</li>\n<li><p><code>shouldIncludeRoles</code> (Boolean, optional): Default <code>true</code>, which will copy existing roles from the previous month's schedule onto this one</p>\n</li>\n<li><p><code>shouldIncludeShifts</code> (Boolean, optional): Default <code>false</code>. If both <code>shouldIncludeRoles</code> and <code>shouldIncludeShifts</code> are set to <code>true</code>, function will duplicate both roles and shifts to new schedule</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the newly created schedule, and its roles and shifts if any</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"49463154-b7e2-4cfd-9654-828accec9d17","name":"ExistingDraftSchedule","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateSchedule($departmentId: Int!, $scheduleDetails: CreateScheduleDetails!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                createSchedule(details: $scheduleDetails) {\n                    ...ScheduleFragment\n                }\n            }\n        }\n    }\n}\n\nfragment ScheduleFragment on Schedule {\n    id\n    name\n    startDate\n    endDate\n    state\n    createdAt\n    updatedAt\n}","variables":"{\n\t\"scheduleDetails\": {\n\t\t\"name\": \"Jan 2023 Test Draft Schedule\",\n\t\t\"startDate\": \"2023-01-01T05:00:00.000Z\",\n\t\t\"endDate\": \"2023-02-01T04:59:59.000Z\"\n\t},\n\t\"departmentId\": 1\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"294"},{"key":"Date","value":"Tue, 03 Jan 2023 01:55:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"A draft schedule already exist for this month\",\n            \"name\": \"ExistingDraftSchedule\",\n            \"code\": \"ExistingDraftSchedule\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": {\n        \"admin\": {\n            \"locating\": {\n                \"department\": null\n            }\n        }\n    }\n}"},{"id":"7ab1b4a5-fc6a-479e-857e-968bc48da636","name":"Create Schedule","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateSchedule($departmentId: Int!, $scheduleDetails: CreateScheduleDetails!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                createSchedule(details: $scheduleDetails) {\n                    ...ScheduleFragment\n                }\n            }\n        }\n    }\n}\n\nfragment ScheduleFragment on Schedule {\n    id\n    name\n    startDate\n    endDate\n    state\n    createdAt\n    updatedAt\n}","variables":"{\n\t\"scheduleDetails\": {\n\t\t\"name\": \"Jan 2023 Test Draft Schedule\",\n\t\t\"startDate\": \"2023-01-01T05:00:00.000Z\",\n\t\t\"endDate\": \"2023-02-01T04:59:59.000Z\"\n\t},\n\t\"departmentId\": 1\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"458"},{"key":"Date","value":"Tue, 03 Jan 2023 02:11:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"admin\": {\n            \"locating\": {\n                \"department\": {\n                    \"createSchedule\": {\n                        \"id\": 165,\n                        \"name\": \"Jan 2023 Test Draft Schedule\",\n                        \"startDate\": \"2023-01-01T05:00:00.000Z\",\n                        \"endDate\": \"2023-02-01T04:59:59.000Z\",\n                        \"state\": \"draft\",\n                        \"createdAt\": \"2023-01-02T21:11:51.000Z\",\n                        \"updatedAt\": \"2023-01-02T21:11:51.000Z\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"7a9ef677-042f-46d0-92ca-256f2254d2a3"},{"name":"Publish Schedule","id":"1780ca97-fbb7-4e58-ad4a-d898e856ce54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation PublishSchedule($departmentId: Int!, $scheduleId: Int!, $notifyOption: NotifyOption, $note: String) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                schedule(id: $scheduleId) {\n                    publish(notifyOption: $notifyOption, note: $note) {\n                        ...ScheduleFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment ScheduleFragment on Schedule {\n    id\n    startDate\n    endDate\n    state\n}","variables":"{\n\t\"departmentId\": {{departmentId}},\n\t\"scheduleId\": {{scheduleId}},\n\t\"notifyOption\": \"none\",\n    \"note\": \"testing\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"publish-draft-schedule-admin\">Publish Draft Schedule (Admin)</h2>\n<p>GraphQL mutation that allows admins to publish an existing draft schedule.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>departmentId</code> (Int): Department ID which the schedule belongs to</p>\n</li>\n<li><p><code>scheduleId</code> (Int): ID of the schedule to be published</p>\n</li>\n<li><p><code>notifyOption</code> (String): Default to <code>affected</code>, which changes made to the schedule after publishing will send emails notifying only users who's shifts were updated. (Other options: <code>all</code>: everyone on the schedule will be notified, <code>none</code>: no email notifications will be sent for future updates to the schedule)</p>\n</li>\n<li><p><code>note</code> (String)</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the updated schedule</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"41568ddc-0407-4e24-8299-5b8513292a8c","name":"sample response","originalRequest":{"method":"GET","header":[],"body":{"mode":"graphql","graphql":{"query":"mutation PublishSchedule($departmentId: Int!, $scheduleId: Int!, $notifyOption: NotifyOption, $note: String) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                schedule(id: $scheduleId) {\n                    publish(notifyOption: $notifyOption, note: $note) {\n                        ...ScheduleFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment ScheduleFragment on Schedule {\n    id\n    startDate\n    endDate\n    state\n}","variables":"{\n\t\"departmentId\": 1,\n\t\"scheduleId\": 727,\n\t\"notifyOption\": \"none\",\n    \"note\": \"testing\"\n}"}}},"_postman_previewlanguage":"","header":[{}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": {\n        \"admin\": {\n            \"locating\": {\n                \"department\": {\n                    \"schedule\": {\n                        \"publish\": {\n                            \"id\": 727,\n                            \"startDate\": \"2021-12-01T05:00:00.000Z\",\n                            \"endDate\": \"2022-01-01T05:00:00.000Z\",\n                            \"state\": \"published\"\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"1780ca97-fbb7-4e58-ad4a-d898e856ce54"},{"name":"Create Role","id":"0a8e212a-bdf0-46aa-a716-e57ba25546f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateRole($departmentId: Int!, $roleDetails: CreateRoleDetails!, ) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                createRole(details: $roleDetails) {\n                    ...RoleFragment\n                }\n            }\n        }\n    }\n}\n\nfragment RoleFragment on Role {\n    id\n    name\n    startTime\n    endTime\n    duration\n    repeatRule\n    required\n    displayPosition\n}","variables":"{\n\t\"roleDetails\": {\n\t\t\"name\": \"TestRole3\",\n\t\t\"startTime\": \"08:00\",\n\t\t\"duration\": 86400,\n        \"repeatRule\": \"weekends\",\n\t\t\"offset\": -300,\n        \"scheduleId\": {{scheduleId}}\n\t},\n\t\"departmentId\": {{departmentId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"create-role-admin\">Create Role (Admin)</h2>\n<p>GraphQL mutation that allows admins to create a role for a given schedule.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>departmentId</code> (Int): Department ID of where the role will be created</p>\n</li>\n<li><p><code>roleDetails</code> (Object)</p>\n<ul>\n<li><p><code>name</code> (String): Name of the schedule</p>\n</li>\n<li><p><code>startTime</code> (String): Local starting of the role, in 24hr format</p>\n</li>\n<li><p><code>duration</code> (Int): The default length of the role (in seconds)</p>\n</li>\n<li><p><code>repeatRule</code> (String): The expected pattern of when the role should be filled (\"daily\", \"weekdays\", \"weekends\"). Default <code>daily</code></p>\n</li>\n<li><p><code>offset</code> (Int, optional): Offset from UTC time (in seconds). Default <code>-240</code></p>\n</li>\n<li><p><code>required</code> (Boolean, optional): Default <code>false</code></p>\n</li>\n<li><p><code>scheduleId</code> (Int): ID of the schedule where the role will be created in</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the newly created role</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"cccdff70-e265-4094-8345-a5859e6216ab","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","type":"text","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateRole($departmentId: Int!, $roleDetails: CreateRoleDetails!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                createRole(details: $roleDetails) {\n                    ...RoleFragment\n                }\n            }\n        }\n    }\n}\n\nfragment RoleFragment on Role {\n    id\n    name\n    startTime\n    endTime\n    duration\n    repeatRule\n    required\n    displayPosition\n}","variables":"{\n\t\"roleDetails\": {\n\t\t\"name\": \"TestRole1\",\n\t\t\"startTime\": \"08:00\",\n\t\t\"duration\": 86400,\n        \"repeatRule\": \"weekends\",\n\t\t\"offset\": -300,\n        \"scheduleId\": 165\n\t},\n\t\"departmentId\": 1\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"403"},{"key":"Date","value":"Tue, 03 Jan 2023 16:25:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"admin\": {\n            \"locating\": {\n                \"department\": {\n                    \"createRole\": {\n                        \"id\": 10989,\n                        \"name\": \"TestRole1\",\n                        \"startTime\": \"08:00:00\",\n                        \"endTime\": \"08:00:00\",\n                        \"duration\": 86400,\n                        \"repeatRule\": \"weekends\",\n                        \"required\": false,\n                        \"displayPosition\": 3\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"0a8e212a-bdf0-46aa-a716-e57ba25546f9"},{"name":"Update Role","id":"24df4963-0840-40c4-80cb-e0db4bb200f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateRole($departmentId: Int!, $roleId: Int!, $updateDetails: UpdateRoleDetails!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                role(id: $roleId) {\n                    update(details: $updateDetails) {\n                        ...RoleFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment RoleFragment on Role {\n    id\n    name\n    startTime\n    endTime\n    duration\n    required\n    displayPosition\n}","variables":"{\n\t\"departmentId\": {{departmentId}},\n\t\"roleId\": {{roleId}},\n\t\"updateDetails\": {\n\t\t\"startTime\": \"08:30\",\n        \"repeatRule\": \"daily\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"update-role-admin\">Update Role (Admin)</h2>\n<p>GraphQL mutation that allows admins to update a role for a given schedule.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>departmentId</code> (Int): Department ID of where the role will be created</p>\n</li>\n<li><p><code>roleId</code> (Int): ID of role being updated</p>\n</li>\n<li><p><code>updateDetails</code> (Object)</p>\n<ul>\n<li><p><code>name</code> (String, optional): Name of the schedule</p>\n</li>\n<li><p><code>startTime</code> (String, optional): Local starting of the role, in 24hr format</p>\n</li>\n<li><p><code>duration</code> (Int, optional): The default length of the role (in seconds)</p>\n</li>\n<li><p><code>repeatRule</code> (String, optional): The expected pattern of when the role should be filled (\"daily\", \"weekdays\", \"weekends\")</p>\n</li>\n<li><p><code>offset</code> (Int, optional): Offset from UTC time (in seconds)</p>\n</li>\n<li><p><code>required</code> (Boolean, optional): Requires shift to be filled for role</p>\n</li>\n<li><p><code>displayPosition</code> (Int, optional): Display order of role in schedule</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the updated role</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>CantMutateArchivedRole</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"7ee107e8-71f5-4134-bc52-5d02139848a1","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","type":"text","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateRole($departmentId: Int!, $roleId: Int!, $updateDetails: UpdateRoleDetails!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                role(id: $roleId) {\n                    update(details: $updateDetails) {\n                        ...RoleFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment RoleFragment on Role {\n    id\n    name\n    startTime\n    endTime\n    duration\n    required\n    displayPosition\n}","variables":"{\n\t\"departmentId\": 1,\n\t\"roleId\": 10988,\n\t\"updateDetails\": {\n\t\t\"startTime\": \"08:30\",\n        \"repeatRule\": \"daily\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"411"},{"key":"Date","value":"Tue, 03 Jan 2023 16:26:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"admin\": {\n            \"locating\": {\n                \"department\": {\n                    \"role\": {\n                        \"update\": {\n                            \"id\": 10990,\n                            \"name\": \"TestRole1\",\n                            \"startTime\": \"08:30:00\",\n                            \"endTime\": \"08:30:00\",\n                            \"duration\": 86400,\n                            \"required\": false,\n                            \"displayPosition\": 2\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"f96ab980-312c-4a71-b074-290f3386cc18","name":"CantMutateArchivedRole","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","type":"text","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateRole($departmentId: Int!, $roleId: Int!, $updateDetails: UpdateRoleDetails!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                role(id: $roleId) {\n                    update(details: $updateDetails) {\n                        ...RoleFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment RoleFragment on Role {\n    id\n    name\n    startTime\n    endTime\n    duration\n    required\n    displayPosition\n}","variables":"{\n\t\"departmentId\": 1,\n\t\"roleId\": 10986,\n\t\"updateDetails\": {\n\t\t\"startTime\": \"08:30\",\n        \"repeatRule\": \"daily\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"280"},{"key":"Date","value":"Tue, 03 Jan 2023 16:26:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"Can't update an archived role\",\n            \"name\": \"CantMutateArchivedRole\",\n            \"code\": \"CantMutateArchivedRole\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": {\n        \"admin\": {\n            \"locating\": {\n                \"department\": null\n            }\n        }\n    }\n}"}],"_postman_id":"24df4963-0840-40c4-80cb-e0db4bb200f3"},{"name":"Archive Role","id":"27cfb92e-743b-472c-bb01-fffc035a84c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation ArchiveRole($departmentId: Int!, $roleId: Int!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                role(id: $roleId) {\n                    deleteRole\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"departmentId\": {{departmentId}},\n\t\"roleId\": {{roleId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"archive-role-admin\">Archive Role (Admin)</h2>\n<p>GraphQL mutation that allows admins to archive a role from a given schedule. <strong>NOTE: This will also archive all shifts and subsequent roles and shifts from the department.</strong></p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>departmentId</code> (Int): Department ID of where the role will be created</p>\n</li>\n<li><p><code>roleId</code> (Int): ID of role being updated</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An Boolean on the success of the operation</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>CantMutateArchivedRole</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"571000eb-3774-45c6-bb9b-d4d4ff0f5b05","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation DeleteRole($departmentId: Int!, $roleId: Int!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                role(id: $roleId) {\n                    deleteRole\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"departmentId\": 1,\n\t\"roleId\": 10989\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"165"},{"key":"Date","value":"Tue, 03 Jan 2023 16:35:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"admin\": {\n            \"locating\": {\n                \"department\": {\n                    \"role\": {\n                        \"deleteRole\": true\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"ddc5a4fa-e6c1-40e9-bbcd-7926231740a9","name":"CantMutateArchivedRole","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation DeleteRole($departmentId: Int!, $roleId: Int!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                role(id: $roleId) {\n                    deleteRole\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"departmentId\": 1,\n\t\"roleId\": 10989\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"280"},{"key":"Date","value":"Tue, 03 Jan 2023 16:31:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"Can't delete an archived role\",\n            \"name\": \"CantMutateArchivedRole\",\n            \"code\": \"CantMutateArchivedRole\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": {\n        \"admin\": {\n            \"locating\": {\n                \"department\": null\n            }\n        }\n    }\n}"}],"_postman_id":"27cfb92e-743b-472c-bb01-fffc035a84c4"},{"name":"Create Shift","id":"d335c1b5-aa43-4001-b5c3-9954d08b6c16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShift($departmentId: Int!, $scheduleId: Int!, $roleId: Int!, $shiftDetails: CreateShiftDetails!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                schedule(id: $scheduleId) {\n                    createShift(roleId: $roleId, details: $shiftDetails) {\n                        ...ShiftFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment ShiftFragment on Shift {\n    id\n    user {\n        ...GeneralUserFragment\n    }\n    startDate\n    endDate\n    createdAt\n    updatedAt\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    firstname\n    lastname\n    username\n}","variables":"{\n\t\"departmentId\": {{departmentId}},\n\t\"scheduleId\": {{scheduleId}},\n    \"roleId\": {{roleId}},\n\t\"shiftDetails\": {\n\t\t\"userId\": {{userId}},\n\t\t\"startTime\": \"2023-10-01T04:00:00.000Z\",\n\t\t\"endTime\": \"2023-10-01T12:00:00.000Z\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"create-shift-admin\">Create Shift (Admin)</h2>\n<p>GraphQL mutation that allows admins to create a shift for a given role for a schedule.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>departmentId</code> (Int): Department ID of the schedule</p>\n</li>\n<li><p><code>scheduleId</code> (Int): Schedule ID of the role</p>\n</li>\n<li><p><code>roleId</code> (Int): Role ID for the shift</p>\n</li>\n<li><p><code>shiftDetails</code> (Object)</p>\n<ul>\n<li><p><code>userId</code> (String): ID of user for shift</p>\n</li>\n<li><p><code>startTime</code> (String): Start time of shift</p>\n</li>\n<li><p><code>endTime</code> (String): End time of shift</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the newly created shift</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"82417451-5d01-4adb-816e-cedd5be2cd27","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShift($departmentId: Int!, $scheduleId: Int!, $roleId: Int!, $shiftDetails: CreateShiftDetails!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                schedule(id: $scheduleId) {\n                    createShift(roleId: $roleId, details: $shiftDetails) {\n                        ...ShiftFragment\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment ShiftFragment on Shift {\n    id\n    user {\n        ...GeneralUserFragment\n    }\n    startDate\n    endDate\n    createdAt\n    updatedAt\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    firstname\n    lastname\n    username\n}","variables":"{\n\t\"departmentId\": 1,\n\t\"scheduleId\": 729,\n    \"roleId\": 11877,\n\t\"shiftDetails\": {\n\t\t\"userId\": \"c4379f5d-a67c-4e58-9e5c-f96b45da31c7\",\n\t\t\"startTime\": \"2022-02-12T15:00:00.000Z\",\n\t\t\"endTime\": \"2022-02-12T23:59:59.999Z\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","enabled":true},{"key":"X-Frame-Options","value":"SAMEORIGIN","enabled":true},{"key":"Surrogate-Control","value":"no-store","enabled":true},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate","enabled":true},{"key":"Pragma","value":"no-cache","enabled":true},{"key":"Expires","value":"0","enabled":true},{"key":"X-XSS-Protection","value":"1; mode=block","enabled":true},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Content-Length","value":"640","enabled":true},{"key":"Date","value":"Tue, 15 Feb 2022 21:08:35 GMT","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Keep-Alive","value":"timeout=5","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"admin\": {\n            \"locating\": {\n                \"department\": {\n                    \"schedule\": {\n                        \"createShift\": {\n                            \"id\": 9308,\n                            \"user\": {\n                                \"id\": \"c4379f5d-a67c-4e58-9e5c-f96b45da31c7\",\n                                \"username\": \"testuser003\",\n                                \"firstname\": \"Cloud\",\n                                \"lastname\": \"Strife\"\n                            },\n                            \"startDate\": \"2022-02-12T15:00:00.000Z\",\n                            \"endDate\": \"2022-02-13T00:00:00.000Z\",\n                            \"createdAt\": \"2022-02-15T16:08:35.000Z\",\n                            \"updatedAt\": \"2022-02-15T16:08:35.000Z\"\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"d335c1b5-aa43-4001-b5c3-9954d08b6c16"},{"name":"Update Shift","id":"594a2744-8426-40ff-9724-a97121eacb46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation UpdateShift($departmentId: Int!, $scheduleId: Int!, $shiftId: Int!, $shiftDetails: UpdateShiftDetails!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                schedule(id: $scheduleId) {\n                    shift(id: $shiftId) {\n                        update(details: $shiftDetails) {\n                            ...ShiftFragment\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment ShiftFragment on Shift {\n    id\n    user {\n        ...GeneralUserFragment\n    }\n    startDate\n    endDate\n    createdAt\n    updatedAt\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    firstname\n    lastname\n    username\n}","variables":"{\n\t\"departmentId\": {{departmentId}},\n\t\"scheduleId\": {{scheduleId}},\n\t\"shiftId\": {{shiftId}},\n\t\"shiftDetails\": {\n\t\t\"endTime\": \"2023-01-04T20:05:33.000Z\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"update-shift-admin\">Update Shift (Admin)</h2>\n<p>GraphQL mutation that allows admins to update a shift.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>departmentId</code> (Int): Department ID of the schedule</p>\n</li>\n<li><p><code>scheduleId</code> (Int): Schedule ID of the role</p>\n</li>\n<li><p><code>shiftId</code> (Int): ID of shift to update</p>\n</li>\n<li><p><code>shiftDetails</code> (Object)</p>\n<ul>\n<li><p><code>userId</code> (String, optional): ID of user for shift</p>\n</li>\n<li><p><code>startTime</code> (String, optional): Start time of shift</p>\n</li>\n<li><p><code>endTime</code> (String, optional): End time of shift</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the updated shift</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>CantMutateArchivedShift</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"0c8dd465-5e9c-486b-bd2a-dfc8e697bfc5","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShift($departmentId: Int!, $scheduleId: Int!, $shiftId: Int!, $shiftDetails: UpdateShiftDetails!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                schedule(id: $scheduleId) {\n                    shift(id: $shiftId) {\n                        update(details: $shiftDetails) {\n                            ...ShiftFragment\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment ShiftFragment on Shift {\n    id\n    user {\n        ...GeneralUserFragment\n    }\n    startDate\n    endDate\n    createdAt\n    updatedAt\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    id\n    firstname\n    lastname\n    username\n}","variables":"{\n\t\"departmentId\": 1,\n\t\"scheduleId\": 165,\n\t\"shiftId\": 5507,\n\t\"shiftDetails\": {\n\t\t\"endTime\": \"2023-01-04T20:05:33.000Z\"\n\t}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"699"},{"key":"Date","value":"Wed, 04 Jan 2023 19:42:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"admin\": {\n            \"locating\": {\n                \"department\": {\n                    \"schedule\": {\n                        \"shift\": {\n                            \"update\": {\n                                \"id\": 5508,\n                                \"user\": {\n                                    \"id\": \"b28780a6-99eb-4407-90c9-e498615b327e\",\n                                    \"username\": \"testuser003\",\n                                    \"firstname\": \"Cloud\",\n                                    \"lastname\": \"Strife\"\n                                },\n                                \"startDate\": \"2023-01-04T13:05:33.000Z\",\n                                \"endDate\": \"2023-01-04T20:05:33.000Z\",\n                                \"createdAt\": \"2023-01-04T14:42:32.000Z\",\n                                \"updatedAt\": \"2023-01-04T14:42:32.000Z\"\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"594a2744-8426-40ff-9724-a97121eacb46"},{"name":"Archive Shift","id":"66e2b5ba-206f-457c-8fa5-66a59d503570","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation ArchiveShift($departmentId: Int!, $scheduleId: Int!, $shiftId: Int!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                schedule(id: $scheduleId) {\n                    shift(id: $shiftId) {\n                        remove\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"departmentId\": {{departmentId}},\n\t\"scheduleId\": {{scheduleId}},\n\t\"shiftId\": {{shiftId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"archive-shift-admin\">Archive Shift (Admin)</h2>\n<p>GraphQL mutation that allows admins to archive a shift.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>departmentId</code> (Int): Department ID of the schedule</p>\n</li>\n<li><p><code>scheduleId</code> (Int): Schedule ID of the role</p>\n</li>\n<li><p><code>shiftId</code> (Int): ID of shift to update</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An Boolean on the success of the operation</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>CantMutateArchivedShift</code></li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"a106d1a2-62b4-409a-82aa-b83cffd82f8a","name":"Delete Shift","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","type":"text","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShift($departmentId: Int!, $scheduleId: Int!, $shiftId: Int!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                schedule(id: $scheduleId) {\n                    shift(id: $shiftId) {\n                        remove\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"departmentId\": 1,\n\t\"scheduleId\": 165,\n\t\"shiftId\": 5578\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"204"},{"key":"Date","value":"Mon, 16 Jan 2023 23:59:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"admin\": {\n            \"locating\": {\n                \"department\": {\n                    \"schedule\": {\n                        \"shift\": {\n                            \"remove\": true\n                        }\n                    }\n                }\n            }\n        }\n    }\n}"},{"id":"6cecae7f-c141-4d0c-9d8c-6fb0943cb739","name":"CantMutateArchivedShift","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","type":"text","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation CreateShift($departmentId: Int!, $scheduleId: Int!, $shiftId: Int!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                schedule(id: $scheduleId) {\n                    shift(id: $shiftId) {\n                        remove\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"departmentId\": 1,\n\t\"scheduleId\": 165,\n\t\"shiftId\": 5578\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"352"},{"key":"Date","value":"Mon, 16 Jan 2023 23:59:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"Can't delete an archived shift\",\n            \"name\": \"CantMutateArchivedShift\",\n            \"code\": \"CantMutateArchivedShift\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": {\n        \"admin\": {\n            \"locating\": {\n                \"department\": {\n                    \"schedule\": {\n                        \"shift\": null\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"66e2b5ba-206f-457c-8fa5-66a59d503570"},{"name":"Delete All Shifts for Role","id":"d25702cd-36a4-49c3-87cf-3413425320b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation DeleteShiftsForRole($departmentId: Int!, $roleId: Int!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                role(id: $roleId) {\n                    deleteShifts\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"departmentId\": {{departmentId}},\n\t\"roleId\": {{roleId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"archive-all-shifts-for-role-admin\">Archive All Shifts for Role (Admin)</h2>\n<p>GraphQL mutation that allows admins to archive all the shifts for a given role.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>departmentId</code> (Int): Department ID of the schedule</p>\n</li>\n<li><p><code>roleId</code> (Int): ID of role which the shifts will be removed from</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An Boolean on the success of the operation</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>CantMutateArchivedRole</code></p>\n</li>\n<li><p><code>CantMutateArchivedShift</code></p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"92f4bf62-6b5d-4907-b462-f3b517ff066a","name":"Delete All Shifts for Role","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","type":"text","value":"{{scopetoken}}"}],"body":{"mode":"graphql","graphql":{"query":"mutation DeleteShiftsForRole($departmentId: Int!, $roleId: Int!) {\n    admin {\n        locating {\n            department(id: $departmentId) {\n                role(id: $roleId) {\n                    deleteShifts\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"departmentId\": 24,\n\t\"roleId\": 197771\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 25 Sep 2023 17:30:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"167"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"admin\": {\n            \"locating\": {\n                \"department\": {\n                    \"role\": {\n                        \"deleteShifts\": true\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"d25702cd-36a4-49c3-87cf-3413425320b3"}],"id":"86553d47-1856-49fe-a9d0-4da6a8459970","description":"<p>This section contains functionalities only accessable to users with administrator privileges. The error <code>UserNotAdminForScope</code> will return for all unauthorized access.</p>\n","_postman_id":"86553d47-1856-49fe-a9d0-4da6a8459970","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Non-admin","item":[{"name":"Fetch Schedule by ID (v1)","id":"bdfe39ae-df30-4e72-87ff-3dac1789a876","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"},{"key":"hc-timezone","value":"{{hc-timezone}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchSchedule($departmentId: Int!, $id: Int!, $shiftStartDate: String!, $shiftEndDate: String!) {\n    locating {\n        department(id: $departmentId) {\n            id\n            name\n            scheduleById(id: $id) {\n                ...ScheduleFragment\n            }\n        }\n    }\n}\n\nfragment ScheduleFragment on Schedule {\n    id\n    name\n    startDate\n    endDate\n    state\n    roles {\n        id\n        name\n        currentShift {\n            ...ShiftFragment\n        }\n        shifts(startDate: $shiftStartDate, endDate: $shiftEndDate) {\n            id\n            startDate\n            endDate\n        }\n    }\n    createdAt\n    updatedAt\n}\n\nfragment ShiftFragment on Shift {\n    id\n    startDate\n    endDate\n    user {\n        id\n        firstname\n        lastname\n        addresses {\n            address\n            type\n            access\n        }\n    }\n}","variables":"{\n\t\"departmentId\": {{departmentId}},\n\t\"id\": {{scheduleId}},\n    \"shiftStartDate\": \"2024-05-01T04:00:00.000Z\",\n    \"shiftEndDate\": \"2024-06-01T03:59:59.000Z\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"fetch-schedule-by-id\">Fetch Schedule by ID</h2>\n<p>GraphQL query that fetches ONE schedule within a given date range. If the start date is NULL then all schedules ending before the end date are returned. If the end date is NULL then all schedules starting after teh start date are returned. If both start and end date are NULL then all schedules are fetched.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>departmentId</code> (Int): ID of department</p>\n</li>\n<li><p><code>id</code> (Int): ID of schedule</p>\n</li>\n<li><p><code>shiftStartDate</code> (Datetime, optional): Starting date time for shifts</p>\n</li>\n<li><p><code>shiftEndDate</code> (Datetime, optional): Ending date time for shifts</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the schedule, and its roles and shifts if any</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"cc654434-414e-4202-85c7-7190b1b027e7","name":"Fetch Schedule by id","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","type":"text","value":"{{scopetoken}}"},{"key":"hc-timezone","value":"{{hc-timezone}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchSchedule($departmentId: Int!, $id: Int!, $startDate: String!, $endDate: String!) {\n    locating {\n        department(id: $departmentId) {\n            id\n            name\n            scheduleById(id: $id) {\n                ...ScheduleFragment\n            }\n        }\n    }\n}\n\nfragment ScheduleFragment on Schedule {\n    id\n    name\n    startDate\n    endDate\n    state\n    roles {\n        id\n        name\n        currentShift {\n            ...ShiftFragment\n        }\n        shifts(startDate: $startDate, endDate: $endDate) {\n            id\n            startDate\n            endDate\n        }\n    }\n    createdAt\n    updatedAt\n}\n\nfragment ShiftFragment on Shift {\n    id\n    startDate\n    endDate\n    user {\n        id\n        firstname\n        lastname\n        addresses {\n            address\n            type\n            access\n        }\n    }\n}","variables":"{\n\t\"departmentId\": 24,\n\t\"id\": 1181,\n    \"startDate\": \"2023-09-01T04:00:00.000Z\",\n    \"endDate\": \"2023-10-01T03:59:59.000Z\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"632"},{"key":"Date","value":"Mon, 25 Sep 2023 16:59:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"locating\": {\n            \"department\": {\n                \"id\": 24,\n                \"name\": \"Shoaib Department 1\",\n                \"scheduleById\": {\n                    \"id\": 1181,\n                    \"name\": \"February\",\n                    \"startDate\": \"2024-02-01T04:00:00.000Z\",\n                    \"endDate\": \"2024-03-01T03:59:59.000Z\",\n                    \"state\": \"draft\",\n                    \"roles\": [\n                        {\n                            \"id\": 197771,\n                            \"name\": \"HAMAD-\",\n                            \"currentShift\": null,\n                            \"shifts\": []\n                        }\n                    ],\n                    \"createdAt\": \"2023-09-25T16:19:08.000Z\",\n                    \"updatedAt\": \"2023-09-25T16:19:08.000Z\"\n                }\n            }\n        }\n    }\n}"},{"id":"1146f100-e4fa-41ba-810c-2edc0f81621b","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"},{"key":"hc-timezone","value":"{{hc-timezone}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchSchedule($departmentId: Int!, $id: Int!, $shiftStartDate: String!, $shiftEndDate: String!) {\n    locating {\n        department(id: $departmentId) {\n            id\n            name\n            scheduleById(id: $id) {\n                ...ScheduleFragment\n            }\n        }\n    }\n}\n\nfragment ScheduleFragment on Schedule {\n    id\n    name\n    startDate\n    endDate\n    state\n    roles {\n        id\n        name\n        currentShift {\n            ...ShiftFragment\n        }\n        shifts(startDate: $shiftStartDate, endDate: $shiftEndDate) {\n            id\n            startDate\n            endDate\n        }\n    }\n    createdAt\n    updatedAt\n}\n\nfragment ShiftFragment on Shift {\n    id\n    startDate\n    endDate\n    user {\n        id\n        firstname\n        lastname\n        addresses {\n            address\n            type\n            access\n        }\n    }\n}","variables":"{\n\t\"departmentId\": {{departmentId}},\n\t\"id\": {{scheduleId}},\n    \"shiftStartDate\": \"2024-05-01T04:00:00.000Z\",\n    \"shiftEndDate\": \"2024-06-01T03:59:59.000Z\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jun 2024 20:42:59 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1924"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"8364859f-cae5-4d01-8dce-8bc5ddb7b7cf"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"locating\": {\n            \"department\": {\n                \"id\": 12,\n                \"name\": \"June\",\n                \"scheduleById\": {\n                    \"id\": 1181,\n                    \"name\": \"June\",\n                    \"startDate\": \"2024-06-01T04:00:00.000Z\",\n                    \"endDate\": \"2024-07-01T03:59:59.000Z\",\n                    \"state\": \"draft\",\n                    \"roles\": [\n                        {\n                            \"id\": 255159,\n                            \"name\": \"Overnight RN\",\n                            \"currentShift\": null,\n                            \"shifts\": [\n                                {\n                                    \"id\": 15475,\n                                    \"status\": \"active\",\n                                    \"user\": {\n                                        \"id\": \"cf40f565-2417-4d9e-a4b9-e677ca94a3b0\",\n                                        \"username\": \"testuser001\",\n                                        \"firstname\": \"Ash\",\n                                        \"lastname\": \"Ketchum\",\n                                        \"profilePic\": null,\n                                        \"role\": \"Test Automation Engineer\",\n                                        \"status\": \"active\",\n                                        \"workStatus\": \"on_shift\",\n                                        \"statusExpiryDate\": null,\n                                        \"statusDescription\": null,\n                                        \"workStatusProxy\": null,\n                                        \"__typename\": \"PublicUser\"\n                                    },\n                                    \"startDate\": \"2024-06-01T05:00:00.000Z\",\n                                    \"endDate\": \"2024-07-01T12:00:00.000Z\",\n                                    \"__typename\": \"Shift\"\n                                },\n                                {\n                                    \"id\": 15500,\n                                    \"status\": \"active\",\n                                    \"user\": {\n                                        \"id\": \"268a1e12-ab50-4777-b83f-588593bb1a08\",\n                                        \"username\": \"testuser002\",\n                                        \"firstname\": \"Solid\",\n                                        \"lastname\": \"Snake\",\n                                        \"profilePic\": null,\n                                        \"role\": \"QA Automation Engineer\",\n                                        \"status\": \"active\",\n                                        \"workStatus\": \"on_shift\",\n                                        \"statusExpiryDate\": null,\n                                        \"statusDescription\": null,\n                                        \"workStatusProxy\": null,\n                                        \"__typename\": \"PublicUser\"\n                                    },\n                                    \"startDate\": \"2024-06-02T05:00:00.000Z\",\n                                    \"endDate\": \"2024-07-02T12:00:00.000Z\",\n                                    \"__typename\": \"Shift\"\n                                },\n                                {\n                                    \"id\": 15680,\n                                    \"status\": \"active\",\n                                    \"user\": {\n                                        \"id\": \"4825310f-ffec-4774-8b0a-a5075f29d911\",\n                                        \"username\": \"user003\",\n                                        \"firstname\": \"Cloud\",\n                                        \"lastname\": \"Strife\",\n                                        \"profilePic\": null,\n                                        \"role\": null,\n                                        \"status\": \"active\",\n                                        \"workStatus\": \"on_shift\",\n                                        \"statusExpiryDate\": null,\n                                        \"statusDescription\": null,\n                                        \"workStatusProxy\": null,\n                                        \"__typename\": \"PublicUser\"\n                                    },\n                                    \"startDate\": \"2024-06-26T05:00:00.000Z\",\n                                    \"endDate\": \"2024-07-26T12:00:00.000Z\",\n                                    \"__typename\": \"Shift\"\n                                }\n                            ]\n                        },\n                        {\n                            \"id\": 255162,\n                            \"name\": \"Daytime RN\",\n                            \"currentShift\": {\n                                \"id\": 26935,\n                                \"status\": \"active\",\n                                \"user\": {\n                                    \"id\": \"63b75d48-07e2-4a13-9e7d-d94aa6515fa4\",\n                                    \"username\": \"user001\",\n                                    \"firstname\": \"Sam\",\n                                    \"lastname\": \"Fisher\",\n                                    \"profilePic\": null,\n                                    \"role\": null,\n                                    \"status\": \"active\",\n                                    \"workStatus\": \"on_shift\",\n                                    \"statusExpiryDate\": null,\n                                    \"statusDescription\": \"unavailable\",\n                                    \"workStatusProxy\": null,\n                                    \"__typename\": \"PublicUser\"\n                                },\n                                \"startDate\": \"2024-06-20T03:00:00.000Z\",\n                                \"endDate\": \"2024-06-21T02:00:00.000Z\",\n                                \"__typename\": \"Shift\"\n                            },\n                            \"shifts\": [\n                                {\n                                    \"id\": 26935,\n                                \"status\": \"active\",\n                                \"user\": {\n                                    \"id\": \"63b75d48-07e2-4a13-9e7d-d94aa6515fa4\",\n                                    \"username\": \"user001\",\n                                    \"firstname\": \"Sam\",\n                                    \"lastname\": \"Fisher\",\n                                    \"profilePic\": null,\n                                    \"role\": null,\n                                    \"status\": \"active\",\n                                    \"workStatus\": \"on_shift\",\n                                    \"statusExpiryDate\": null,\n                                    \"statusDescription\": \"unavailable\",\n                                    \"workStatusProxy\": null,\n                                    \"__typename\": \"PublicUser\"\n                                },\n                                \"startDate\": \"2024-06-20T03:00:00.000Z\",\n                                \"endDate\": \"2024-06-21T02:00:00.000Z\",\n                                \"__typename\": \"Shift\"\n                                }\n                            ]\n                        }\n                    ],\n                    \"createdAt\": \"2023-09-25T16:19:08.000Z\",\n                    \"updatedAt\": \"2023-09-25T16:19:08.000Z\"\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"bdfe39ae-df30-4e72-87ff-3dac1789a876"},{"name":"Fetch Schedule by ID (v2)","id":"b768b28f-4a3c-4646-86c0-940abab404d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationalUnit($organizationalUnit: OrganizationalUnitInput!, $id: Int!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                id\n                name\n                createdAt\n                sites {\n                    id\n                    name\n                }\n            }\n            ... on Site {\n                __typename\n                id\n                name\n                createdAt\n            }\n            ... on Department {\n                __typename\n                id\n                name\n                createdAt\n                scheduling {\n                    schedule(id: $id) {\n                        ... on ScheduleNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on Schedule {\n                            id\n                            name\n                            startDate\n                            endDate\n                            state\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": {{departmentId}},\n\t\t\"type\": \"department\"\n\t},\n    \"id\": {{scheduleId}}\n}"}},"url":"https://{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"fetch-schedule-by-id\">Fetch Schedule by ID</h2>\n<p>GraphQL query that fetches ONE schedule within a given date range. If the start date is NULL then all schedules ending before the end date are returned. If the end date is NULL then all schedules starting after teh start date are returned. If both start and end date are NULL then all schedules are fetched.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the department the schedule belongs to</p>\n</li>\n<li><p><code>type</code> (String): \"department\"</p>\n</li>\n</ul>\n</li>\n<li><p><code>id</code> (Int): ID of schedule</p>\n</li>\n<li><p><code>shiftStartDate</code> (Datetime, optional): Starting date time for shifts</p>\n</li>\n<li><p><code>shiftEndDate</code> (Datetime, optional): Ending date time for shifts</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the schedule, and its roles and shifts if any</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["v2","graphql","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"e699236f-b6e3-43aa-ba21-1688db9495c9","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationalUnit($organizationalUnit: OrganizationalUnitInput!, $id: Int!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                id\n                name\n                createdAt\n                sites {\n                    id\n                    name\n                }\n            }\n            ... on Site {\n                __typename\n                id\n                name\n                createdAt\n            }\n            ... on Department {\n                __typename\n                id\n                name\n                createdAt\n                schedulingQuery {\n                    schedule(id: $id) {\n                        ... on ScheduleNotFoundError {\n                            __typename\n                            message\n                        }\n                        ... on Schedule {\n                            id\n                            name\n                            startDate\n                            endDate\n                            state\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"department\"\n\t},\n    \"id\": 3\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"493"},{"key":"Date","value":"Wed, 05 Apr 2023 19:07:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Department\",\n                \"id\": \"1\",\n                \"name\": \"Engineering\",\n                \"createdAt\": \"2022-05-19T04:39:28.000Z\",\n                \"schedulingQuery\": {\n                    \"schedule\": {\n                        \"id\": \"3\",\n                        \"name\": \"May\",\n                        \"startDate\": \"2022-05-01T04:00:00.000Z\",\n                        \"endDate\": \"2022-06-01T03:59:59.000Z\",\n                        \"state\": \"published\"\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"b768b28f-4a3c-4646-86c0-940abab404d1"},{"name":"Fetch Role by ID (v1)","id":"bf661787-62d7-4f5e-95ce-4df7c9f8e0b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query FetchRole($roleId: Int!) {\n    locating {\n        role(id: $roleId) {\n            ...RoleFragment\n        }\n    }\n}\n\nfragment RoleFragment on Role {\n    id\n    name\n    pagerNumber\n    currentShift {\n        ...ShiftFragment\n    }\n    nextShift {\n        ...ShiftFragment\n    }\n}\n\nfragment ShiftFragment on Shift {\n    id\n    startDate\n    endDate\n    user {\n        ...PublicUserFragment\n    }\n}\n\nfragment PublicUserFragment on PublicUser {\n    id\n    firstname\n    lastname\n    username\n}","variables":"{\n\t\"roleId\": {{roleId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"fetch-role-by-id\">Fetch Role by ID</h2>\n<p>GraphQL query that fetches a role given its ID.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>roleId</code> (Int): ID of role</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the role</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"4ce64d64-2e31-4257-aea3-51cb92cc6638","name":"Success Sample Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query FetchRole($roleId: Int!) {\n    locating {\n        role(id: $roleId) {\n            ...RoleFragment\n        }\n    }\n}\n\nfragment RoleFragment on Role {\n    id\n    name\n    pagerNumber\n    currentShift {\n        ...ShiftFragment\n    }\n    nextShift {\n        ...ShiftFragment\n    }\n}\n\nfragment ShiftFragment on Shift {\n    id\n    startDate\n    endDate\n    user {\n        ...PublicUserFragment\n    }\n}\n\nfragment PublicUserFragment on PublicUser {\n    id\n    firstname\n    lastname\n    username\n}","variables":"{\n\t\"roleId\": 192149\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"536"},{"key":"Date","value":"Fri, 01 Sep 2023 16:55:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"locating\": {\n            \"role\": {\n                \"id\": 192149,\n                \"name\": \"Test Role\",\n                \"pagerNumber\": null,\n                \"currentShift\": {\n                    \"id\": 15251,\n                    \"startDate\": \"2024-05-01T04:00:00.000Z\",\n                    \"endDate\": \"2024-05-02T04:00:00.000Z\",\n                    \"user\": {\n                        \"id\": \"90a2e626-59bd-4d8c-b332-3ffe670b75f4\",\n                        \"username\": \"user001\",\n                        \"firstname\": \"Sam\",\n                        \"lastname\": \"Fisher\"\n                    }\n                },\n                \"nextShift\": null\n            }\n        }\n    }\n}"}],"_postman_id":"bf661787-62d7-4f5e-95ce-4df7c9f8e0b0"},{"name":"Fetch Role by ID (v2)","id":"1cfd47eb-5d24-4d74-96b7-f6676e10b09e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationalUnit($organizationalUnit: OrganizationalUnitInput!, $id: Int!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                id\n                name\n                createdAt\n                sites {\n                    id\n                    name\n                }\n            }\n            ... on Site {\n                __typename\n                id\n                name\n                createdAt\n            }\n            ... on Department {\n                __typename\n                id\n                name\n                createdAt\n                scheduling {\n                    role(id: $id) {\n                        __typename\n                        ... on Role {\n                            id\n                            name\n                            notes {\n                                note\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"department\"\n\t},\n    \"id\": 362249\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"5cf4f8e1-ea02-4ed7-88d3-ff5118e387be","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query GetOrganizationalUnit($organizationalUnit: OrganizationalUnitInput!, $id: Int!) {\n    organizationalUnitQuery {\n        organizationalUnit(organizationalUnit: $organizationalUnit) {\n            ... on OrganizationalUnitNotFoundError {\n                __typename\n                message\n            }\n            ... on Organization {\n                __typename\n                id\n                name\n                createdAt\n                sites {\n                    id\n                    name\n                }\n            }\n            ... on Site {\n                __typename\n                id\n                name\n                createdAt\n            }\n            ... on Department {\n                __typename\n                id\n                name\n                createdAt\n                scheduling {\n                    schedule(id: $id) {\n                        __typename\n                        ... on Schedule {\n                            roles {\n                                id\n                                notes {\n                                    note\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"organizationalUnit\": {\n\t\t\"id\": 1,\n\t\t\"type\": \"department\"\n\t},\n    \"id\": 53\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 19 Feb 2025 19:15:51 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"363"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"0274c265-6577-4375-bc7a-921c364837f5"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Department\",\n                \"id\": \"1\",\n                \"name\": \"Engineering\",\n                \"createdAt\": \"2022-05-19T04:39:28.000Z\",\n                \"scheduling\": {\n                    \"schedule\": {\n                        \"__typename\": \"Schedule\",\n                        \"roles\": []\n                    }\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"1cfd47eb-5d24-4d74-96b7-f6676e10b09e"},{"name":"Fetch Department Schedule, Role, Shifts in Range","event":[{"listen":"test","script":{"id":"d270b918-4848-4561-8455-d33504e1ac57","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"3e665ce6-32b6-4336-bda4-9778c32c776a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"},{"key":"hc-timezone","value":"{{hc-timezone}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchDepartmentScheduleInfoInRange($departmentId: Int!, $startDate: String!, $endDate: String!) {\n  locating {\n    department(id: $departmentId) {\n      schedule(startDate: $startDate, endDate: $endDate) {\n        ...ScheduleFragment\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment RoleFragment on Role {\n  id\n  name\n  auditId\n  startTime\n  endTime\n  duration\n  repeatRule\n  pagerNumber\n  required\n  displayPosition\n  createdAt\n  updatedAt\n  __typename\n  currentShift {\n    ...ShiftFragment\n    __typename\n  }\n  nextShift {\n    ...ShiftFragment\n    __typename\n  }\n  shifts(startDate: $startDate, endDate: $endDate) {\n    ...ShiftFragment\n    __typename\n  }\n}\n\nfragment ShiftFragment on Shift {\n  id\n  status\n  user {\n    ...GeneralUserFragment\n      __typename\n  }\n  startDate\n  endDate\n  __typename\n}\n\nfragment ScheduleFragment on Schedule {\n  id\n  name\n  startDate\n  endDate\n  state\n  roles {\n    ...RoleFragment\n    __typename\n  }\n  createdAt\n  updatedAt\n  __typename\n}\n\nfragment GeneralUserFragment on GeneralUser {\n  id\n  username\n  firstname\n  lastname\n  profilePic {\n    url\n    __typename\n  }\n  role\n  status\n  workStatus\n  statusExpiryDate\n  statusDescription\n  workStatusProxy {\n    id\n    firstname\n    lastname\n    username\n    status\n    __typename\n  }\n  __typename\n}\n","variables":"{\n  \"departmentId\": {{departmentId}},\n  \"startDate\": \"2024-05-01T04:00:00.000Z\",\n  \"endDate\": \"2024-06-01T03:59:59.000Z\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"fetch-department-schedule-role-and-shifts-in-range\">Fetch Department Schedule, Role and Shifts in Range</h2>\n<p>GraphQL query that returns the schedule, roles, shifts between the given startDate and endDate time.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>departmentId</code> (Int): ID of department</p>\n</li>\n<li><p><code>startDate</code> (Datetime, optional): Starting date time for schedule and shifts</p>\n</li>\n<li><p><code>endDate</code> (Datetime, optional): Ending date time for schedule and shifts</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the schedule, and its roles and shifts if any</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"c00c9948-d455-4820-b3bb-7faf20f0c498","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"},{"key":"hc-timezone","value":"{{hc-timezone}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchRolesAndShiftsInRange($departmentId: Int!, $startDate: String!, $endDate: String!) {\n  locating {\n    department(id: $departmentId) {\n      schedule(startDate: $startDate, endDate: $endDate) {\n        ...ScheduleFragment\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment RoleFragment on Role {\n  id\n  name\n  auditId\n  startTime\n  endTime\n  duration\n  repeatRule\n  pagerNumber\n  required\n  displayPosition\n  createdAt\n  updatedAt\n  __typename\n  currentShift {\n    ...ShiftFragment\n    __typename\n  }\n  nextShift {\n    ...ShiftFragment\n    __typename\n  }\n  shifts(startDate: $startDate, endDate: $endDate) {\n    ...ShiftFragment\n    __typename\n  }\n}\n\nfragment ShiftFragment on Shift {\n  id\n  status\n  user {\n    ...GeneralUserFragment\n      __typename\n  }\n  startDate\n  endDate\n  __typename\n}\n\nfragment ScheduleFragment on Schedule {\n  id\n  name\n  startDate\n  endDate\n  state\n  roles {\n    ...RoleFragment\n    __typename\n  }\n  createdAt\n  updatedAt\n  __typename\n}\n\nfragment GeneralUserFragment on GeneralUser {\n  id\n  username\n  firstname\n  lastname\n  profilePic {\n    url\n    __typename\n  }\n  role\n  status\n  workStatus\n  statusExpiryDate\n  statusDescription\n  workStatusProxy {\n    id\n    firstname\n    lastname\n    username\n    status\n    __typename\n  }\n  __typename\n}\n","variables":"{\n  \"departmentId\": 12,\n  \"startDate\": \"2023-09-01T04:00:00.000Z\",\n  \"endDate\": \"2023-10-01T03:59:59.000Z\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jun 2024 19:54:21 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"14609"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"41c1fbbe-3fa3-4b1d-95c3-f0c068f4efb8"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": {\n    \"locating\": {\n      \"department\": {\n        \"schedule\": {\n          \"id\": 967,\n          \"name\": \"September\",\n          \"startDate\": \"2023-09-01T04:00:00.000Z\",\n          \"endDate\": \"2023-10-01T03:59:59.000Z\",\n          \"state\": \"published\",\n          \"roles\": [\n            {\n              \"id\": 194291,\n              \"name\": \"Dentist\",\n              \"auditId\": \"f46079a3-cefb-4a99-98e5-24d8223bbec4\",\n              \"startTime\": \"05:00:00\",\n              \"endTime\": \"12:00:00\",\n              \"duration\": 25200,\n              \"repeatRule\": \"daily\",\n              \"pagerNumber\": null,\n              \"required\": true,\n              \"displayPosition\": 1,\n              \"createdAt\": \"2023-09-09T17:41:14.000Z\",\n              \"updatedAt\": \"2023-09-09T17:41:14.000Z\",\n              \"__typename\": \"Role\",\n              \"currentShift\": null,\n              \"nextShift\": null,\n              \"shifts\": [\n                {\n                  \"id\": 15475,\n                  \"status\": \"active\",\n                  \"user\": {\n                    \"id\": \"cf40f565-2417-4d9e-a4b9-e677ca94a3b0\",\n                    \"username\": \"testuser001\",\n                    \"firstname\": \"Ash\",\n                    \"lastname\": \"Ketchum\",\n                    \"profilePic\": null,\n                    \"role\": \"Test Automation Engineer\",\n                    \"status\": \"active\",\n                    \"workStatus\": \"on_shift\",\n                    \"statusExpiryDate\": null,\n                    \"statusDescription\": null,\n                    \"workStatusProxy\": null,\n                    \"__typename\": \"PublicUser\"\n                  },\n                  \"startDate\": \"2023-09-01T05:00:00.000Z\",\n                  \"endDate\": \"2023-09-01T12:00:00.000Z\",\n                  \"__typename\": \"Shift\"\n                },\n                {\n                  \"id\": 15500,\n                  \"status\": \"active\",\n                  \"user\": {\n                    \"id\": \"268a1e12-ab50-4777-b83f-588593bb1a08\",\n                    \"username\": \"testuser002\",\n                    \"firstname\": \"Solid\",\n                    \"lastname\": \"Snake\",\n                    \"profilePic\": null,\n                    \"role\": \"QA Automation Engineer\",\n                    \"status\": \"active\",\n                    \"workStatus\": \"on_shift\",\n                    \"statusExpiryDate\": null,\n                    \"statusDescription\": null,\n                    \"workStatusProxy\": null,\n                    \"__typename\": \"PublicUser\"\n                  },\n                  \"startDate\": \"2023-09-02T05:00:00.000Z\",\n                  \"endDate\": \"2023-09-02T12:00:00.000Z\",\n                  \"__typename\": \"Shift\"\n                },\n                {\n                  \"id\": 15680,\n                  \"status\": \"active\",\n                  \"user\": {\n                    \"id\": \"4825310f-ffec-4774-8b0a-a5075f29d911\",\n                    \"username\": \"testuser003\",\n                    \"firstname\": \"Cloud\",\n                    \"lastname\": \"Strife\",\n                    \"profilePic\": null,\n                    \"role\": null,\n                    \"status\": \"active\",\n                    \"workStatus\": \"on_shift\",\n                    \"statusExpiryDate\": null,\n                    \"statusDescription\": null,\n                    \"workStatusProxy\": null,\n                    \"__typename\": \"PublicUser\"\n                  },\n                  \"startDate\": \"2023-09-26T05:00:00.000Z\",\n                  \"endDate\": \"2023-09-26T12:00:00.000Z\",\n                  \"__typename\": \"Shift\"\n                }\n              ]\n            },\n            {\n              \"id\": 194292,\n              \"name\": \"New Surgeon Role\",\n              \"auditId\": \"01cf635d-0fd2-4485-acde-5d82ade762d4\",\n              \"startTime\": \"12:00:00\",\n              \"endTime\": \"12:00:00\",\n              \"duration\": 86400,\n              \"repeatRule\": \"daily\",\n              \"pagerNumber\": null,\n              \"required\": false,\n              \"displayPosition\": 2,\n              \"createdAt\": \"2023-09-09T17:41:14.000Z\",\n              \"updatedAt\": \"2023-09-09T17:41:14.000Z\",\n              \"__typename\": \"Role\",\n              \"currentShift\": null,\n              \"nextShift\": null,\n              \"shifts\": [\n                {\n                  \"id\": 15573,\n                  \"status\": \"active\",\n                  \"user\": {\n                    \"id\": \"268a1e12-ab50-4777-b83f-588593bb1a08\",\n                    \"username\": \"testuser002\",\n                    \"firstname\": \"Solid\",\n                    \"lastname\": \"Snake\",\n                    \"profilePic\": null,\n                    \"role\": \"QA Automation Engineer\",\n                    \"status\": \"active\",\n                    \"workStatus\": \"on_shift\",\n                    \"statusExpiryDate\": null,\n                    \"statusDescription\": null,\n                    \"workStatusProxy\": null,\n                    \"__typename\": \"PublicUser\"\n                  },\n                  \"startDate\": \"2023-09-24T12:00:00.000Z\",\n                  \"endDate\": \"2023-09-24T23:00:00.000Z\",\n                  \"__typename\": \"Shift\"\n                },\n                {\n                  \"id\": 16108,\n                  \"status\": \"active\",\n                  \"user\": {\n                    \"id\": \"cf40f565-2417-4d9e-a4b9-e677ca94a3b0\",\n                    \"username\": \"testuser001\",\n                    \"firstname\": \"Ash\",\n                    \"lastname\": \"Ketchum\",\n                    \"profilePic\": null,\n                    \"role\": \"Test Automation Engineer\",\n                    \"status\": \"active\",\n                    \"workStatus\": \"on_shift\",\n                    \"statusExpiryDate\": null,\n                    \"statusDescription\": null,\n                    \"workStatusProxy\": null,\n                    \"__typename\": \"PublicUser\"\n                  },\n                  \"startDate\": \"2023-09-27T15:00:00.000Z\",\n                  \"endDate\": \"2023-09-27T18:00:00.000Z\",\n                  \"__typename\": \"Shift\"\n                }\n              ]\n            },\n            {\n              \"id\": 194471,\n              \"name\": \"asdasdas\",\n              \"auditId\": \"455fce3d-11e6-41cd-befa-5fe34f0a7384\",\n              \"startTime\": \"16:49:00\",\n              \"endTime\": \"16:49:00\",\n              \"duration\": 86400,\n              \"repeatRule\": \"daily\",\n              \"pagerNumber\": null,\n              \"required\": false,\n              \"displayPosition\": 3,\n              \"createdAt\": \"2023-09-12T16:49:48.000Z\",\n              \"updatedAt\": \"2023-09-12T16:49:48.000Z\",\n              \"__typename\": \"Role\",\n              \"currentShift\": null,\n              \"nextShift\": null,\n              \"shifts\": [\n                {\n                  \"id\": 15477,\n                  \"status\": \"active\",\n                  \"user\": {\n                    \"id\": \"4825310f-ffec-4774-8b0a-a5075f29d911\",\n                    \"username\": \"testuser003\",\n                    \"firstname\": \"Cloud\",\n                    \"lastname\": \"Strife\",\n                    \"profilePic\": null,\n                    \"role\": null,\n                    \"status\": \"active\",\n                    \"workStatus\": \"on_shift\",\n                    \"statusExpiryDate\": null,\n                    \"statusDescription\": null,\n                    \"workStatusProxy\": null,\n                    \"__typename\": \"PublicUser\"\n                  },\n                  \"startDate\": \"2023-09-01T16:49:00.000Z\",\n                  \"endDate\": \"2023-09-02T16:49:00.000Z\",\n                  \"__typename\": \"Shift\"\n                },\n                {\n                  \"id\": 15478,\n                  \"status\": \"active\",\n                  \"user\": {\n                    \"id\": \"cf40f565-2417-4d9e-a4b9-e677ca94a3b0\",\n                    \"username\": \"testuser001\",\n                    \"firstname\": \"Ash\",\n                    \"lastname\": \"Ketchum\",\n                    \"profilePic\": null,\n                    \"role\": \"Test Automation Engineer\",\n                    \"status\": \"active\",\n                    \"workStatus\": \"on_shift\",\n                    \"statusExpiryDate\": null,\n                    \"statusDescription\": null,\n                    \"workStatusProxy\": null,\n                    \"__typename\": \"PublicUser\"\n                  },\n                  \"startDate\": \"2023-09-02T16:49:00.000Z\",\n                  \"endDate\": \"2023-09-03T16:49:00.000Z\",\n                  \"__typename\": \"Shift\"\n                }\n              ]\n            },\n            {\n              \"id\": 195388,\n              \"name\": \"brand new role\",\n              \"auditId\": \"232bed0e-9706-4ac7-8c2f-049674228d6d\",\n              \"startTime\": \"13:00:00\",\n              \"endTime\": \"13:00:00\",\n              \"duration\": 86400,\n              \"repeatRule\": \"weekdays\",\n              \"pagerNumber\": null,\n              \"required\": false,\n              \"displayPosition\": 4,\n              \"createdAt\": \"2023-09-13T16:44:06.000Z\",\n              \"updatedAt\": \"2023-09-13T16:44:06.000Z\",\n              \"__typename\": \"Role\",\n              \"currentShift\": null,\n              \"nextShift\": null,\n              \"shifts\": [\n                {\n                  \"id\": 15594,\n                  \"status\": \"active\",\n                  \"user\": {\n                    \"id\": \"4825310f-ffec-4774-8b0a-a5075f29d911\",\n                    \"username\": \"testuser003\",\n                    \"firstname\": \"Cloud\",\n                    \"lastname\": \"Strife\",\n                    \"profilePic\": null,\n                    \"role\": null,\n                    \"status\": \"active\",\n                    \"workStatus\": \"on_shift\",\n                    \"statusExpiryDate\": null,\n                    \"statusDescription\": null,\n                    \"workStatusProxy\": null,\n                    \"__typename\": \"PublicUser\"\n                  },\n                  \"startDate\": \"2023-09-13T13:00:00.000Z\",\n                  \"endDate\": \"2023-09-13T17:30:00.000Z\",\n                  \"__typename\": \"Shift\"\n                },\n                {\n                  \"id\": 15595,\n                  \"status\": \"active\",\n                  \"user\": {\n                    \"id\": \"268a1e12-ab50-4777-b83f-588593bb1a08\",\n                    \"username\": \"testuser002\",\n                    \"firstname\": \"Solid\",\n                    \"lastname\": \"Snake\",\n                    \"profilePic\": null,\n                    \"role\": \"QA Automation Engineer\",\n                    \"status\": \"active\",\n                    \"workStatus\": \"on_shift\",\n                    \"statusExpiryDate\": null,\n                    \"statusDescription\": null,\n                    \"workStatusProxy\": null,\n                    \"__typename\": \"PublicUser\"\n                  },\n                  \"startDate\": \"2023-09-13T17:30:00.000Z\",\n                  \"endDate\": \"2023-09-14T00:30:00.000Z\",\n                  \"__typename\": \"Shift\"\n                }\n              ]\n            }\n          ],\n          \"createdAt\": \"2023-09-09T17:41:14.000Z\",\n          \"updatedAt\": \"2023-09-12T17:07:06.000Z\",\n          \"__typename\": \"Schedule\"\n        },\n        \"__typename\": \"Department\"\n      },\n      \"__typename\": \"LocatingQuery\"\n    }\n  }\n}"}],"_postman_id":"3e665ce6-32b6-4336-bda4-9778c32c776a"},{"name":"Fetch Department On-call Shifts for Month","event":[{"listen":"test","script":{"id":"d270b918-4848-4561-8455-d33504e1ac57","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"505c91dc-262c-4fd2-ab83-ce688ab46e32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"},{"key":"hc-timezone","value":"{{hc-timezone}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchRolesAndShiftsInRange($departmentId: Int!, $month: ScheduleMonths!, $year: Int!) {\n  locating {\n    department(id: $departmentId) {\n      schedule(month: $month, year: $year) {\n        ...ScheduleFragment\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment RoleFragment on Role {\n  id\n  name\n  auditId\n  startTime\n  endTime\n  duration\n  repeatRule\n  pagerNumber\n  required\n  displayPosition\n  createdAt\n  updatedAt\n  __typename\n  currentShift {\n    ...ShiftFragment\n    __typename\n  }\n  nextShift {\n    ...ShiftFragment\n    __typename\n  }\n}\n\nfragment ShiftFragment on Shift {\n  id\n  status\n  user {\n    ...GeneralUserFragment\n      __typename\n  }\n  startDate\n  endDate\n  __typename\n}\n\nfragment ScheduleFragment on Schedule {\n  id\n  name\n  startDate\n  endDate\n  state\n  roles {\n    ...RoleFragment\n    __typename\n  }\n  createdAt\n  updatedAt\n  __typename\n}\n\nfragment GeneralUserFragment on GeneralUser {\n  id\n  username\n  firstname\n  lastname\n  profilePic {\n    url\n    __typename\n  }\n  role\n  status\n  workStatus\n  statusExpiryDate\n  statusDescription\n  workStatusProxy {\n    id\n    firstname\n    lastname\n    username\n    status\n    __typename\n  }\n  __typename\n}\n","variables":"{\n  \"departmentId\": {{departmentId}},\n  \"month\": \"june\",\n  \"year\": 2024\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"fetch-department-on-call-shifts-for-month\">Fetch Department On-call Shifts for Month</h2>\n<p>GraphQL query that returns the schedule, roles, and on-call shifts for a given month and year. Month parameter should be styled as lower case full month name.</p>\n<p>** To return on-call shifts, the current month &amp; needs needs to be passed in.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>departmentId</code> (Int): ID of department</p>\n</li>\n<li><p><code>month</code> (String): Month of the schedule, lower case string. (e.g. \"january\", \"february\", \"march\", etc)</p>\n</li>\n<li><p><code>year</code> (Int): Year of the schedule</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the schedule, and its roles and shifts if any</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"8f0981fb-0b73-41a1-ba85-e9e56f96b3c5","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"},{"key":"hc-timezone","value":"{{hc-timezone}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchRolesAndShiftsInRange($departmentId: Int!, $month: ScheduleMonths!, $year: Int!) {\n  locating {\n    department(id: $departmentId) {\n      schedule(month: $month, year: $year) {\n        ...ScheduleFragment\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment RoleFragment on Role {\n  id\n  name\n  auditId\n  startTime\n  endTime\n  duration\n  repeatRule\n  pagerNumber\n  required\n  displayPosition\n  createdAt\n  updatedAt\n  __typename\n  currentShift {\n    ...ShiftFragment\n    __typename\n  }\n  nextShift {\n    ...ShiftFragment\n    __typename\n  }\n}\n\nfragment ShiftFragment on Shift {\n  id\n  status\n  user {\n    ...GeneralUserFragment\n      __typename\n  }\n  startDate\n  endDate\n  __typename\n}\n\nfragment ScheduleFragment on Schedule {\n  id\n  name\n  startDate\n  endDate\n  state\n  roles {\n    ...RoleFragment\n    __typename\n  }\n  createdAt\n  updatedAt\n  __typename\n}\n\nfragment GeneralUserFragment on GeneralUser {\n  id\n  username\n  firstname\n  lastname\n  profilePic {\n    url\n    __typename\n  }\n  role\n  status\n  workStatus\n  statusExpiryDate\n  statusDescription\n  workStatusProxy {\n    id\n    firstname\n    lastname\n    username\n    status\n    __typename\n  }\n  __typename\n}\n","variables":"{\n  \"departmentId\": 13,\n  \"month\": \"june\",\n  \"year\": 2024\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 20 Jun 2024 19:54:21 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"14609"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"41c1fbbe-3fa3-4b1d-95c3-f0c068f4efb8"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": {\n      \"locating\": {\n          \"department\": {\n              \"schedule\": {\n                  \"id\": 1984,\n                  \"name\": \"June\",\n                  \"startDate\": \"2024-06-01T04:00:00.000Z\",\n                  \"endDate\": \"2024-07-01T03:59:59.000Z\",\n                  \"state\": \"published\",\n                  \"roles\": [\n                      {\n                          \"id\": 300515,\n                          \"name\": \"Day Time RN\",\n                          \"auditId\": \"abde4854-78e6-40d6-8326-2b5a646d9fcd\",\n                          \"startTime\": \"03:00:00\",\n                          \"endTime\": \"02:00:00\",\n                          \"duration\": 82800,\n                          \"repeatRule\": \"daily\",\n                          \"pagerNumber\": null,\n                          \"required\": true,\n                          \"displayPosition\": 51,\n                          \"createdAt\": \"2024-03-19T18:26:18.000Z\",\n                          \"updatedAt\": \"2024-03-19T18:26:18.000Z\",\n                          \"__typename\": \"Role\",\n                          \"currentShift\": {\n                              \"id\": 26935,\n                              \"status\": \"active\",\n                              \"user\": {\n                                  \"id\": \"63b75d48-07e2-4a13-9e7d-d94aa6515fa4\",\n                                  \"username\": \"user001\",\n                                  \"firstname\": \"Sam\",\n                                  \"lastname\": \"Fisher\",\n                                  \"profilePic\": null,\n                                  \"role\": null,\n                                  \"status\": \"active\",\n                                  \"workStatus\": \"on_shift\",\n                                  \"statusExpiryDate\": null,\n                                  \"statusDescription\": \"unavailable\",\n                                  \"workStatusProxy\": null,\n                                  \"__typename\": \"PublicUser\"\n                              },\n                              \"startDate\": \"2024-06-20T03:00:00.000Z\",\n                              \"endDate\": \"2024-06-21T02:00:00.000Z\",\n                              \"__typename\": \"Shift\"\n                          },\n                          \"nextShift\": null\n                      },\n                      {\n                          \"id\": 353375,\n                          \"name\": \"Overnight RN\",\n                          \"auditId\": \"f906b414-a2cc-46d4-a431-be7f9bd45ca7\",\n                          \"startTime\": \"13:15:00\",\n                          \"endTime\": \"13:15:00\",\n                          \"duration\": 86400,\n                          \"repeatRule\": \"daily\",\n                          \"pagerNumber\": null,\n                          \"required\": false,\n                          \"displayPosition\": 31,\n                          \"createdAt\": \"2024-06-19T18:53:08.000Z\",\n                          \"updatedAt\": \"2024-06-19T18:53:08.000Z\",\n                          \"__typename\": \"Role\",\n                          \"currentShift\": null,\n                          \"nextShift\": null\n                      },\n                      {\n                          \"id\": 353596,\n                          \"name\": \"TestAutomationRole\",\n                          \"auditId\": \"22fd32cd-bf01-439b-9323-0168eec64c45\",\n                          \"startTime\": \"13:00:00\",\n                          \"endTime\": \"12:00:00\",\n                          \"duration\": 82800,\n                          \"repeatRule\": \"daily\",\n                          \"pagerNumber\": null,\n                          \"required\": false,\n                          \"displayPosition\": 68,\n                          \"createdAt\": \"2024-06-20T17:40:11.000Z\",\n                          \"updatedAt\": \"2024-06-20T17:40:11.000Z\",\n                          \"__typename\": \"Role\",\n                          \"currentShift\": {\n                              \"id\": 27050,\n                              \"status\": \"active\",\n                              \"user\": {\n                                  \"id\": \"dcb2b902-f810-4946-a4fb-6fa82066b957\",\n                                  \"username\": \"testuser003\",\n                                  \"firstname\": \"Samus\",\n                                  \"lastname\": \"Aran\",\n                                  \"profilePic\": {\n                                      \"url\": \"https://hypercare-images.s3.ca-central-1.amazonaws.com/sdf89w/9hewhak3l.png\",\n                                      \"__typename\": \"Image\"\n                                  },\n                                  \"role\": \"Cardiology\",\n                                  \"status\": \"active\",\n                                  \"workStatus\": \"on_shift\",\n                                  \"statusExpiryDate\": null,\n                                  \"statusDescription\": \"In my office\",\n                                  \"workStatusProxy\": null,\n                                  \"__typename\": \"PublicUser\"\n                              },\n                              \"startDate\": \"2024-06-20T14:00:00.000Z\",\n                              \"endDate\": \"2024-06-21T07:00:00.000Z\",\n                              \"__typename\": \"Shift\"\n                          },\n                          \"nextShift\": null\n                      }\n                  ],\n                  \"createdAt\": \"2024-01-04T16:34:09.000Z\",\n                  \"updatedAt\": \"2024-06-10T16:50:50.000Z\",\n                  \"__typename\": \"Schedule\"\n              },\n              \"__typename\": \"Department\"\n          },\n          \"__typename\": \"LocatingQuery\"\n      }\n  }\n}"}],"_postman_id":"505c91dc-262c-4fd2-ab83-ce688ab46e32"},{"name":"Fetch Site Schedule Metadata for Month","event":[{"listen":"test","script":{"id":"d270b918-4848-4561-8455-d33504e1ac57","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"87ce8c7e-964f-417f-a88f-ed9d6fe67ee8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"},{"key":"hc-timezone","value":"{{hc-timezone}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchDepartmentsAndRoles(\n  $siteId: Int!\n  $month: ScheduleMonths!\n  $year: Int!\n) {\n  locating {\n    site(id: $siteId) {\n      departments: allDepartments {\n        id\n        name\n        schedule(month: $month, year: $year) {\n          ...ScheduleFragment\n          __typename\n        }\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment ScheduleFragment on Schedule {\n  id\n  name\n  startDate\n  endDate\n  state\n  createdAt\n  updatedAt\n  __typename\n}","variables":"{\n  \"siteId\": {{siteId}},\n  \"month\": \"june\",\n  \"year\": 2024\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"fetch-site-schedules-metadata-for-month\">Fetch Site Schedules Metadata for Month</h2>\n<p>GraphQL query that returns the schedule information for all departments in a given site for the given month &amp; year.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>siteId</code> (Int): ID of site</p>\n</li>\n<li><p><code>month</code> (String): Month of the schedule, lower case string. (e.g. \"january\", \"february\", \"march\", etc)</p>\n</li>\n<li><p><code>year</code> (Int): Year of the schedule</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the departments, and it's schedules</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"205e63f9-94e1-4ab4-8acf-499891383763","name":"Success Sample Response","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"},{"key":"hc-timezone","value":"{{hc-timezone}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchDepartmentsAndRoles(\n  $siteId: Int!\n  $month: ScheduleMonths!\n  $year: Int!\n) {\n  locating {\n    site(id: $siteId) {\n      departments: allDepartments {\n        id\n        name\n        schedule(month: $month, year: $year) {\n          ...ScheduleFragment\n          __typename\n        }\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment ScheduleFragment on Schedule {\n  id\n  name\n  startDate\n  endDate\n  state\n  createdAt\n  updatedAt\n  __typename\n}","variables":"{\n  \"siteId\": {{siteId}},\n  \"month\": \"june\",\n  \"year\": 2024\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 24 Jun 2024 18:07:33 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3099"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"62120cb7-87b8-4f97-add2-52fb4c28c78f"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"locating\": {\n            \"site\": {\n                \"departments\": [\n                    {\n                        \"id\": 1,\n                        \"name\": \"Engineering\",\n                        \"schedule\": {\n                            \"id\": 2881,\n                            \"name\": \"June\",\n                            \"startDate\": \"2024-06-01T04:00:00.000Z\",\n                            \"endDate\": \"2024-07-01T03:59:59.000Z\",\n                            \"state\": \"published\",\n                            \"createdAt\": \"2024-06-07T20:49:32.000Z\",\n                            \"updatedAt\": \"2024-06-07T20:49:37.000Z\",\n                            \"__typename\": \"Schedule\"\n                        },\n                        \"__typename\": \"Department\"\n                    },\n                    {\n                        \"id\": 2,\n                        \"name\": \"Sales\",\n                        \"schedule\": {\n                            \"id\": 2883,\n                            \"name\": \"June\",\n                            \"startDate\": \"2024-06-01T04:00:00.000Z\",\n                            \"endDate\": \"2024-07-01T03:59:59.000Z\",\n                            \"state\": \"published\",\n                            \"createdAt\": \"2024-06-10T17:20:30.000Z\",\n                            \"updatedAt\": \"2024-06-10T17:20:34.000Z\",\n                            \"__typename\": \"Schedule\"\n                        },\n                        \"__typename\": \"Department\"\n                    },\n                    {\n                        \"id\": 3,\n                        \"name\": \"Customer Success\",\n                        \"schedule\": null,\n                        \"__typename\": \"Department\"\n                    },\n                    {\n                        \"id\": 12,\n                        \"name\": \"Marketing\",\n                        \"schedule\": {\n                            \"id\": 2882,\n                            \"name\": \"June\",\n                            \"startDate\": \"2024-06-01T04:00:00.000Z\",\n                            \"endDate\": \"2024-07-01T03:59:59.000Z\",\n                            \"state\": \"published\",\n                            \"createdAt\": \"2024-06-10T17:19:02.000Z\",\n                            \"updatedAt\": \"2024-06-10T17:19:06.000Z\",\n                            \"__typename\": \"Schedule\"\n                        },\n                        \"__typename\": \"Department\"\n                    },\n                    {\n                        \"id\": 17,\n                        \"name\": \"Support\",\n                        \"schedule\": null,\n                        \"__typename\": \"Department\"\n                    }\n                ],\n                \"__typename\": \"Site\"\n            },\n            \"__typename\": \"LocatingQuery\"\n        }\n    }\n}"}],"_postman_id":"87ce8c7e-964f-417f-a88f-ed9d6fe67ee8"},{"name":"Fetch Site Schedules for Month","event":[{"listen":"test","script":{"id":"d270b918-4848-4561-8455-d33504e1ac57","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"3cc27571-7fdd-4fb3-9b8f-20781aa145f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"},{"key":"hc-timezone","value":"{{hc-timezone}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchDepartmentsAndRoles(\n  $siteId: Int!\n  $month: ScheduleMonths!\n  $year: Int!\n) {\n  locating {\n    site(id: $siteId) {\n      departments: allDepartments {\n        id\n        name\n        schedule(month: $month, year: $year) {\n          ...ScheduleFragment\n          __typename\n        }\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n\nfragment ScheduleFragment on Schedule {\n  id\n  name\n  startDate\n  endDate\n  state\n  roles {\n    ...RoleFragment\n    __typename\n  }\n  createdAt\n  updatedAt\n  __typename\n}\n\nfragment RoleFragment on Role {\n  id\n  name\n  pagerNumber\n  startTime\n  displayPosition\n  updatedAt\n  endTime\n  currentShift {\n    id\n    user {\n      ...GeneralUserFragment\n      __typename\n    }\n    __typename\n  }\n  nextShift {\n    id\n    startDate\n    user {\n      ...GeneralUserFragment\n      __typename\n    }\n    __typename\n  }\n  __typename\n}\n\nfragment GeneralUserFragment on GeneralUser {\n  id\n  username\n  firstname\n  lastname\n  __typename\n}\n","variables":"{\n  \"siteId\": {{siteId}},\n  \"month\": \"june\",\n  \"year\": 2024\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"fetch-site-schedules-for-month\">Fetch Site Schedules for Month</h2>\n<p>GraphQL query that returns the schedule information for all departments in a given site for the given month &amp; year.</p>\n<p>** To return on-call shifts, the current month &amp; needs needs to be passed in.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>siteId</code> (Int): ID of site</p>\n</li>\n<li><p><code>month</code> (String): Month of the schedule, lower case string. (e.g. \"january\", \"february\", \"march\", etc)</p>\n</li>\n<li><p><code>year</code> (Int): Year of the schedule</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the departments, and it's schedules, roles and shifts if any</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3cc27571-7fdd-4fb3-9b8f-20781aa145f6"},{"name":"Download Department Schedule for Month","event":[{"listen":"test","script":{"id":"d270b918-4848-4561-8455-d33504e1ac57","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"296b1d89-1464-4450-9834-dcf3fe6f892a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"},{"key":"hc-timezone","value":"{{hc-timezone}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchSchedules($departmentId: Int!, $month: ScheduleMonths, $year: Int) {\n    locating {\n        department(id: $departmentId) {\n            id\n            name\n            schedules(month: $month, year: $year) {\n                ...ScheduleFragment\n            }\n        }\n    }\n}\n\nfragment ScheduleFragment on Schedule {\n    id\n    name\n    startDate\n    endDate\n    downloadFile {\n        url\n        fileName\n        mimeType\n        blob(encoding: \"base64\")\n    }\n}","variables":"{\n    \"departmentId\": {{department_id}},\n    \"month\": \"april\",\n    \"year\": 2025\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private","description":"<h2 id=\"download-department-schedule-for-month\">Download Department Schedule for Month</h2>\n<p>GraphQL query that returns the basic schedule information and a downlaod link to an xlsx file for a department for the given month &amp; year.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>departmentId</code> (Int): ID of site</p>\n</li>\n<li><p><code>month</code> (String): Month of the schedule, lower case string. (e.g. \"january\", \"february\", \"march\", etc)</p>\n</li>\n<li><p><code>year</code> (Int): Year of the schedule</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"17c5dbe0-c35f-431b-9956-d6d71b5d1eee","name":"Fetch Site Schedule Metadata for Month Copy","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"},{"key":"hc-timezone","value":"{{hc-timezone}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchSchedules($departmentId: Int!, $month: ScheduleMonths, $year: Int) {\n    locating {\n        department(id: $departmentId) {\n            id\n            name\n            schedules(month: $month, year: $year) {\n                ...ScheduleFragment\n            }\n        }\n    }\n}\n\nfragment ScheduleFragment on Schedule {\n    id\n    name\n    startDate\n    endDate\n    downloadFile {\n        url\n        fileName\n        mimeType\n        blob(encoding: \"base64\")\n    }\n}","variables":"{\n    \"departmentId\": {{department_id}},\n    \"month\": \"april\",\n    \"year\": 2025\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Request-ID","value":"857d7a04-55c4-4153-909c-ef1bffdb1552"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26855"},{"key":"Date","value":"Tue, 01 Apr 2025 18:56:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"locating\": {\n            \"department\": {\n                \"id\": 68,\n                \"name\": \"Test department\",\n                \"schedules\": [\n                    {\n                        \"id\": 2944,\n                        \"name\": \"April\",\n                        \"startDate\": \"2025-04-01T04:00:00.000Z\",\n                        \"endDate\": \"2025-05-01T03:59:59.000Z\",\n                        \"downloadFile\": {\n                            \"url\": \"https://example-image.s3.ca-central-1.amazonaws.com/test_department_example_file_name.xlsx\",\n                            \"fileName\": \"test_department_example_file_name.xlsx\",\n                            \"mimeType\": \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\n                            \"blob\": \"UEsDBBQAAAAAAAAAAACkAYS4tQIAALUCAAAaAAAAeGwvX3JlbHMvd29ya2Jvb2sueG1sLnJlbHM8P3htbCB2ZXJzaW9uPSIxLjAiIGVuY29kaW5nPSJVVEYtOCIgc3RhbmRhbG9uZT0ieWVzIj8+DQo8UmVsYXRpb25zaGlwcyB4bWxucz0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9yZWxhdGlvbnNoaXBzIj48UmVsYXRpb25zaGlwIElkPSJySWQxIiBUeXBlPSJodHRwOi8vc2NoZW1hcy5vcGVueG1sZm9ybWF0cy5vcmcvb2ZmaWNlRG9jdW1lbnQvMjAwNi9yZWxhdGlvbnNoaXBzL3dvcmtzaGVldCIgVGFyZ2V0PSJ3b3Jrc2hlZXRzL3NoZWV0MS54bWwiLz4+PFJlbGF0aW9uc2hpcCBJZD0icklkNCIgVHlwZT0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL29mZmljZURvY3VtZW50LzIwMDYvcmVsYXRpb25zaGlwcy9zaGVldE1ldGFkYXRhIiBUYXJnZXQ9Im1ldGFkYXRhLnhtbCIvPjwvUmVsYXRpb25zaGlwcz5QSwMEFAAAAAAAAAAAADAPiGveHQAA3h0AABMAAAB4bC90aGVtZS90aGVtZTEueG1sPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pg0KPGE6dGhlbWUgeG1sbnM6YT0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL2RyYXdpbmdtbC8yMDA2L21haW4iIG5hbWU9Ik9mZmljZSBUaGVtZSI+PGE6dGhlbWVFbGVtZW50cz48YTpjbHJTY2hlbWUgbmFtZT0iT2ZmaWNlIj48YTpkazE+PGE6c3lzQ2xyIHZhbD0id2luZG93VGV4dCIgbGFzdENscj0iMDAwMDAwIi8+PC9hOmRrMT48YTpsdDE+PGE6c3lzQ2xyIHZhbD0id2luZG93IiBsYXN0Q2xyPSJGRkZGRkYiLz48L2E6bHQxPjxhOmRrMj48YTpzcmdiQ2xyIHZhbD0iMUY0OTdEIi8+PC9hOmRrMj48YTpsdDI+PGE6c3JnYkNsciB2YWw9IkVFRUNFMSIvPjwvYTpsdDI+PGE6YWNjZW50MT48YTpzcmdiQ2xyIHZhbD0iNEY4MUJEIi8+PC9hOmFjY2VudDE+PGE6YWNjZW50Mj48YTpzcmdiQ2xyIHZhbD0iQzA1MDREIi8+PC9hOmFjY2VudDI+PGE6YWNjZW50Mz48YTpzcmdiQ2xyIHZhbD0iOUJCQjU5Ii8+PC9hOmFjY2VudDM+PGE6YWNjZW50ND48YTpzcmdiQ2xyIHZhbD0iODA2NEEyIi8+PC9hOmFjY2VudDQ+PGE6YWNjZW50NT48YTpzcmdiQ2xyIHZhbD0iNEJBQ0M2Ii8+PC9hOmFjY2VudDU+PGE6YWNjZW50Nj48YTpzcmdiQ2xyIHZhbD0iRjc5NjQ2Ii8+PC9hOmFjY2VudDY+PGE6aGxpbms+PGE6c3JnYkNsciB2YWw9IjAwMDBGRiIvPjwvYTpobGluaz48YTpmb2xIbGluaz48YTpzcmdiQ2xyIHZhbD0iODAwMDgwIi8+PC9hOmZvbEhsaW5rPjwvYTpjbHJTY2hlbWU+PGE6Zm9udFNjaGVtZSBuYW1lPSJPZmZpY2UiPjxhOm1ham9yRm9udD48YTpsYXRpbiB0eXBlZmFjZT0iQ2FtYnJpYSIvPjxhOmVhIHR5cGVmYWNlPSIiLz48YTpjcyB0eXBlZmFjZT0iIi8+PGE6Zm9udCBzY3JpcHQ9IkpwYW4iIHR5cGVmYWNlPSLvvK3vvLMg77yw44K044K344OD44KvIi8+PGE6Zm9udCBzY3JpcHQ9IkhhbmciIHR5cGVmYWNlPSLrp5HsnYAg6rOg65SVIi8+PGE6Zm9udCBzY3JpcHQ9IkhhbnMiIHR5cGVmYWNlPSLlrovkvZMiLz48YTpmb250IHNjcmlwdD0iSGFudCIgdHlwZWZhY2U9IuaWsOe0sOaYjumrlCIvPjxhOmZvbnQgc2NyaXB0PSJBcmFiIiB0eXBlZmFjZT0iVGltZXMgTmV3IFJvbWFuIi8+PGE6Zm9udCBzY3JpcHQ9IkhlYnIiIHR5cGVmYWNlPSJUaW1lcyBOZXcgUm9tYW4iLz48YTpmb250IHNjcmlwdD0iVGhhaSIgdHlwZWZhY2U9IlRhaG9tYSIvPjxhOmZvbnQgc2NyaXB0PSJFdGhpIiB0eXBlZmFjZT0iTnlhbGEiLz48YTpmb250IHNjcmlwdD0iQmVuZyIgdHlwZWZhY2U9IlZyaW5kYSIvPjxhOmZvbnQgc2NyaXB0PSJHdWpyIiB0eXBlZmFjZT0iU2hydXRpIi8+PGE6Zm9udCBzY3JpcHQ9IktobXIiIHR5cGVmYWNlPSJNb29sQm9yYW4iLz48YTpmb250IHNjcmlwdD0iS25kYSIgdHlwZWZhY2U9IlR1bmdhIi8+PGE6Zm9udCBzY3JpcHQ9Ikd1cnUiIHR5cGVmYWNlPSJSYWF2aSIvPjxhOmZvbnQgc2NyaXB0PSJDYW5zIiB0eXBlZmFjZT0iRXVwaGVtaWEiLz48YTpmb250IHNjcmlwdD0iQ2hlciIgdHlwZWZhY2U9IlBsYW50YWdlbmV0IENoZXJva2VlIi8+PGE6Zm9udCBzY3JpcHQ9IllpaWkiIHR5cGVmYWNlPSJNaWNyb3NvZnQgWWkgQmFpdGkiLz48YTpmb250IHNjcmlwdD0iVGlidCIgdHlwZWZhY2U9Ik1pY3Jvc29mdCBIaW1hbGF5YSIvPjxhOmZvbnQgc2NyaXB0PSJUaGFhIiB0eXBlZmFjZT0iTVYgQm9saSIvPjxhOmZvbnQgc2NyaXB0PSJEZXZhIiB0eXBlZmFjZT0iTWFuZ2FsIi8+PGE6Zm9udCBzY3JpcHQ9IlRlbHUiIHR5cGVmYWNlPSJHYXV0YW1pIi8+PGE6Zm9udCBzY3JpcHQ9IlRhbWwiIHR5cGVmYWNlPSJMYXRoYSIvPjxhOmZvbnQgc2NyaXB0PSJTeXJjIiB0eXBlZmFjZT0iRXN0cmFuZ2VsbyBFZGVzc2EiLz48YTpmb250IHNjcmlwdD0iT3J5YSIgdHlwZWZhY2U9IkthbGluZ2EiLz48YTpmb250IHNjcmlwdD0iTWx5bSIgdHlwZWZhY2U9IkthcnRpa2EiLz48YTpmb250IHNjcmlwdD0iTGFvbyIgdHlwZWZhY2U9IkRva0NoYW1wYSIvPjxhOmZvbnQgc2NyaXB0PSJTaW5oIiB0eXBlZmFjZT0iSXNrb29sYSBQb3RhIi8+PGE6Zm9udCBzY3JpcHQ9Ik1vbmciIHR5cGVmYWNlPSJNb25nb2xpYW4gQmFpdGkiLz48YTpmb250IHNjcmlwdD0iVmlldCIgdHlwZWZhY2U9IlRpbWVzIE5ldyBSb21hbiIvPjxhOmZvbnQgc2NyaXB0PSJVaWdoIiB0eXBlZmFjZT0iTWljcm9zb2Z0IFVpZ2h1ciIvPjxhOmZvbnQgc2NyaXB0PSJHZW9yIiB0eXBlZmFjZT0iU3lsZmFlbiIvPjwvYTptYWpvckZvbnQ+PGE6bWlub3JGb250PjxhOmxhdGluIHR5cGVmYWNlPSJDYWxpYnJpIi8+PGE6ZWEgdHlwZWZhY2U9IiIvPjxhOmNzIHR5cGVmYWNlPSIiLz48YTpmb250IHNjcmlwdD0iSnBhbiIgdHlwZWZhY2U9Iu+8re+8syDvvLDjgrTjgrfjg4Pjgq8iLz48YTpmb250IHNjcmlwdD0iSGFuZyIgdHlwZWZhY2U9IuunkeydgCDqs6DrlJUiLz48YTpmb250IHNjcmlwdD0iSGFucyIgdHlwZWZhY2U9IuWui+S9kyIvPjxhOmZvbnQgc2NyaXB0PSJIYW50IiB0eXBlZmFjZT0i5paw57Sw5piO6auUIi8+PGE6Zm9udCBzY3JpcHQ9IkFyYWIiIHR5cGVmYWNlPSJBcmlhbCIvPjxhOmZvbnQgc2NyaXB0PSJIZWJyIiB0eXBlZmFjZT0iQXJpYWwiLz48YTpmb250IHNjcmlwdD0iVGhhaSIgdHlwZWZhY2U9IlRhaG9tYSIvPjxhOmZvbnQgc2NyaXB0PSJFdGhpIiB0eXBlZmFjZT0iTnlhbGEiLz48YTpmb250IHNjcmlwdD0iQmVuZyIgdHlwZWZhY2U9IlZyaW5kYSIvPjxhOmZvbnQgc2NyaXB0PSJHdWpyIiB0eXBlZmFjZT0iU2hydXRpIi8+PGE6Zm9udCBzY3JpcHQ9IktobXIiIHR5cGVmYWNlPSJEYXVuUGVuaCIvPjxhOmZvbnQgc2NyaXB0PSJLbmRhIiB0eXBlZmFjZT0iVHVuZ2EiLz48YTpmb250IHNjcmlwdD0iR3VydSIgdHlwZWZhY2U9IlJhYXZpIi8+PGE6Zm9udCBzY3JpcHQ9IkNhbnMiIHR5cGVmYWNlPSJFdXBoZW1pYSIvPjxhOmZvbnQgc2NyaXB0PSJDaGVyIiB0eXBlZmFjZT0iUGxhbnRhZ2VuZXQgQ2hlcm9rZWUiLz48YTpmb250IHNjcmlwdD0iWWlpaSIgdHlwZWZhY2U9Ik1pY3Jvc29mdCBZaSBCYWl0aSIvPjxhOmZvbnQgc2NyaXB0PSJUaWJ0IiB0eXBlZmFjZT0iTWljcm9zb2Z0IEhpbWFsYXlhIi8+PGE6Zm9udCBzY3JpcHQ9IlRoYWEiIHR5cGVmYWNlPSJNViBCb2xpIi8+PGE6Zm9udCBzY3JpcHQ9IkRldmEiIHR5cGVmYWNlPSJNYW5nYWwiLz48YTpmb250IHNjcmlwdD0iVGVsdSIgdHlwZWZhY2U9IkdhdXRhbWkiLz48YTpmb250IHNjcmlwdD0iVGFtbCIgdHlwZWZhY2U9IkxhdGhhIi8+PGE6Zm9udCBzY3JpcHQ9IlN5cmMiIHR5cGVmYWNlPSJFc3RyYW5nZWxvIEVkZXNzYSIvPjxhOmZvbnQgc2NyaXB0PSJPcnlhIiB0eXBlZmFjZT0iS2FsaW5nYSIvPjxhOmZvbnQgc2NyaXB0PSJNbHltIiB0eXBlZmFjZT0iS2FydGlrYSIvPjxhOmZvbnQgc2NyaXB0PSJMYW9vIiB0eXBlZmFjZT0iRG9rQ2hhbXBhIi8+PGE6Zm9udCBzY3JpcHQ9IlNpbmgiIHR5cGVmYWNlPSJJc2tvb2xhIFBvdGEiLz48YTpmb250IHNjcmlwdD0iTW9uZyIgdHlwZWZhY2U9Ik1vbmdvbGlhbiBCYWl0aSIvPjxhOmZvbnQgc2NyaXB0PSJWaWV0IiB0eXBlZmFjZT0iQXJpYWwiLz48YTpmb250IHNjcmlwdD0iVWlnaCIgdHlwZWZhY2U9Ik1pY3Jvc29mdCBVaWdodXIiLz48YTpmb250IHNjcmlwdD0iR2VvciIgdHlwZWZhY2U9IlN5bGZhZW4iLz48L2E6bWlub3JGb250PjwvYTpmb250U2NoZW1lPjxhOmZtdFNjaGVtZSBuYW1lPSJPZmZpY2UiPjxhOmZpbGxTdHlsZUxzdD48YTpzb2xpZEZpbGw+PGE6c2NoZW1lQ2xyIHZhbD0icGhDbHIiLz48L2E6c29saWRGaWxsPjxhOmdyYWRGaWxsIHJvdFdpdGhTaGFwZT0iMSI+PGE6Z3NMc3Q+PGE6Z3MgcG9zPSIwIj48YTpzY2hlbWVDbHIgdmFsPSJwaENsciI+PGE6dGludCB2YWw9IjUwMDAwIi8+PGE6c2F0TW9kIHZhbD0iMzAwMDAwIi8+PC9hOnNjaGVtZUNscj48L2E6Z3M+PGE6Z3MgcG9zPSIzNTAwMCI+PGE6c2NoZW1lQ2xyIHZhbD0icGhDbHIiPjxhOnRpbnQgdmFsPSIzNzAwMCIvPjxhOnNhdE1vZCB2YWw9IjMwMDAwMCIvPjwvYTpzY2hlbWVDbHI+PC9hOmdzPjxhOmdzIHBvcz0iMTAwMDAwIj48YTpzY2hlbWVDbHIgdmFsPSJwaENsciI+PGE6dGludCB2YWw9IjE1MDAwIi8+PGE6c2F0TW9kIHZhbD0iMzUwMDAwIi8+PC9hOnNjaGVtZUNscj48L2E6Z3M+PC9hOmdzTHN0PjxhOmxpbiBhbmc9IjE2MjAwMDAwIiBzY2FsZWQ9IjEiLz48L2E6Z3JhZEZpbGw+PGE6Z3JhZEZpbGwgcm90V2l0aFNoYXBlPSIxIj48YTpnc0xzdD48YTpncyBwb3M9IjAiPjxhOnNjaGVtZUNsciB2YWw9InBoQ2xyIj48YTp0aW50IHZhbD0iMTAwMDAwIi8+PGE6c2hhZGUgdmFsPSIxMDAwMDAiLz48YTpzYXRNb2QgdmFsPSIxMzAwMDAiLz48L2E6c2NoZW1lQ2xyPjwvYTpncz48YTpncyBwb3M9IjEwMDAwMCI+PGE6c2NoZW1lQ2xyIHZhbD0icGhDbHIiPjxhOnRpbnQgdmFsPSI1MDAwMCIvPjxhOnNoYWRlIHZhbD0iMTAwMDAwIi8+PGE6c2F0TW9kIHZhbD0iMzUwMDAwIi8+PC9hOnNjaGVtZUNscj48L2E6Z3M+PC9hOmdzTHN0PjxhOmxpbiBhbmc9IjE2MjAwMDAwIiBzY2FsZWQ9IjAiLz48L2E6Z3JhZEZpbGw+PC9hOmZpbGxTdHlsZUxzdD48YTpsblN0eWxlTHN0PjxhOmxuIHc9Ijk1MjUiIGNhcD0iZmxhdCIgY21wZD0ic25nIiBhbGduPSJjdHIiPjxhOnNvbGlkRmlsbD48YTpzY2hlbWVDbHIgdmFsPSJwaENsciI+PGE6c2hhZGUgdmFsPSI5NTAwMCIvPjxhOnNhdE1vZCB2YWw9IjEwNTAwMCIvPjwvYTpzY2hlbWVDbHI+PC9hOnNvbGlkRmlsbD48YTpwcnN0RGFzaCB2YWw9InNvbGlkIi8+PC9hOmxuPjxhOmxuIHc9IjI1NDAwIiBjYXA9ImZsYXQiIGNtcGQ9InNuZyIgYWxnbj0iY3RyIj48YTpzb2xpZEZpbGw+PGE6c2NoZW1lQ2xyIHZhbD0icGhDbHIiLz48L2E6c29saWRGaWxsPjxhOnByc3REYXNoIHZhbD0ic29saWQiLz48L2E6bG4+PGE6bG4gdz0iMzgxMDAiIGNhcD0iZmxhdCIgY21wZD0ic25nIiBhbGduPSJjdHIiPjxhOnNvbGlkRmlsbD48YTpzY2hlbWVDbHIgdmFsPSJwaENsciIvPjwvYTpzb2xpZEZpbGw+PGE6cHJzdERhc2ggdmFsPSJzb2xpZCIvPjwvYTpsbj48L2E6bG5TdHlsZUxzdD48YTplZmZlY3RTdHlsZUxzdD48YTplZmZlY3RTdHlsZT48YTplZmZlY3RMc3Q+PGE6b3V0ZXJTaGR3IGJsdXJSYWQ9IjQwMDAwIiBkaXN0PSIyMDAwMCIgZGlyPSI1NDAwMDAwIiByb3RXaXRoU2hhcGU9IjAiPjxhOnNyZ2JDbHIgdmFsPSIwMDAwMDAiPjxhOmFscGhhIHZhbD0iMzgwMDAiLz48L2E6c3JnYkNscj48L2E6b3V0ZXJTaGR3PjwvYTplZmZlY3RMc3Q+PC9hOmVmZmVjdFN0eWxlPjxhOmVmZmVjdFN0eWxlPjxhOmVmZmVjdExzdD48YTpvdXRlclNoZHcgYmx1clJhZD0iNDAwMDAiIGRpc3Q9IjIzMDAwIiBkaXI9IjU0MDAwMDAiIHJvdFdpdGhTaGFwZT0iMCI+PGE6c3JnYkNsciB2YWw9IjAwMDAwMCI+PGE6YWxwaGEgdmFsPSIzNTAwMCIvPjwvYTpzcmdiQ2xyPjwvYTpvdXRlclNoZHc+PC9hOmVmZmVjdExzdD48L2E6ZWZmZWN0U3R5bGU+PGE6ZWZmZWN0U3R5bGU+PGE6ZWZmZWN0THN0PjxhOm91dGVyU2hkdyBibHVyUmFkPSI0MDAwMCIgZGlzdD0iMjMwMDAiIGRpcj0iNTQwMDAwMCIgcm90V2l0aFNoYXBlPSIwIj48YTpzcmdiQ2xyIHZhbD0iMDAwMDAwIj48YTphbHBoYSB2YWw9IjM1MDAwIi8+PC9hOnNyZ2JDbHI+PC9hOm91dGVyU2hkdz48L2E6ZWZmZWN0THN0PjxhOnNjZW5lM2Q+PGE6Y2FtZXJhIHByc3Q9Im9ydGhvZ3JhcGhpY0Zyb250Ij48YTpyb3QgbGF0PSIwIiBsb249IjAiIHJldj0iMCIvPjwvYTpjYW1lcmE+PGE6bGlnaHRSaWcgcmlnPSJ0aHJlZVB0IiBkaXI9InQiPjxhOnJvdCBsYXQ9IjAiIGxvbj0iMCIgcmV2PSIxMjAwMDAwIi8+PC9hOmxpZ2h0UmlnPjwvYTpzY2VuZTNkPjxhOnNwM2Q+PGE6YmV2ZWxUIHc9IjYzNTAwIiBoPSIyNTQwMCIvPjwvYTpzcDNkPjwvYTplZmZlY3RTdHlsZT48L2E6ZWZmZWN0U3R5bGVMc3Q+PGE6YmdGaWxsU3R5bGVMc3Q+PGE6c29saWRGaWxsPjxhOnNjaGVtZUNsciB2YWw9InBoQ2xyIi8+PC9hOnNvbGlkRmlsbD48YTpncmFkRmlsbCByb3RXaXRoU2hhcGU9IjEiPjxhOmdzTHN0PjxhOmdzIHBvcz0iMCI+PGE6c2NoZW1lQ2xyIHZhbD0icGhDbHIiPjxhOnRpbnQgdmFsPSI0MDAwMCIvPjxhOnNhdE1vZCB2YWw9IjM1MDAwMCIvPjwvYTpzY2hlbWVDbHI+PC9hOmdzPjxhOmdzIHBvcz0iNDAwMDAiPjxhOnNjaGVtZUNsciB2YWw9InBoQ2xyIj48YTp0aW50IHZhbD0iNDUwMDAiLz48YTpzaGFkZSB2YWw9Ijk5MDAwIi8+PGE6c2F0TW9kIHZhbD0iMzUwMDAwIi8+PC9hOnNjaGVtZUNscj48L2E6Z3M+PGE6Z3MgcG9zPSIxMDAwMDAiPjxhOnNjaGVtZUNsciB2YWw9InBoQ2xyIj48YTpzaGFkZSB2YWw9IjIwMDAwIi8+PGE6c2F0TW9kIHZhbD0iMjU1MDAwIi8+PC9hOnNjaGVtZUNscj48L2E6Z3M+PC9hOmdzTHN0PjxhOnBhdGggcGF0aD0iY2lyY2xlIj48YTpmaWxsVG9SZWN0IGw9IjUwMDAwIiB0PSItODAwMDAiIHI9IjUwMDAwIiBiPSIxODAwMDAiLz48L2E6cGF0aD48L2E6Z3JhZEZpbGw+PGE6Z3JhZEZpbGwgcm90V2l0aFNoYXBlPSIxIj48YTpnc0xzdD48YTpncyBwb3M9IjAiPjxhOnNjaGVtZUNsciB2YWw9InBoQ2xyIj48YTp0aW50IHZhbD0iODAwMDAiLz48YTpzYXRNb2QgdmFsPSIzMDAwMDAiLz48L2E6c2NoZW1lQ2xyPjwvYTpncz48YTpncyBwb3M9IjEwMDAwMCI+PGE6c2NoZW1lQ2xyIHZhbD0icGhDbHIiPjxhOnNoYWRlIHZhbD0iMzAwMDAiLz48YTpzYXRNb2QgdmFsPSIyMDAwMDAiLz48L2E6c2NoZW1lQ2xyPjwvYTpncz48L2E6Z3NMc3Q+PGE6cGF0aCBwYXRoPSJjaXJjbGUiPjxhOmZpbGxUb1JlY3QgbD0iNTAwMDAiIHQ9IjUwMDAwIiByPSI1MDAwMCIgYj0iNTAwMDAiLz48L2E6cGF0aD48L2E6Z3JhZEZpbGw+PC9hOmJnRmlsbFN0eWxlTHN0PjwvYTpmbXRTY2hlbWU+PC9hOnRoZW1lRWxlbWVudHM+PGE6b2JqZWN0RGVmYXVsdHM+PGE6c3BEZWY+PGE6c3BQci8+PGE6Ym9keVByLz48YTpsc3RTdHlsZS8+PGE6c3R5bGU+PGE6bG5SZWYgaWR4PSIxIj48YTpzY2hlbWVDbHIgdmFsPSJhY2NlbnQxIi8+PC9hOmxuUmVmPjxhOmZpbGxSZWYgaWR4PSIzIj48YTpzY2hlbWVDbHIgdmFsPSJhY2NlbnQxIi8+PC9hOmZpbGxSZWY+PGE6ZWZmZWN0UmVmIGlkeD0iMiI+PGE6c2NoZW1lQ2xyIHZhbD0iYWNjZW50MSIvPjwvYTplZmZlY3RSZWY+PGE6Zm9udFJlZiBpZHg9Im1pbm9yIj48YTpzY2hlbWVDbHIgdmFsPSJsdDEiLz48L2E6Zm9udFJlZj48L2E6c3R5bGU+PC9hOnNwRGVmPjxhOmxuRGVmPjxhOnNwUHIvPjxhOmJvZHlQci8+PGE6bHN0U3R5bGUvPjxhOnN0eWxlPjxhOmxuUmVmIGlkeD0iMiI+PGE6c2NoZW1lQ2xyIHZhbD0iYWNjZW50MSIvPjwvYTpsblJlZj48YTpmaWxsUmVmIGlkeD0iMCI+PGE6c2NoZW1lQ2xyIHZhbD0iYWNjZW50MSIvPjwvYTpmaWxsUmVmPjxhOmVmZmVjdFJlZiBpZHg9IjEiPjxhOnNjaGVtZUNsciB2YWw9ImFjY2VudDEiLz48L2E6ZWZmZWN0UmVmPjxhOmZvbnRSZWYgaWR4PSJtaW5vciI+PGE6c2NoZW1lQ2xyIHZhbD0idHgxIi8+PC9hOmZvbnRSZWY+PC9hOnN0eWxlPjwvYTpsbkRlZj48L2E6b2JqZWN0RGVmYXVsdHM+PGE6ZXh0cmFDbHJTY2hlbWVMc3QvPjwvYTp0aGVtZT5QSwMEFAAAAAAAAAAAAFX0BJRaBAAAWgQAAA0AAAB4bC9zdHlsZXMueG1sPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pg0KPHMCIgZmlsbElkPSIwIiBib3JkZXJJZD0iMCIvPjwvY2VsbFN0eWxlWGZzPjxjZWxsWGZzIGNvdW50PSIxIj48eGYgbnVtRm10SWQ9IjAiIGZvbnRJZD0iMCIgZmlsbElkPSIwIiBib3JkZXJJZD0iMCIgeGZJZD0iMCIgYXBwbHlOdW1iZXJGb3JtYXQ9IjEiLz48L2NlbGxYZnM+PGNlbGxTdHlsZXMgY291bnQ9IjEiPjxjZWxsU3R5bGUgbmFtZT0iTm9ybWFsIiB4ZklkPSIwIiBidWlsdGluSWQ9IjAiLz48L2NlbGxTdHlsZXM+PGR4ZnMgY291bnQ9IjAiLz48dGFibGVTdHlsZXMgY291bnQ9IjAiIGRlZmF1bHRUYWJsZVN0eWxlPSJUYWJsZVN0eWxlTWVkaXVtOSIgZGVmYXVsdFBpdm90U3R5bGU9IlBpdm90U3R5bGVNZWRpdW00Ii8+PC9zdHlsZVNoZWV0PlBLAwQUAAAAAAAAAAAAY3VDuUUQAABFEAAAGAAAAHhsL3dvcmtzaGVldHMvc2hlZXQxLnhtbDw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz4NCjx3b3Jrc2hlZXQgeG1sbnM9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9zcHJlYWRzaGVldG1sLzIwMDYvbWFpbiIgeG1sbnM6cj0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL29mZmljZURvY3VtZW50LzIwMDYvcmVsYXRpb25zaGlwcyI+PGRpbWVuc2lvbiByZWY9IkExOkIzMSIvPjxzaGVldFZpZXdzPjxzaGVldFZpZXcgd29ya2Jvb2tWaWV3SWQ9IjAiLz48L3NoZWV0Vmlld3M+PHNoZWV0RGF0YT48cm93IHI9IjEiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxjIHI9IkExIiB0PSJzdHIiPjx2PkRheSAoVVRDIC00KTwvdj48L2M+PGMgcj0iQjEiIHQ9InN0ciIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHYgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+dGVzdCByb2xlCjA4OjAwIC0gMDg6MDA8L3Y+PC9jPjwvcm93Pjxyb3cgcj0iMiI+PGMgcj0iQTIiIHQ9InN0ciI+PHY+VHVlLCBBcHJpbCAwMSwgMjAyNTwvdj48L2M+PGMgcj0iQjIiIHQ9InN0ciI+PHYgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+IFN1c2llIGFnYWluIFl4eHh4PC92PjwvYz48L3Jvdz48cm93IHI9IjMiPjxjIHI9IkEzIiB0PSJzdHIiPjx2PldlZCwgQXByaWwgMDIsIDIwMjU8L3Y+PC9jPjxjIHI9IkIzIiB0PSJzdHIiPjx2IHhtbDpzcGFjZT0icHJlc2VydmUiPiBTdXNpZSBhZ2FpbiBZeHh4eDwvdj48L2M+PC9yb3c+PHJvdyByPSI0Ij48YyByPSJBNCIgdD0ic3RyIj48dj5UaHUsIEFwcmlsIDAzLCAyMDI1PC92PjwvYz48YyByPSIxMCI+PGMgcj0iQTEwIiB0PSJzdHIiPjx2PldlZCwgQXByaWwgMDksIDIwMjU8L3Y+PC9jPjxjIHI9IkIxMCIgdD0ic3RyIj48diB4bWw6c3BhY2U9InByZXNlcnZlIj4gPC92PjwvYz48L3Jvdz48cm93IHI9IjExIj48YyByPSJBMTEiIHQ9InN0ciI+PHY+VGh1LCBBcHJpbCAxMCwgMjAyNTwvdj48L2M+PGMgcj0iQjExIiB0PSJzdHIiPjx2IHhtbDpzcGFjZT0icHJlc2VydmUiPiA8L3Y+PC9jPjwvcm93Pjxyb3cgcj0iMTIiPjxjIHI9IkExMiIgdD0ic3RyIj48dj5GcmksIEFwcmlsIDExLCAyMDI1PC92PjwvYz48YyByPSJCMTIiIHQ9InN0ciI+PHYgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+IDwvdj48L2M+PC9yb3c+PHJvdyByPSIxMyI+PGMgcj0iQTEzIiB0PSJzdHIiPjx2PlNhdCwgQXByaWwgMTIsIDIwMjU8L3Y+PC9jPjxjIHI9IkIxMyIgdD0ic3RyIj48diB4bWw6c3BhY2U9InByZXNlcnZlIj4gPC92PjwvYz48L3Jvdz48cm93IHI9IjE0Ij48YyByPSJBMTQiIHQ9InN0ciI+PHY+U3VuLCBBcHJpbCAxMywgMjAyNTwvdj48L2M+PGMgcj0iQjE0IiB0PSJzdHIiPjx2IHhtbDpzcGFjZT0icHJlc2VydmUiPiA8L3Y+PC9jPjwvcm93Pjxyb3cgcj0iMTUiPjxjIHI9IkExNSIgdD0ic3RyIj48dj5Nb24sIEFwcmlsIDE0LCAyMDI1PC92PjwvYz48YyByPSJCMTUiIHQ9InN0ciI+PHYgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+IDwvdj48L2M+PC9yb3c+PHJvdyByPSIxNiI+PGMgcj0iQTE2IiB0PSJzdHIiPjx2PlR1ZSwgQXByaWwgMTUsIDIwMjU8L3Y+PC9jPjxjIHI9IkIxNiIgdD0ic3RyIj48diB4bWw6c3BhY2U9InByZXNlcnZlIj4gPC92PjwvYz48L3Jvdz48cm93IHI9IjE3Ij48YyByPSJBMTciIHQ9InN0ciI+PHY+V2VkLCBBcHJpbCAxNiwgMjAyNTwvdj48L2M+PGMgcj0iQjE3IiB0PSJzdHIiPjx2IHhtbDpzcGFjZT0icHJlc2VydmUiPiA8L3Y+PC9jPjwvcm93Pjxyb3cgcj0iMTgiPjxjIHI9IkExOCIgdD0ic3RyIj48dj5UaHUsIEFwcmlsIDE3LCAyMDI1PC92PjwvYz48YyByPSJCMTgiIHQ9InN0ciI+PHYgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+IDwv+PGMgcj0iQTIyIiB0PSJzdHIiPjx2Pk1vbiwgQXByaWwgMjEsIDIwMjU8L3Y+PC9jPjxjIHI9IkIyMiIgdD0ic3RyIj48diB4bWw6c3BhY2U9InByZXNlcnZlIj4gPC92PjwvYz48L3Jvdz48cm93IHI9IjIzIj48YyByPSJBMjMiIHQ9InN0ciI+PHY+VHVlLCBBcHJpbCAyMiwgMjAyNTwvdj48L2M+PGMgcj0iQjIzIiB0PSJzdHIiPjx2IHhtbDpzcGFjZT0icHJlc2VydmUiPiA8L3Y+PC9jPjwvcm93Pjxyb3cgcj0iMjQiPjxjIHI9IkEyNCIgdD0ic3RyIj48dj5XZWQsIEFwcmlsIDIzLCAyMDI1PC92PjwvYz48YyByPSJCMjQiIHQ9InN0ciI+PHYgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+IDwvdj48L2M+PC9yb3c+PHJvdyByPSIyNSI+PGMgcj0iQTI1IiB0PSJzdHIiPjx2PlRodSwgQXByaWwgMjQsIDIwMjU8L3Y+PC9jPjxjIHI9IkIyNSIgdD0ic3RyIj48diB4bWw6c3BhY2U9InByZXNlcnZlIj4gPC92PjwvYz48L3Jvdz48cm93IHI9IjI2Ij48YyByPSJBMjYiIHQ9InN0ciI+PHY+RnJpLCBBcHJpbCAyNSwgMjAyNTwvdj48L2M+PGMgcj0iQjI2IiB0PSJzdHIiPjx2IHhtbDpzcGFjZT0icHJlc2VydmUiPiA8L3Y+PC9jPjwvcm93Pjxyb3cgcj0iMjciPjxjIHI9IkEyNyIgdD0ic3RyIj48dj5TYXQsIEFwcmlsIDI2LCAyMDI1PC92PjwvYz48YyByPSJCMjciIHQ9InN0ciI+PHYgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+TW9uLCBBcHJpbCAyOCwgMjAyNTwvdj48L2M+PGMgcj0iQjI5IiB0PSJzdHIiPjx2IHhtbDpzcGFjZT0icHJlc2VydmUiPiA8L3Y+PC9jPjwvcm93Pjxyb3cgcj0iMzAiPjxjIHI9IkEzMCIgdD0ic3RyIj48dj5UdWUsIEFwcmlsIDI5LCAyMDI1PC92PjwvYz48YyByPSJCMzAiIHQ9InN0ciI+PHYgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+IDwvdj48L2M+PC9yb3c+PHJvdyByPSIzMSI+PGMgcj0iQTMxIiB0PSJzdHIiPjx2PldlZCwgQXByaWwgMzAsIDIwMjU8L3Y+PC9jPjxjIHI9IkIzMSIgdD0ic3RyIj48diB4bWw6c3BhY2U9InByZXNlcnZlIj4gPC92PjwvYz48L3Jvdz48L3NoZWV0RGF0YT48aWdub3JlZEVycm9ycz48aWdub3JlZEVycm9yIG51bWJlclN0b3JlZEFzVGV4dD0iMSIgc3FyZWY9IkExOkIzMSIvPjwvaWdub3JlZEVycm9ycz48L3dvcmtzaGVldD5QSwMEFAAAAAAAAAAAAGCAAIGIAwAAiAMAAA8AAAB4bC9tZXRhZGF0YS54bWw8P3htbCB2ZXJzaW9uPSIxLjAiIGVuY29kaW5nPSJVVEYtOCIgc3RhbmRhbG9uZT0ieWVzIj8+DQo8bWV0YWRhdGEgeG1sbnM9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9zcHJlYWRzaGVldG1sLzIwMDYvbWFpbiIgeG1sbnM6eGxyZD0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9vZmZpY2Uvc3ByZWFkc2hlZXRtbC8yMDE3L3JpY2hkYXRhIiB4bWxuczp4ZGE9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vb2ZmaWNlL3NwcmVhZHNoZWV0bWwvMjAxNy9keW5hbWljYXJyYXkiPgogIDxtZXRhZGF0YVR5cGVzIGNvdW50PSIxIj4KICAgIDxtZXRhZGF0YVR5cGUgbmFtZT0iWExEQVBSIiBtaW5TdXBwb3J0ZWRWZXJzaW9uPSIxMjAwMDAiIGNvcHk9IjEiIHBhc3RlQWxsPSIxIiBwYXN0ZVZhbHVlcz0iMSIgbWVyZ2U9IjEiIHNwbGl0Rmlyc3Q9IjEiIHJvd0NvbFNoaWZ0PSIxIiBjbGVhckZvcm1hdHM9IjEiIGNsZWFyQ29tbWVudHM9IjEiIGFzc2lnbj0iMSIgY29lcmNlPSIxIiBjZWxsTWV0YT0iMSIvPgogIDwvbWV0YWRhdGFUeXBlcz4KICA8ZnV0dXJlTWV0YWRhdGEgbmFtZT0iWExEQVBSIiBjb3VudD0iMSI+CiAgICA8Yms+CiAgICAgIDxleHRMc3Q+CiAgICAgICAgPGV4dCB1cmk9IntiZGJiOGNkYy1mYTFlLTQ5NmUtYTg1Ny0zYzNmMzBjMDI5YzN9Ij4KICAgICAgICAgIDx4ZGE6ZHluYW1pY0FycmF5UHJvcGVydGllcyBmRHluYW1pYz0iMSIgZkNvbGxhcHNlZD0iMCIvPgogICAgICAgIDwvZXh0PgogICAgICA8L2V4dExzdD4KICAgIDwvYms+CiAgPC9mdXR1cmVNZXRhZGF0YT4KICA8Y2VsbE1ldGFkYXRhIGNvdW50PSIxIj4KICAgIDxiaz4KICAgICAgPHJjIHQ9IjEiIHY9IjAiLz4KICAgIDwvYms+CiAgPC9jZWxsTWV0YWRhdGE+CjwvbWV0YWRhdGE+UEsDBBQAAAAAAAAAAACAx0SsWgEAAFoBAAAPAAAAeGwvd29ya2Jvb2sueG1sPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pg0KPHdvcmtib29rIHhtbG5zPSJodHRwOi8vc2NoZW1hcy5vcGVueG1sZm9ybWF0cy5vcmcvc3ByZWFkc2hlZXRtbC8yMDA2L21haW4iIHhtbG5zOnI9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9vZmZpY2VEb2N1bWVudC8yMDA2L3JlbGF0aW9uc2hpcHMiPjx3b3JrYm9va1ByIGNvZGVOYW1lPSJUaGlzV29ya2Jvb2siLz48c2hlZXRzPjxzaGVldCBuYW1lPSJ0ZXN0X2RlcGFydG1lbnRfQXByXzIwMjVfc2NoLi4iIHNoZWV0SWQ9IjEiIHI6aWQ9InJJZDEiLz48L3NoZWV0cz48L3dvcmtib29rPlBLAwQUAAAAAAAAAAAASmoR+UwCAABMAgAACwAAAF9yZWxzLy5yZWxzPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pg0KPFJlbGF0aW9uc2hpcHMgeG1sbnM9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9wYWNrYWdlLzIwMDYvcmVsYXRpb25zaGlwcyI+PFJlbGF0aW9uc2hpcCBJZD0icklkMiIgVHlwZT0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9yZWxhdGlvbnNoaXBzL21ldGFkYXRhL2NvcmUtcHJvcGVydGllcyIgVGFyZ2V0PSJkb2NQcm9wcy9jb3JlLnhtbCIvPjxSZWxhdGlvbnNoaXAgSWQ9InJJZDMiIFR5cGU9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9vZmZpY2VEb2N1bWVudC8yMDA2L3JlbGF0aW9uc2hpcHMvZXh0ZW5kZWQtcHJvcGVydGllcyIgVGFyZ2V0PSJkb2NQcm9wcy9hcHAueG1sIi8+PFJlbGF0aW9uc2hpcCBJZD0icklkMSIgVHlwZT0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL29mZmljZURvY3VtZW50LzIwMDYvcmVsYXRpb25zaGlwcy9vZmZpY2VEb2N1bWVudCIgVGFyZ2V0PSJ4bC93b3JrYm9vay54bWwiLz48L1JlbGF0aW9uc2hpcHM+UEsDBBQAAAAAAAAAAAAMRyhASgIAAEoCAAAQAAAAZG9jUHJvcHMvYXBwLnhtbDw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz4NCjxQcm9wZXJ0aWVzIHhtbG5zPSJodHRwOi8vc2NoZW1hcy5vcGVueG1sZm9ybWF0cy5vcmcvb2ZmaWNlRG9jdW1lbnQvMjAwNi9leHRlbmRlZC1wcm9wZXJ0aWVzIiB4bWxuczp2dD0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL29mZmljZURvY3VtZW50LzIwMDYvZG9jUHJvcHNWVHlwZXMiPjxBcHBsaWNhdGlvbj5TaGVldEpTPC9BcHBsaWNhdGlvbj48SGVhZGluZ1BhaXJzPjx2dDp2ZWN0b3Igc2l6ZT0iMiIgYmFzZVR5cGU9InZhcmlhbnQiPjx2dDp2YXJpYW50Pjx2dDpscHN0cj5Xb3Jrc2hlZXRzPC92dDpscHN0cj48L3Z0OnZhcmlhbnQ+PHZ0OnZhcmlhbnQ+PHZ0Omk0PjE8L3Z0Omk0PjwvdnQ6dmFyaWFudD48L3Z0OnZlY3Rvcj48L0hlYWRpbmdQYWlycz48VGl0bGVzT2ZQYXJ0cz48dnQ6dmVjdG9yIHNpemU9IjEiIGJhc2VUeXBlPSJscHN0ciI+PHZ0Omxwc3RyPnRlc3RfZGVwYXJ0bWVudF9BcHJfMjAyNV9zY2guLjwvdnQ6bHBzdHI+PC92dDp2ZWN0b3I+PC9UaXRsZXNPZlBhcnRzPjwvUHJvcGVydGllcz5QSwMEFAAAAAAAAAAAANaSfBFaAQAAWgEAABEAAABkb2NQcm9wcy9jb3JlLnhtbDw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJ5ZXMiPz4NCjxjcDpjb3JlUHJvcGVydGllcyB4bWxuczpjcD0iaHR0cDovL3NjaGVtYXMub3BlbnhtbGZvcm1hdHMub3JnL3BhY2thZ2UvMjAwNi9tZXRhZGF0YS9jb3JlLXByb3BlcnRpZXMiIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6ZGN0ZXJtcz0iaHR0cDovL3B1cmwub3JnL2RjL3Rlcm1zLyIgeG1sbnM6ZGNtaXR5cGU9Imh0dHA6Ly9wdXJsLm9yZy9kYy9kY21pdHlwZS8iIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiLz5QSwMEFAAAAAAAAAAAAKjXaoAVCAAAFQgAABMAAABbQ29udGVudF9UeXBlc10ueG1sPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pg0KPFR5cGVzIHhtbG5zPSJodHRwOi8vc2NoZW1hcy5vcGVueG1sZm9ybWF0cy5vcmcvcGFja2FnZS8yMDA2L2NvbnRlbnQtdHlwZXMiIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiPjxEZWZhdWx0IEV4dGVuc2lvbj0ieG1sIiBDb250ZW50VHlwZT0iYXBwbGljYXRpb24veG1sIi8+PERlZmF1bHQgRXh0ZW5zaW9uPSJiaW4iIENvbnRlbnRUeXBlPSJhcHBsaWNhdGlvbi92bmQubXMtZXhjZWwuc2hlZXQuYmluYXJ5Lm1hY3JvRW5hYmxlZC5tYWluIi8+PERlZmF1bHQgRXh0ZW5zaW9uPSJ2bWwiIENvbnRlbnRUeXBlPSJhcHBsaWNhdGlvbi92bmQub3BlbnhtbGZvcm1hdHMtb2ZmaWNlZG9jdW1lbnQudm1sRHJhd2luZyIvPjxEZWZhdWx0IEV4dGVuc2lvbj0iZGF0YSIgQ29udGVudFR5cGU9ImFwcGxpY2F0aW9uL3ZuZC5vcGVueG1sZm9ybWF0cy1vZmZpY2Vkb2N1bWVudC5tb2RlbCtkYXRhIi8+PERlZmF1bHQgRXh0ZW5zaW9uPSJibXAiIENvbnRlbnRUeXBlPSJpbWFnZS9ibXAiLz48RGVmYXVsdCBFeHRlbnNpb249InBuZyIgQ29udGVudFR5cGU9ImltYWdlL3BuZyIvPjxEZWZhdWx0IEV4dGVuc2lvbj0iZ2lmIiBDb250ZW50VHlwZT0iaW1hZ2UvZ2lmIi8+PERlZmF1bHQgRXh0ZW5zaW9uPSJlbWYiIENvbnRlbnRUeXBlPSJpbWFnZS94LWVtZiIvPjxEZWZhdWx0IEV4dGVuc2lvbj0id21mIiBDb250ZW50VHlwZT0iaW1hZ2UveC13bWYiLz48RGVmYXVsdCBFeHRlbnNpb249ImpwZyIgQ29udGVudFR5cGU9ImltYWdlL2pwZWciLz48RGVmYXVsdCBFeHRlbnNpb249ImpwZWciIENvbnRlbnRUeXBlPSJpbWFnZS9qcGVnIi8+PERlZmF1bHQgRXh0ZW5zaW9uPSJ0aWYiIENvbnRlbnRUeXBlPSJpbWFnZS90aWZmIi8+PERlZmF1bHQgRXh0ZW5zaW9uPSJ0aWZmIiBDb250ZW50VHlwZT0iaW1hZ2UvdGlmZiIvPjxEZWZhdWx0IEV4dGVuc2lvbj0icGRmIiBDb250ZW50VHlwZT0iYXBwbGljYXRpb24vcGRmIi8+PERlZmF1bHQgRXh0ZW5zaW9uPSJyZWxzIiBDb250ZW50VHlwZT0iYXBwbGljYXRpb24vdm5kLm9wZW54bWxmb3JtYXRzLXBhY2thZ2UucmVsYXRpb25zaGlwcyt4bWwiLz48T3ZlcnJpZGUgUGFydE5hbWU9Ii94bC93b3JrYm9vay54bWwiIENvbnRlbnRUeXBlPSJhcHBsaWNhdGlvbi92bmQub3BlbnhtbGZvcm1hdHMtb2ZmaWNlZG9jdW1lbnQuc3ByZWFkc2hlZXRtbC5zaGVldC5tYWluK3htbCIvPjxPdmVycmlkZSBQYXJ0TmFtZT0iL3hsL3dvcmtzaGVldHMvc2hlZXQxLnhtbCIgQ29udGVudFR5cGU9ImFwcGxpY2F0aW9uL3ZuZC5vcGVueG1sZm9ybWF0cy1vZmZpY2Vkb2N1bWVudC5zcHJlYWRzaGVldG1sLndvcmtzaGVldCt4bWwiLz48T3ZlcnJpZGUgUGFydE5hbWU9Ii94bC90aGVtZS90aGVtZTEueG1sIiBDb250ZW50VHlwZT0iYXBwbGljYXRpb24vdm5kLm9wZW54bWxmb3JtYXRzLW9mZmljZWRvY3VtZW50LnRoZW1lK3htbCIvPjxPdmVycmlkZSBQYXJ0TmFtZT0iL3hsL3N0eWxlcy54bWwiIENvbnRlbnRUeXBlPSJhcHBsaWNhdGlvbi92bmQub3BlbnhtbGZvcm1hdHMtb2ZmaWNlZG9jdW1lbnQuc3ByZWFkc2hlZXRtbC5zdHlsZXMreG1sIi8+PE92ZXJyaWRlIFBhcnROYW1lPSIvZG9jUHJvcHMvY29yZS54bWwiIENvbnRlbnRUeXBlPSJhcHBsaWNhdGlvbi92bmQub3BlbnhtbGZvcm1hdHMtcGFja2FnZS5jb3JlLXByb3BlcnRpZXMreG1sIi8+PE92ZXJyaWRlIFBhcnROYW1lPSIvZG9jUHJvcHMvYXBwLnhtbCIgQ29udGVudFR5cGU9ImFwcGxpY2F0aW9uL3ZuZC5vcGVueG1sZm9ybWF0cy1vZmZpY2Vkb2N1bWVudC5leHRlbmRlZC1wcm9wZXJ0aWVzK3htbCIvPjxPdmVycmlkZSBQYXJ0TmFtZT0iL3hsL21ldGFkYXRhLnhtbCIgQ29udGVudFR5cGU9ImFwcGxpY2F0aW9uL3ZuZC5vcGVueG1sZm9ybWF0cy1vZmZpY2Vkb2N1bWVudC5zcHJlYWRzaGVldG1sLnNoZWV0TWV0YWRhdGEreG1sIi8+PC9UeXBlcz5QSwECAAAUAAAAAAAAAAAApAGEuLUCAAC1AgAAGgAAAAAAAAAAAAAAAAAAAAAAeGwvX3JlbHMvd29ya2Jvb2sueG1sLnJlbHNQSwECAAAUAAAAAAAAAAAAMA+Ia94dAADeHQAAEwAAAAAAAAAAAAAAAADtAgAAeGwvdGhlbWUvdGhlbWUxLnhtbFBLAQIAABQAAAAAAAAAAABV9ASUWgQAAFoEAAANAAAAAAAAAAAAAAAAAPwgAAB4bC9zdHlsZXMueG1sUEsBAgAAFAAAAAAAAAAAAGN1Q7lFEAAARRAAABgAAAAAAAAAAAAAAAAAgSUAAHhsL3dvcmtzaGVldHMvc2hlZXQxLnhtbFBLAQIAABQAAAAAAAAAAABggACBiAMAAIgDAAAPAAAAAAAAAAAAAAAAAPw1AAB4bC9tZXRhZGF0YS54bWxQSwECAAAUAAAAAAAAAAAAgMdErFoBAABaAQAADwAAAAAAAAAAAAAAAACxOQAAeGwvd29ya2Jvb2sueG1sUEsBAgAAFAAAAAAAAAAAAEpqEflMAgAATAIAAAsAAAAAAAAAAAAAAAAAODsAAF9yZWxzLy5yZWxzUEsBAgAAFAAAAAAAAAAAAAxHKEBKAgAASgIAABAAAAAAAAAAAAAAAAAArT0AAGRvY1Byb3BzL2FwcC54bWxQSwECAAAUAAAAAAAAAAAA1pJ8EVoBAABaAQAAEQAAAAAAAAAAAAAAAAAlQAAAZG9jUHJvcHMvY29yZS54bWxQSwECAAAUAAAAAAAAAAAAqNdqgBUIAAAVCAAAEwAAAAAAAAAAAAAAAACuQQAAW0NvbnRlbnRfVHlwZXNdLnhtbFBLBQYAAAAACgAKAHsCAAD0SQAAAAA=\"\n                        }\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"296b1d89-1464-4450-9834-dcf3fe6f892a"}],"id":"995b8a97-0b2b-4ae8-a8da-ac8b0baf2823","description":"<p>This section contains functionalities accessable to all users with and without administrator privileges.</p>\n","_postman_id":"995b8a97-0b2b-4ae8-a8da-ac8b0baf2823","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}}],"id":"8dc6620a-fd76-4e54-aa95-24bfcffc0da7","description":"<p>This section provides all the necessary information for integrating Hypercare's scheduling, role, and shift management features into your applications.</p>\n<p>Each department within the organization can maintain one published schedule and one draft schedule at any given time. This structure allows departments to plan and review schedules before making them public.</p>\n<p>Client queries are restricted to viewing only the published schedules, ensuring that draft schedules remain confidential and only accessible to authorized personnel. Admin queries, on the other hand, have the capability to view both published and draft schedules, allowing administrators to manage and finalize schedules effectively.</p>\n<p>Each schedule includes roles that are identified by unique role IDs. These roles are linked to subsequent schedules through a role audit ID, ensuring consistency and traceability across different scheduling periods. When a role is updated, the changes are applied to all future roles linked by the same audit ID, maintaining uniformity across the schedule.</p>\n<p>If a role is deleted, all shifts assigned to that role will also be deleted. This ensures that the schedule remains accurate and that no orphaned shifts are left behind.</p>\n","_postman_id":"8dc6620a-fd76-4e54-aa95-24bfcffc0da7","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Search","item":[{"name":"Search Chat by Name","id":"ed7fae66-ef1b-49f8-8734-2a00bd5debf9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query search($text: String!, $continuationId: ID, $limit: Int, $direction: PaginationDirection) {\n    searchQuery(text: $text) {\n        searchChatTitles(continuationId: $continuationId, limit: $limit, direction: $direction) {\n            continuationId\n            totalResultsCount\n            chats {\n                chat {\n                    id\n                    title\n                    type\n                    image {\n                        id\n                        url\n                    }\n                    members {\n                        id\n                        username\n                        firstName\n                        lastName\n                    }\n                }\n                matchedSequences\n            }\n        }\n    }\n}","variables":"{\n\t\"text\": \"test\"\n}\n"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"search-chat-by-name\">Search Chat by Name</h2>\n<p>GraphQL query for retrieving a list of chats where their name match the inputted text. This will only return group chats with custom names (see search chat by members for chat member lookup).</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>text</code> (String): The search string. Minimum 2 characters, non-case-sensitive, and will filter out common stop words such as \"and\", \"the\", \"this\", etc. If multiple search words are passed in, each word, separated by space, is tokenized. Any symbols pre, or post-pending space separated tokens are sanitized.</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An array of chat objects. The <code>matchedSequences</code> indicates which words from the input text were matched.</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>EmptySearchQuery</code> : Search text is either empty, or contains only non-valid words</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"2b3514ac-a7cf-4043-b86d-af1dea2babd7","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query search($text: String!, $continuationId: ID, $limit: Int, $direction: PaginationDirection) {\n    searchQuery(text: $text) {\n        searchChatTitles(continuationId: $continuationId, limit: $limit, direction: $direction) {\n            continuationId\n            totalResultsCount\n            chats {\n                chat {\n                    id\n                    title\n                    type\n                    image {\n                        id\n                        url\n                    }\n                }\n                matchedSequences\n            }\n        }\n    }\n}","variables":"{\n\t\"text\": \"test hey\"\n}\n"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1320"},{"key":"Date","value":"Wed, 27 Jul 2022 15:31:15 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"searchQuery\": {\n            \"searchChatTitles\": {\n                \"continuationId\": \"df5701d7-847b-4f11-b757-11e4af82db19\",\n                \"totalResultsCount\": 3,\n                \"chats\": [\n                    {\n                        \"chat\": {\n                            \"id\": \"19f0dc63-9433-4aee-89b4-2992befe17e4\",\n                            \"title\": \"test hey heeeeeyyyyy\",\n                            \"type\": \"group\",\n                            \"image\": null\n                        },\n                        \"matchedSequences\": [\n                            \"test\",\n                            \"hey\"\n                        ]\n                    },\n                    {\n                        \"chat\": {\n                            \"id\": \"57bdc59c-bb65-41bd-8951-40d824848f93\",\n                            \"title\": \"test hey\",\n                            \"type\": \"group\",\n                            \"image\": {\n                                \"id\": \"11576\",\n                                \"url\": \"https://hc-api-staging-images.s3.ca-central-1.amazonaws.com/20bfe8b5-62a4-4af8-9df7-6c7c5950d1c8/ba6f6b91-57f9-4961-9718-79599e9e6bd8.png\"\n                            }\n                        },\n                        \"matchedSequences\": [\n                            \"test\",\n                            \"hey\"\n                        ]\n                    },\n                    {\n                        \"chat\": {\n                            \"id\": \"df5701d7-847b-4f11-b757-11e4af82db19\",\n                            \"title\": \"test\",\n                            \"type\": \"group\",\n                            \"image\": null\n                        },\n                        \"matchedSequences\": [\n                            \"test\"\n                        ]\n                    }\n                ]\n            }\n        }\n    }\n}"},{"id":"8cbb398f-4c7f-4a68-9f86-2cb72b088c66","name":"Success - no results","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query search($text: String!) {\n    searchQuery(text: $text) {\n        searchChatTitles {\n            chats {\n                chat {\n                    id\n                }\n                matchedSequences\n            }\n        }\n    }\n}","variables":"{\n\t\"text\": \"test\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"102"},{"key":"Date","value":"Wed, 27 Apr 2022 19:59:31 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"searchQuery\": {\n            \"searchChatTitles\": {\n                \"chats\": []\n            }\n        }\n    }\n}"},{"id":"7aef86b9-f714-4142-96bd-6098b8cd3ae7","name":"EmptySearchQuery Error","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query search($text: String!, $continuationId: ID, $limit: Int, $direction: PaginationDirection) {\n    searchQuery(text: $text) {\n        searchChatTitles(continuationId: $continuationId, limit: $limit, direction: $direction) {\n            continuationId\n            totalResultsCount\n            chats {\n                chat {\n                    id\n                    title\n                    type\n                    image {\n                        id\n                        url\n                    }\n                }\n                matchedSequences\n            }\n        }\n    }\n}","variables":"{\n\t\"text\": \"t\"\n}\n"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 28 Sep 2022 14:33:25 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"187"},{"key":"Connection","value":"keep-alive"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"x-moesif-transaction-id","value":"e00d5590-3e22-457e-a401-ed8f78d2b5d9"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"No non-stop words entered\",\n            \"name\": \"EmptySearchQuery\",\n            \"code\": \"EmptySearchQuery\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": null\n}"}],"_postman_id":"ed7fae66-ef1b-49f8-8734-2a00bd5debf9"},{"name":"Search Chat by Members","id":"f7ddd857-fdfd-4582-b254-90d5c0f579b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query search($text: String!, $continuationId: ID, $limit: Int, $direction: PaginationDirection) {\n    searchQuery(text: $text) {\n        searchChatMembers(continuationId: $continuationId, limit: $limit, direction: $direction) {\n            continuationId\n            totalResultsCount\n            chats {\n                chat {\n                    id\n                    members {\n                        id\n                        role\n                        firstName\n                        lastName\n                    }\n                    createdAt\n                }\n                matchedSequences\n            }\n        }\n    }\n}","variables":"{\n\t\"text\": \"name\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"search-chat-by-members\">Search Chat by Members</h2>\n<p>GraphQL query for retrieving a list of chats where the inputted text matches the name, or job title of some members who are a part of that chat. This will only return group chats and personal chats.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>text</code> (String): The search string. Minimum 2 characters, non-case-sensitive, and will filter out common stop words such as \"and\", \"the\", \"this\", etc. If multiple search words are passed in, each word, separated by space, is tokenized. Any symbols pre, or post-pending space separated tokens are sanitized.</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An array of chat objects, including all members of that chat. The <code>matchedSequences</code> indicates which words from the input text were matched.</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>EmptySearchQuery</code> : Search text is either empty, or contains only non-valid words</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"32c41d4c-6bcb-404a-83ed-b6b4bff8106b","name":"Success - no results","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query search($text: String!) {\n    searchQuery(text: $text) {\n        searchChatTitles {\n            chats {\n                chat {\n                    id\n                }\n                matchedSequences\n            }\n        }\n    }\n}","variables":"{\n\t\"text\": \"test\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"102"},{"key":"Date","value":"Wed, 27 Apr 2022 19:59:31 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"searchQuery\": {\n            \"searchChatTitles\": {\n                \"chats\": []\n            }\n        }\n    }\n}"},{"id":"f07f2d3e-eee6-4808-87d5-1f25befc0f5a","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query search($text: String!, $continuationId: ID, $limit: Int, $direction: PaginationDirection) {\n    searchQuery(text: $text) {\n        searchChatMembers(continuationId: $continuationId, limit: $limit, direction: $direction) {\n            continuationId\n            totalResultsCount\n            chats {\n                chat {\n                    id\n                    members {\n                        id\n                        role\n                        firstname\n                        lastname\n                    }\n                    createdAt\n                }\n                matchedSequences\n            }\n        }\n    }\n}","variables":"{\n\t\"text\": \"test rob\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3140"},{"key":"Date","value":"Wed, 27 Jul 2022 15:30:53 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"searchQuery\": {\n            \"searchChatMembers\": {\n                \"continuationId\": \"df5701d7-847b-4f11-b757-11e4af82db19\",\n                \"totalResultsCount\": 3,\n                \"chats\": [\n                    {\n                        \"chat\": {\n                            \"id\": \"19f0dc63-9433-4aee-89b4-2992befe17e4\",\n                            \"members\": [\n                                {\n                                    \"id\": \"0c22426b-973b-46f4-8e3b-8d3808db4f8d\",\n                                    \"role\": \"Another\",\n                                    \"firstname\": \"Robin\",\n                                    \"lastname\": \"Hood\"\n                                },\n                                {\n                                    \"id\": \"0dc251fd-8a4a-4719-a5e6-734c2c1bf1c1\",\n                                    \"role\": \"Test\",\n                                    \"firstname\": \"Rob\",\n                                    \"lastname\": \"####\"\n                                },\n                                {\n                                    \"id\": \"c4379f5d-a67c-4e58-9e5c-f96b45da31c7\",\n                                    \"role\": null,\n                                    \"firstname\": \"Sam\",\n                                    \"lastname\": \"Smith\"\n                                }\n                            ],\n                            \"createdAt\": \"2022-07-05T16:20:46.792Z\"\n                        },\n                        \"matchedSequences\": [\n                            \"test\",\n                            \"rob\"\n                        ]\n                    },\n                    {\n                        \"chat\": {\n                            \"id\": \"df5701d7-847b-4f11-b757-11e4af82db19\",\n                            \"members\": [\n                                {\n                                    \"id\": \"4d3d92e7-d7f1-455d-beff-f3c685bbfbc5\",\n                                    \"role\": \"Role\",\n                                    \"firstname\": \"User\",\n                                    \"lastname\": \"Name\"\n                                },\n                                {\n                                    \"id\": \"9cc94e9f-eb57-4d1e-99a3-12b75631bf58\",\n                                    \"role\": \"Akkiakkutaditgtfvfdyhhgfgvvvdsfhesfghytghjk gggggjjjfghkjrgni\",\n                                    \"firstname\": \"test\",\n                                    \"lastname\": \"test\"\n                                },\n                                {\n                                    \"id\": \"c4379f5d-a67c-4e58-9e5c-f96b45da31c7\",\n                                    \"role\": null,\n                                    \"firstname\": \"Sam\",\n                                    \"lastname\": \"Smith\"\n                                }\n                            ],\n                            \"createdAt\": \"2022-06-10T18:20:25.118Z\"\n                        },\n                        \"matchedSequences\": [\n                            \"test\"\n                        ]\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"f7ddd857-fdfd-4582-b254-90d5c0f579b2"},{"name":"Search Messages","id":"b3f82b6f-319d-4a6d-8147-b919ecea4e9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query search($text: String!, $messageContinuationId: Int, $chatContinuationId: ID, $chatLimit: Int, $messageLimit: Int,$direction: PaginationDirection) {\n    searchQuery(text: $text) {\n        searchChats(continuationId: $chatContinuationId, limit: $chatLimit, direction: $direction) {\n            continuationId\n            totalResultsCount\n            chats {\n                chat {\n                    ...ChatFragment\n                }\n                searchMessages(continuationId: $messageContinuationId, limit: $messageLimit, direction: $direction) {\n                    continuationId\n                    totalResultsCount\n                    messages {\n                        message {\n                            ...MessageFragment\n                            readBy {\n                                user {\n                                    ...OrganizationUserResultFragment\n                                }\n                                message {\n                                    ...MessageFragment\n                                }\n                                timestamp\n                            }\n                            deliveredTo {\n                                user {\n                                    ...OrganizationUserResultFragment\n                                }\n                                message {\n                                    ...MessageFragment\n                                }\n                                timestamp\n                            }\n                        }\n                        matchedSequences\n                    }\n                }\n            }\n        }\n    }\n}\n\nfragment NodeFragment on Node {\n    id\n}\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n    role\n}\n\nfragment GeneralUserFragment on GeneralUser {\n    username\n    firstName\n    lastName\n}\n\nfragment PublicUserFragment on PublicUser {\n    ... on Node {\n        ...NodeFragment\n    }\n    ... on GeneralUser {\n        ...GeneralUserFragment\n    }\n}\n\nfragment OrganizationUserResultFragment on OrganizationUserResult {\n    ... on OrganizationMember {\n        ...OrganizationMemberFragment\n    }\n    ... on PublicUser {\n        ...PublicUserFragment\n    }\n}\n\nfragment MessageFragment on Message {\n    id\n    message\n    sender {\n        ...OrganizationUserResultFragment\n    }\n    dateCreated\n}\n\nfragment ChatFragment on Chat {\n    id\n    title\n}","variables":"{\n\t\"text\": \"test\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"search-messages-across-all-chats\">Search Messages Across All Chats</h2>\n<p>GraphQL query for retrieving a list of chats where a certain search text appears in. (See Search Messages in Chat for lookup within a specific chat - <strong>recommended</strong>).</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><code>text</code> (String): The search string. Minimum 2 characters, non-case-sensitive, and will filter out common stop words such as \"and\", \"the\", \"this\", etc. If multiple search words are passed in, each word, separated by space, is tokenized. Any symbols pre, or post-pending space separated tokens are sanitized.</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An array of chat objects with the matching messages. The <code>matchedSequences</code> indicates which words from the input text were matched.</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>EmptySearchQuery</code> : Search text is either empty, or contains only non-valid words</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"f2cf872a-f008-4652-8403-a388cc921ed5","name":"Success - no results","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query search($text: String!, $continuationId: Int, $limit: Int, $direction: PaginationDirection) {\n    searchQuery(text: $text) {\n        searchMessages(continuationId: $continuationId, limit: $limit, direction: $direction) {\n            chats {\n                chat {\n                    id\n                }\n                matchedSequences\n                searchMessages(continuationId: $continuationId, limit: $limit, direction: $direction) {\n                    messages {\n                        message {\n                            id\n                        }\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"text\": \"this is a default test\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"100"},{"key":"Date","value":"Wed, 04 May 2022 18:38:56 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"searchQuery\": {\n            \"searchMessages\": {\n                \"chats\": []\n            }\n        }\n    }\n}"},{"id":"c6f66b74-60c4-49ef-95ed-61c5e30bf5cb","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query search($text: String!, $messageContinuationId: Int, $chatContinuationId: ID, $chatLimit: Int, $messageLimit: Int,$direction: PaginationDirection) {\n    searchQuery(text: $text) {\n        searchChats(continuationId: $chatContinuationId, limit: $chatLimit, direction: $direction) {\n            continuationId\n            totalResultsCount\n            chats {\n                chat {\n                    id\n                    title\n                }\n                searchMessages(continuationId: $messageContinuationId, limit: $messageLimit, direction: $direction) {\n                    continuationId\n                    totalResultsCount\n                    messages {\n                        message {\n                            id\n                        }\n                        matchedSequences\n                    }\n                }\n            }\n        }\n    }\n}","variables":"{\n\t\"text\": \"test hey\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"4790"},{"key":"Date","value":"Wed, 27 Jul 2022 15:30:11 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"searchQuery\": {\n            \"searchChats\": {\n                \"continuationId\": \"fc997bda-4487-4185-a2d2-04213ce3d751\",\n                \"totalResultsCount\": 5,\n                \"chats\": [\n                    {\n                        \"chat\": {\n                            \"id\": \"19f0dc63-9433-4aee-89b4-2992befe17e4\",\n                            \"title\": \"test hey heeeeeyyyyy\"\n                        },\n                        \"searchMessages\": {\n                            \"continuationId\": 210562,\n                            \"totalResultsCount\": 2,\n                            \"messages\": [\n                                {\n                                    \"message\": {\n                                        \"id\": 210563\n                                    },\n                                    \"matchedSequences\": [\n                                        \"test\",\n                                        \"hey\"\n                                    ]\n                                },\n                                {\n                                    \"message\": {\n                                        \"id\": 210562\n                                    },\n                                    \"matchedSequences\": [\n                                        \"hey\"\n                                    ]\n                                }\n                            ]\n                        }\n                    },\n                    {\n                        \"chat\": {\n                            \"id\": \"b82addf9-b5f7-47ca-970b-c7ac05ddf093\",\n                            \"title\": \"hey test\"\n                        },\n                        \"searchMessages\": {\n                            \"continuationId\": 210551,\n                            \"totalResultsCount\": 8,\n                            \"messages\": [\n                                {\n                                    \"message\": {\n                                        \"id\": 210557\n                                    },\n                                    \"matchedSequences\": [\n                                        \"test\"\n                                    ]\n                                },\n                                {\n                                    \"message\": {\n                                        \"id\": 210554\n                                    },\n                                    \"matchedSequences\": [\n                                        \"test\"\n                                    ]\n                                },\n                                {\n                                    \"message\": {\n                                        \"id\": 210550\n                                    },\n                                    \"matchedSequences\": [\n                                        \"test\",\n                                        \"hey\"\n                                    ]\n                                },\n                                {\n                                    \"message\": {\n                                        \"id\": 210556\n                                    },\n                                    \"matchedSequences\": [\n                                        \"hey\"\n                                    ]\n                                },\n                                {\n                                    \"message\": {\n                                        \"id\": 210555\n                                    },\n                                    \"matchedSequences\": [\n                                        \"hey\"\n                                    ]\n                                },\n                                {\n                                    \"message\": {\n                                        \"id\": 210553\n                                    },\n                                    \"matchedSequences\": [\n                                        \"hey\"\n                                    ]\n                                },\n                                {\n                                    \"message\": {\n                                        \"id\": 210552\n                                    },\n                                    \"matchedSequences\": [\n                                        \"hey\"\n                                    ]\n                                },\n                                {\n                                    \"message\": {\n                                        \"id\": 210551\n                                    },\n                                    \"matchedSequences\": [\n                                        \"hey\"\n                                    ]\n                                }\n                            ]\n                        }\n                    },\n                    {\n                        \"chat\": {\n                            \"id\": \"57bdc59c-bb65-41bd-8951-40d824848f93\",\n                            \"title\": \"test hey\"\n                        },\n                        \"searchMessages\": {\n                            \"continuationId\": 210560,\n                            \"totalResultsCount\": 2,\n                            \"messages\": [\n                                {\n                                    \"message\": {\n                                        \"id\": 210561\n                                    },\n                                    \"matchedSequences\": [\n                                        \"hey\"\n                                    ]\n                                },\n                                {\n                                    \"message\": {\n                                        \"id\": 210560\n                                    },\n                                    \"matchedSequences\": [\n                                        \"hey\"\n                                    ]\n                                }\n                            ]\n                        }\n                    },\n                    {\n                        \"chat\": {\n                            \"id\": \"0b2266d7-12fe-4534-91d3-4be334dc3d98\",\n                            \"title\": \"test\"\n                        },\n                        \"searchMessages\": {\n                            \"continuationId\": 210558,\n                            \"totalResultsCount\": 1,\n                            \"messages\": [\n                                {\n                                    \"message\": {\n                                        \"id\": 210558\n                                    },\n                                    \"matchedSequences\": [\n                                        \"hey\"\n                                    ]\n                                }\n                            ]\n                        }\n                    },\n                    {\n                        \"chat\": {\n                            \"id\": \"fc997bda-4487-4185-a2d2-04213ce3d751\",\n                            \"title\": null\n                        },\n                        \"searchMessages\": {\n                            \"continuationId\": 209968,\n                            \"totalResultsCount\": 1,\n                            \"messages\": [\n                                {\n                                    \"message\": {\n                                        \"id\": 209968\n                                    },\n                                    \"matchedSequences\": [\n                                        \"hey\"\n                                    ]\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"b3f82b6f-319d-4a6d-8147-b919ecea4e9f"},{"name":"Search Messages in Chat","id":"95f7bb3e-16cb-4130-92ad-44a487e78f02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query search($text: String!, $chatId: ID!, $continuationId: Int, $limit: Int, $direction: PaginationDirection) {\n    searchQuery(text: $text) {\n        searchMessagesInChat (chatId: $chatId, continuationId: $continuationId, limit: $limit, direction: $direction) {\n            continuationId\n            totalResultsCount\n            messages {\n                message {\n                    id\n                    uniqueId\n                    message\n                    dateCreated\n                    image\n                    sender {\n                        ... on Node { id }\n                        ... on GeneralUser { username firstName lastName }\n                        ... on OrganizationMember { role }\n                    }\n                    readBy {\n                        user {\n                            ... on Node { id }\n                            ... on GeneralUser { username firstName lastName }\n                            ... on OrganizationMember { role }\n                        }\n                        message {\n                            id\n                        }\n                        timestamp\n                    }\n                }\n                matchedSequences\n            }\n        }\n    }\n}","variables":"{\n\t\"text\": \"header\",\n    \"chatId\": {{chatId}}\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"search-messages-in-chats\">Search Messages in Chats</h2>\n<p>GraphQL query for retrieving messages that match the search text within a given chat.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>text</code> (String): The search string. Minimum 2 characters, non-case-sensitive, and will filter out common stop words such as \"and\", \"the\", \"this\", etc. If multiple search words are passed in, each word, separated by space, is tokenized. Any symbols pre, or post-pending space separated tokens are sanitized.</p>\n</li>\n<li><p><code>chatId</code> (String): ID of the chat</p>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An array of matching message objects. The <code>matchedSequences</code> indicates which words from the input text were matched.</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>EmptySearchQuery</code> : Search text is either empty, or contains only non-valid words</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"abae1edb-37b5-4568-8932-982c136d686b","name":"Success - no results","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query search($text: String!) {\n    searchQuery(text: $text) {\n        searchMessagesInChat {\n            messages {\n                message {\n                    id\n                }\n                matchedSequences\n            }\n        }\n    }\n}","variables":"{\n\t\"text\": \"test\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"109"},{"key":"Date","value":"Wed, 27 Apr 2022 20:11:05 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"searchQuery\": {\n            \"searchMessagesInChat\": {\n                \"messages\": []\n            }\n        }\n    }\n}"},{"id":"7bd4833f-5318-4fa3-9ab9-3bfedb2595d4","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query search($text: String!, $chatId: ID!, $continuationId: Int, $limit: Int, $direction: PaginationDirection) {\n    searchQuery(text: $text) {\n        searchMessagesInChat (chatId: $chatId, continuationId: $continuationId, limit: $limit, direction: $direction) {\n            continuationId\n            totalResultsCount\n            messages {\n                message {\n                    id\n                    message\n                    dateCreated\n                    image\n                }\n                matchedSequences\n            }\n        }\n    }\n}","variables":"{\n\t\"text\": \"test\",\n    \"chatId\": \"b82addf9-b5f7-47ca-970b-c7ac05ddf093\"\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1047"},{"key":"Date","value":"Wed, 27 Jul 2022 15:28:51 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"searchQuery\": {\n            \"searchMessagesInChat\": {\n                \"continuationId\": 210550,\n                \"totalResultsCount\": 3,\n                \"messages\": [\n                    {\n                        \"message\": {\n                            \"id\": 210557,\n                            \"message\": \"test\",\n                            \"dateCreated\": \"2022-06-01T16:45:20.628Z\",\n                            \"image\": null\n                        },\n                        \"matchedSequences\": [\n                            \"test\"\n                        ]\n                    },\n                    {\n                        \"message\": {\n                            \"id\": 210554,\n                            \"message\": \"this is another test\",\n                            \"dateCreated\": \"2022-04-11T18:55:11.481Z\",\n                            \"image\": null\n                        },\n                        \"matchedSequences\": [\n                            \"test\"\n                        ]\n                    },\n                    {\n                        \"message\": {\n                            \"id\": 210550,\n                            \"message\": \"hey this is a test\",\n                            \"dateCreated\": \"2022-04-08T13:32:22.060Z\",\n                            \"image\": null\n                        },\n                        \"matchedSequences\": [\n                            \"test\"\n                        ]\n                    }\n                ]\n            }\n        }\n    }\n}"}],"_postman_id":"95f7bb3e-16cb-4130-92ad-44a487e78f02"},{"name":"Search Paginated Users","id":"db82beb7-4c4a-44bc-ae29-c585933eb7d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $filters: PaginatedMembersFilter, $pageInfo: CursorPageInput) {\n    organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n\n      ... on Organization {\n        members(filters: $filters, pageInfo: $pageInfo) {\n            __typename\n          ...PaginatedMembersFragment\n        }\n      }\n    }\n  }\n}\n\nfragment PaginatedMembersFragment on PaginatedMembersResponse {\n    pageInfo {\n        hasNextPage\n        nextCursor\n        startCursor\n        endCursor\n        totalResults\n        resultsCount\n    }\n    users {\n      ...OrganizationMemberFragment\n    }\n}\n\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    id\n    firstName\n    lastName\n    avatar {\n        id\n        url\n    }\n}\n","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"pageInfo\": {\n        \"pageSize\": 5,\n        \"cursor\": null\n    },\n    \"filters\": {\n        \"searchQuery\": \"test\",\n        \"memberStatus\": [\"active\"]\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"search-paginated-users\">Search Paginated Users</h2>\n<p>GraphQL query for retrieving a paginated list of users for an organization. It supports filtering by member status, multiple organizational scopes, and search string, and it uses cursor-based pagination.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>organizationalUnit</code> (Object)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n<li><p><code>filters</code> (Object): An object containing the following optional filters</p>\n<ul>\n<li><p><code>memberStatus</code>([String], optional): The statuses of the users you wish to retreve (e.g. \"active\", \"inactive\", \"blocked\", \"archived\")</p>\n</li>\n<li><p><code>organizationaUnits</code> ([String], optional): The scope which the users being retrived are in</p>\n</li>\n<li><p><code>searchQuery</code> (String, optional): Search terms</p>\n</li>\n</ul>\n</li>\n<li><p><code>pageInfo</code>(Object): An object containing pagination information:</p>\n<ul>\n<li><p><code>cursor</code>(String, optional): The cursor for the current page</p>\n</li>\n<li><p><code>pageSize</code> (Int, optional): The number of results per page</p>\n</li>\n<li><p><code>direction</code>(String, optional): The direction of pagination (e.g., \"next\" or \"previous\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the paginated list of users</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"c0e6b912-d80e-4c96-a4e5-2ebb1f949db9","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query FetchUserProfile($organizationalUnit: OrganizationalUnitInput!, $filters: PaginatedMembersFilter, $pageInfo: CursorPageInput) {\n    organizationalUnitQuery {\n    organizationalUnit(organizationalUnit: $organizationalUnit) {\n      __typename\n      ... on Error {\n          __typename\n          message\n      }\n\n      ... on Organization {\n        members(filters: $filters, pageInfo: $pageInfo) {\n            __typename\n          ...PaginatedMembersFragment\n        }\n      }\n    }\n  }\n}\n\nfragment PaginatedMembersFragment on PaginatedMembersResponse {\n    pageInfo {\n        hasNextPage\n        nextCursor\n        startCursor\n        endCursor\n        totalResults\n        resultsCount\n    }\n    users {\n      ...OrganizationMemberFragment\n    }\n}\n\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    id\n    firstName\n    lastName\n    avatar {\n        id\n        url\n    }\n}\n","variables":"{\n    \"organizationalUnit\": {\n        \"id\": {{organizationId}},\n        \"type\": \"organization\"\n    },\n    \"pageInfo\": {\n        \"pageSize\": 5,\n        \"cursor\": null\n    },\n    \"filters\": {\n        \"searchQuery\": \"test\",\n        \"memberStatus\": [\"active\"]\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 15 Jan 2025 19:10:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1582"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"883923fe-8003-4b2f-8721-3448eabb069a"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"organizationalUnitQuery\": {\n            \"organizationalUnit\": {\n                \"__typename\": \"Organization\",\n                \"members\": {\n                    \"__typename\": \"PaginatedMembersResponse\",\n                    \"pageInfo\": {\n                        \"hasNextPage\": true,\n                        \"nextCursor\": \"QVNUZXN0ZXIsQWJoaXNoZWtUZXN0ZXIxNCxUZXN0ZXIsNDIxNmM1MzMtNzQ3MS00YzM1LThhZWQtNjU0OTI5ZjgzNjhi\",\n                        \"startCursor\": null,\n                        \"endCursor\": null,\n                        \"totalResults\": 88,\n                        \"resultsCount\": 5\n                    },\n                    \"users\": [\n                        {\n                            \"id\": \"645dde01-a04e-4057-8174-2d4503ef7fcf\",\n                            \"firstName\": \"Tester10\",\n                            \"lastName\": \"ASTester\",\n                            \"avatar\": null\n                        },\n                        {\n                            \"id\": \"ad631d2f-fa31-432f-b488-d5dfb48d113e\",\n                            \"firstName\": \"Tester1\",\n                            \"lastName\": \"ASTester\",\n                            \"avatar\": null\n                        },\n                        {\n                            \"id\": \"12661335-7491-4d2e-abb6-c24eeec08747\",\n                            \"firstName\": \"Tester12\",\n                            \"lastName\": \"ASTester\",\n                            \"avatar\": null\n                        },\n                        {\n                            \"id\": \"3f8d8d9e-cd8b-4444-83b8-b75275dfdc60\",\n                            \"firstName\": \"Tester13\",\n                            \"lastName\": \"ASTester\",\n                            \"avatar\": null\n                        },\n                        {\n                            \"id\": \"4216c533-7471-4c35-8aed-654929f8368b\",\n                            \"firstName\": \"Tester14\",\n                            \"lastName\": \"ASTester\",\n                            \"avatar\": null\n                        }\n                    ]\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"db82beb7-4c4a-44bc-ae29-c585933eb7d2"},{"name":"Search Users In Scopes","id":"87f6dc22-603c-4151-9e70-3b22dcde1078","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query SearchUsersInScopes($text: String!, $filters: SearchUsersOptions, $pageInfo: CursorPageInput) {\n    searchQuery(text: $text) {\n        searchUsersInScopes(filters: $filters, pageInfo: $pageInfo) {\n            ... SearchUsersInScopesResultFragment\n\n        }\n    }\n}\n\nfragment SearchUsersInScopesResultFragment on SearchUsersInScopesResult {\n    ... on InvalidOrganizationScope {\n        __typename\n        message\n    }\n    ... SearchUsersInScopesFragment\n}\n\nfragment SearchUsersInScopesFragment on SearchUsersInScopesResponse {\n    pageInfo {\n        totalResults\n        resultsCount\n        pageSize\n        startCursor\n        nextCursor\n    }\n    users {\n        ... OrganizationMemeberFragment\n    }\n}\n\nfragment OrganizationMemeberFragment on OrganizationMember {\n    id\n    firstName\n    lastName\n    role\n    accountStatus\n    # memberStatus\n    avatar {\n        ...AttachmentFragment\n    }\n                \n}\n\nfragment AttachmentFragment on Attachment {\n    id\n    url\n    mimeType\n    fileName\n}","variables":"{\n    \"text\": \"test\",\n    \"filters\": {\n        \"organizationalUnits\": [\n            {\n                \"id\": 3,\n                \"type\": \"site\"\n            }\n        ]\n    },\n    \"pageInfo\": {\n        \"direction\": \"next\",\n        \"cursor\": null,\n        \"pageSize\": 3\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","description":"<h2 id=\"search-users-in-scopes\">Search Users in Scopes</h2>\n<p>GraphQL query for retrieving an array of users who's name or job title matches the search text within a given scope.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>text</code> (String): The search string. Minimum 2 characters, non-case-sensitive, and will filter out common stop words such as \"and\", \"the\", \"this\", etc. If multiple search words are passed in, each word, separated by space, is tokenized. Any symbols pre, or post-pending space separated tokens are sanitized.</p>\n</li>\n<li><p><code>filters</code> (Object)</p>\n<ul>\n<li><p><code>organizationalUnit</code> (Object, optional)</p>\n<ul>\n<li><p><code>id</code> (String): The ID of the organizational unit in context</p>\n</li>\n<li><p><code>type</code> (String): Organization unit type (e.g. \"organization\", \"site\", \"department\")</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><code>pageInfo</code>(Object): An object containing pagination information:</p>\n<ul>\n<li><p><code>cursor</code>(String, optional): The cursor for the current page</p>\n</li>\n<li><p><code>pageSize</code> (Int, optional): The number of results per page</p>\n</li>\n<li><p><code>direction</code>(String, optional): The direction of pagination (e.g., \"next\" or \"previous\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An array of matching user objects</li>\n</ul>\n<h3 id=\"possible-errors\">Possible Errors</h3>\n<ul>\n<li><p><code>EmptySearchQuery</code> : Search text is either empty, or contains only non-valid words</p>\n</li>\n<li><p><code>OrganizationalUnitNotFoundError</code>: The organization ID provided does not correspond to an existing organization</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"0d4c0c61-8e0a-473a-b2d6-3631f5d84b6c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query SearchUsersInScopes($text: String!, $filters: SearchUsersOptions, $pageInfo: CursorPageInput) {\n    searchQuery(text: $text) {\n        searchUsersInScopes(filters: $filters, pageInfo: $pageInfo) {\n            ... SearchUsersInScopesResultFragment\n\n        }\n    }\n}\n\nfragment SearchUsersInScopesResultFragment on SearchUsersInScopesResult {\n    ... on InvalidOrganizationScope {\n        __typename\n        message\n    }\n    ... SearchUsersInScopesFragment\n}\n\nfragment SearchUsersInScopesFragment on SearchUsersInScopesResponse {\n    pageInfo {\n        totalResults\n        resultsCount\n        pageSize\n        startCursor\n        nextCursor\n    }\n    users {\n        ... OrganizationMemeberFragment\n    }\n}\n\nfragment OrganizationMemeberFragment on OrganizationMember {\n    id\n    firstName\n    lastName\n    role\n    accountStatus\n    # memberStatus\n    avatar {\n        ...AttachmentFragment\n    }\n                \n}\n\nfragment AttachmentFragment on Attachment {\n    id\n    url\n    mimeType\n    fileName\n}","variables":"{\n    \"text\": \"test\",\n    \"filters\": {\n        \"organizationalUnits\": [\n            {\n                \"id\": 3,\n                \"type\": \"site\"\n            }\n        ]\n    },\n    \"pageInfo\": {\n        \"direction\": \"next\",\n        \"cursor\": null,\n        \"pageSize\": 3\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 15 Jan 2025 19:02:21 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1046"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"90dacf25-6c36-4f30-828d-2fd2a07f61a7"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"searchQuery\": {\n            \"searchUsersInScopes\": {\n                \"pageInfo\": {\n                    \"totalResults\": 6,\n                    \"resultsCount\": 3,\n                    \"pageSize\": 3,\n                    \"startCursor\": null,\n                    \"nextCursor\": \"00830d17-ac94-44e9-ac84-c23849368dc3\"\n                },\n                \"users\": [\n                    {\n                        \"id\": \"66dc91d7-9aa9-44e1-a547-649f8bbf6343\",\n                        \"firstName\": \"Kyle\",\n                        \"lastName\": \"Green\",\n                        \"role\": \"Tester\",\n                        \"accountStatus\": \"active\",\n                        \"avatar\": null\n                    },\n                    {\n                        \"id\": \"49337032-494f-4e90-bd56-5b3e6c56cf59\",\n                        \"firstName\": \"User01\",\n                        \"lastName\": \"Test\",\n                        \"role\": \"\",\n                        \"accountStatus\": \"active\",\n                        \"avatar\": null\n                    },\n                    {\n                        \"id\": \"00830d17-ac94-44e9-ac84-c23849368dc3\",\n                        \"firstName\": \"User02\",\n                        \"lastName\": \"Test\",\n                        \"role\": \"\",\n                        \"accountStatus\": \"active\",\n                        \"avatar\": null\n                    }\n                ]\n            }\n        }\n    }\n}"},{"id":"35a8426a-6282-488f-bdf7-bac0ed4ea26d","name":"Success","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query SearchUsersInScopes($text: String!, $filters: SearchUsersOptions, $pageInfo: CursorPageInput) {\n    searchQuery(text: $text) {\n        searchUsersInScopes(filters: $filters, pageInfo: $pageInfo) {\n            ... SearchUsersInScopesResultFragment\n\n        }\n    }\n}\n\nfragment SearchUsersInScopesResultFragment on SearchUsersInScopesResult {\n    ... on InvalidOrganizationScope {\n        __typename\n        message\n    }\n    ... SearchUsersInScopesFragment\n}\n\nfragment SearchUsersInScopesFragment on SearchUsersInScopesResponse {\n    pageInfo {\n        totalResults\n        resultsCount\n        pageSize\n        startCursor\n        nextCursor\n    }\n    users {\n        ... OrganizationMemeberFragment\n    }\n}\n\nfragment OrganizationMemeberFragment on OrganizationMember {\n    id\n    firstName\n    lastName\n    role\n    accountStatus\n    # memberStatus\n    avatar {\n        ...AttachmentFragment\n    }\n                \n}\n\nfragment AttachmentFragment on Attachment {\n    id\n    url\n    mimeType\n    fileName\n}","variables":"{\n    \"text\": \"test\",\n    \"filters\": {\n        \"organizationalUnits\": [\n            {\n                \"id\": 3,\n                \"type\": \"site\"\n            }\n        ]\n    },\n    \"pageInfo\": {\n        \"direction\": \"next\",\n        \"cursor\": null,\n        \"pageSize\": 10\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 15 Jan 2025 18:51:51 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1804"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"02c38db0-f7b9-47da-ad23-458b10d3856d"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"searchQuery\": {\n            \"searchUsersInScopes\": {\n                \"pageInfo\": {\n                    \"totalResults\": 4,\n                    \"resultsCount\": 4,\n                    \"pageSize\": 10,\n                    \"startCursor\": null,\n                    \"nextCursor\": null\n                },\n                \"users\": [\n                    {\n                        \"id\": \"66dc91d7-9aa9-44e1-a547-649f8bbf6343\",\n                        \"firstName\": \"Kyle\",\n                        \"lastName\": \"Green\",\n                        \"role\": \"Tester\",\n                        \"accountStatus\": \"active\",\n                        \"avatar\": null\n                    },\n                    {\n                        \"id\": \"49337032-494f-4e90-bd56-5b3e6c56cf59\",\n                        \"firstName\": \"User01\",\n                        \"lastName\": \"Test\",\n                        \"role\": \"\",\n                        \"accountStatus\": \"active\",\n                        \"avatar\": null\n                    },\n                    {\n                        \"id\": \"00830d17-ac94-44e9-ac84-c23849368dc3\",\n                        \"firstName\": \"User02\",\n                        \"lastName\": \"Test\",\n                        \"role\": \"\",\n                        \"accountStatus\": \"active\",\n                        \"avatar\": null\n                    },\n                    {\n                        \"id\": \"79c6388e-7a5d-410b-a3f8-2f48dd7689e7\",\n                        \"firstName\": \"testinvite2@gmail.com\",\n                        \"lastName\": \"\",\n                        \"role\": \"\",\n                        \"accountStatus\": \"active\",\n                        \"avatar\": null\n                    }\n                ]\n            }\n        }\n    }\n}"},{"id":"e840c597-0584-47b9-ab9a-a73d93f09f35","name":"EmptySearchQuery","originalRequest":{"method":"POST","header":[{"key":"hypercare-scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query SearchUsersInScopes($text: String!, $filters: SearchUsersOptions, $pageInfo: CursorPageInput) {\n    searchQuery(text: $text) {\n        searchUsersInScopes(filters: $filters, pageInfo: $pageInfo) {\n            ... SearchUsersInScopesResultFragment\n\n        }\n    }\n}\n\nfragment SearchUsersInScopesResultFragment on SearchUsersInScopesResult {\n    ... on InvalidOrganizationScope {\n        __typename\n        message\n    }\n    ... SearchUsersInScopesFragment\n}\n\nfragment SearchUsersInScopesFragment on SearchUsersInScopesResponse {\n    pageInfo {\n        totalResults\n        resultsCount\n        pageSize\n        startCursor\n        nextCursor\n    }\n    users {\n        ... OrganizationMemeberFragment\n    }\n}\n\nfragment OrganizationMemeberFragment on OrganizationMember {\n    id\n    firstName\n    lastName\n    role\n    accountStatus\n    # memberStatus\n    avatar {\n        ...AttachmentFragment\n    }\n                \n}\n\nfragment AttachmentFragment on Attachment {\n    id\n    url\n    mimeType\n    fileName\n}","variables":"{\n    \"text\": \"t\",\n    \"filters\": {\n        \"organizationalUnits\": [\n            {\n                \"id\": 3,\n                \"type\": \"site\"\n            }\n        ]\n    },\n    \"pageInfo\": {\n        \"direction\": \"next\",\n        \"cursor\": null,\n        \"pageSize\": 10\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 15 Jan 2025 19:02:01 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"187"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"afd018e8-5ded-4fac-841c-f51feb7964d5"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"errors\": [\n        {\n            \"message\": \"No non-stop words entered\",\n            \"name\": \"EmptySearchQuery\",\n            \"code\": \"EmptySearchQuery\",\n            \"statusCode\": 400\n        }\n    ],\n    \"data\": null\n}"}],"_postman_id":"87f6dc22-603c-4151-9e70-3b22dcde1078"},{"name":"Search My Sent Invites","id":"db70852a-3e69-4b3f-a024-8b9e6008e0f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query PaginatedSentInvites($filters: InviteFilters, $pageInfo: CursorPageInput) {\n    selfQuery {\n        invites(filters: $filters, pageInfo: $pageInfo) {\n            __typename\n            ... on PaginatedPendingInvitesResponse {\n                invites { ...InviteFragment }\n                pageInfo {\n                    hasNextPage\n                    startCursor\n                    endCursor\n                    totalResults\n                    nextCursor\n                    pageSize\n                    resultsCount\n                }\n            }\n        }\n    }\n}\n\nfragment InviteFragment on UserInvite {\n    id\n    status\n    user { ...OrganizationMemberFragment }\n    invitedBy { ...OrganizationMemberFragment }\n    resolvedBy { ...OrganizationMemberFragment }\n}\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    id\n    firstName\n    lastName\n    role\n    memberStatus\n}","variables":"{\n    \"pageInfo\": {\n        \"pageSize\": 4,\n        \"cursor\": null\n    },\n    \"filters\": {\n        \"searchQuery\": \"test\"\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private","description":"<h2 id=\"search-my-sent-invites\">Search My Sent Invites</h2>\n<p>GraphQL query for retrieving a paginated list of invites I've sent for an organization. It supports filtering by invite status and search query, and it uses cursor-based pagination.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<ul>\n<li><p><code>filters</code> (Object): An object containing the following optional filters</p>\n<ul>\n<li><code>searchQuery</code> (String): Matching invited user's name, job title or email</li>\n</ul>\n</li>\n<li><p><code>pageInfo</code>(Object): An object containing pagination information:</p>\n<ul>\n<li><p><code>cursor</code>(String, optional): The cursor for the current page</p>\n</li>\n<li><p><code>pageSize</code> (Int, optional): The number of results per page</p>\n</li>\n<li><p><code>direction</code>(String, optional): The direction of pagination (e.g., \"next\" or \"previous\")</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"returns\">Returns</h3>\n<ul>\n<li>An object representing the paginated list of invites</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"c2676e00-c511-4ef9-81c0-89f3e940fac9","name":"Search My Sent Invites","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"query PaginatedSentInvites($filters: InviteFilters, $pageInfo: CursorPageInput) {\n    selfQuery {\n        invites(filters: $filters, pageInfo: $pageInfo) {\n            __typename\n            ... on PaginatedPendingInvitesResponse {\n                invites { ...InviteFragment }\n                pageInfo {\n                    hasNextPage\n                    startCursor\n                    endCursor\n                    totalResults\n                    nextCursor\n                    pageSize\n                    resultsCount\n                }\n            }\n        }\n    }\n}\n\nfragment InviteFragment on UserInvite {\n    id\n    status\n    user { ...OrganizationMemberFragment }\n    invitedBy { ...OrganizationMemberFragment }\n    resolvedBy { ...OrganizationMemberFragment }\n}\n\nfragment OrganizationMemberFragment on OrganizationMember {\n    id\n    firstName\n    lastName\n    role\n    memberStatus\n}","variables":"{\n    \"pageInfo\": {\n        \"pageSize\": 4,\n        \"cursor\": null\n    },\n    \"filters\": {\n        \"searchQuery\": \"testinvite4\"\n    }\n}"}},"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 15 Jan 2025 19:16:16 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"387"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-ID","value":"5739eaeb-e419-4f5b-aa25-783fee23d077"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"selfQuery\": {\n            \"invites\": {\n                \"__typename\": \"PaginatedPendingInvitesResponse\",\n                \"invites\": [],\n                \"pageInfo\": {\n                    \"hasNextPage\": false,\n                    \"startCursor\": null,\n                    \"endCursor\": null,\n                    \"totalResults\": 0,\n                    \"nextCursor\": null,\n                    \"pageSize\": 4,\n                    \"resultsCount\": 0\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"db70852a-3e69-4b3f-a024-8b9e6008e0f4"}],"id":"6b0aeaf3-7dd5-47d2-aed4-df4417f9ba8a","_postman_id":"6b0aeaf3-7dd5-47d2-aed4-df4417f9ba8a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}}},{"name":"Upload Files","id":"f7fb18d7-2f3b-4cdf-a4d5-73ca3d878e24","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"multipart/form-data; boundary=----WebKitFormBoundaryHh4cXAuJYUxbQBhR","type":"text"},{"key":"Hypercare-Scope","value":"{{scopetoken}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","src":"/Users/nathanluong/Downloads/Test1 (1).jpeg"}]},"url":"https://{{api_hostname}}/upload_files","description":"<p>REST POST endpoint for uploading files.</p>\n<p><strong>@return</strong> a list of ids referencing the uploaded files.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["upload_files"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"bf18174f-2f47-4f49-bfe3-94c9d14bb772","name":"Successful Upload","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"recovery-care-logo","type":"file","src":"/Users/umarazhar/Desktop/Screen Shot 2022-12-04 at 11.30.33.png"}]},"url":"{{api_host_protocol}}{{api_hostname}}/upload_files"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"340"},{"key":"ETag","value":"W/\"154-2JbGUtbdanuhj6w1Xl7XnsglUA0\""},{"key":"Date","value":"Wed, 21 Dec 2022 13:19:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"response\": [\n        {\n            \"id\": 150562,\n            \"url\": \"https://hypercare-api-prod-images.s3.ca-central-1.amazonaws.com/15c412c0-1b04-11e7-b9b9-8f522ec4d570/c1bb6fd7-26b3-4a31-b778-7dfb5821a042.png\",\n            \"fileName\": \"Screen Shot 2022-12-04 at 11.30.33.png\",\n            \"mimeType\": \"image/png\",\n            \"userId\": \"15c412c0-1b04-11e7-b9b9-8f522ec4d570\",\n            \"createdAt\": \"2022-12-21T13:19:32.000Z\"\n        }\n    ]\n}"}],"_postman_id":"f7fb18d7-2f3b-4cdf-a4d5-73ca3d878e24"},{"name":"Fetch GraphQL Private Schema v1","id":"f10cf49b-abf8-4a18-80eb-840ceb257aaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{api_hostname}}/graphql/schema/private","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"protocol":"https","path":["graphql","schema","private"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f10cf49b-abf8-4a18-80eb-840ceb257aaf"},{"name":"Fetch GraphQL Private Schema v2","id":"e2b14647-a635-4fe9-92a5-e5073d57bb3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api_host_protocol}}{{api_hostname}}/v2/graphql/private/schema","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":true,"source":{"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","name":"Private (Authenticated)","type":"folder"}},"urlObject":{"path":["v2","graphql","private","schema"],"host":["{{api_host_protocol}}{{api_hostname}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2b14647-a635-4fe9-92a5-e5073d57bb3d"}],"id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{api_bearer}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"6f35eecd-2dda-4515-b5d3-039e6dec0bad","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"6baf81dd-cc46-4fae-8141-a290867774a2","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"22c46175-6b87-4e76-9e1a-18f0c1bba491","description":""},{"name":"Health Check","id":"6640edf2-c667-4e0c-b5a9-5e86d789df55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{api_hostname}}/health_check","urlObject":{"protocol":"https","path":["health_check"],"host":["{{api_hostname}}"],"query":[],"variable":[]}},"response":[{"id":"f2650be8-eb52-47ec-b5ad-81ef93be8f4c","name":"Success","originalRequest":{"method":"GET","header":[],"url":"https://{{api_hostname}}/health_check"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Tue, 05 Mar 2024 17:44:11 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"2"},{"key":"Connection","value":"keep-alive"},{"key":"X-Request-Id","value":"42f3e589-2721-4e27-a0b7-f813138796d0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Surrogate-Control","value":"no-store"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate, proxy-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-XSS-Protection","value":"0"},{"key":"Strict-Transport-Security","value":"max-age=5184000; includeSubDomains"},{"key":"ETag","value":"W/\"2-nOO9QiTIwXgNtWtBJezz8kv3SLc\""}],"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"6640edf2-c667-4e0c-b5a9-5e86d789df55"}]}