This is a guide for the FacultyCV GraphQL API. It includes all the queries and mutations for the API along with descriptions, arguments and return values for each of them.
- getAllUsers
- getAllSections
- getArchivedSections
- getUser
- getUserInstitutionId
- getExistingUser
- getUserCVData
- getArchivedUserCVData
- getAllUniversityInfo
- getElsevierAuthorMatches
- getOrcidAuthorMatches
- getUserConnections
- getAllTemplates
- getTeachingDataMatches
- getPublicationMatches
- getSecureFundingMatches
- getRiseDataMatches
- getPatentMatches
- getPresignedUrl
- getNumberOfGeneratedCVs
- cvIsUpToDate
Fetches all users from the database.
None
An array of user objects containing the following information:
- "user_id": "string",
- "first_name": "string",
- "last_name": "string",
- "preferred_name": "string",
- "email": "string",
- "role": "string",
- "bio": "string",
- "rank": "string",
- "primary_department": "string",
- "secondary_department": "string",
- "primary_faculty": "string",
- "secondary_faculty": "string",
- "campus": "string",
- "keywords": "string[]",
- "institution_user_id": "string",
- "scopus_id": "string",
- "orcid_id": "string",
- "joined_timestamp": "string"
Fetches all sections that are part of the schema.
None
An array of section objects containing the following information:
- "attributes": JSON object with placeholder value - used to determine the structure (and not the actual data) of the section,
- "dataSectionId": "string",
- "data_type": "string",
- "description": "string",
- "title": "string"
Fetches all archived sections that are part of the schema.
None
An array of archived section objects containing the following information:
- "attributes": JSON object with placeholder value - used to determine the structure (and not the actual data) of the section,
- "dataSectionId": "string",
- "data_type": "string",
- "description": "string",
- "title": "string"
Fetches user data based on the provided email.
- "email": "string"
A user object containing the following information:
- "user_id": "string",
- "first_name": "string",
- "last_name": "string",
- "preferred_name": "string",
- "email": "string",
- "role": "string",
- "bio": "string",
- "rank": "string",
- "primary_department": "string",
- "secondary_department": "string",
- "primary_faculty": "string",
- "secondary_faculty": "string",
- "campus": "string",
- "keywords": "string[]",
- "scopus_id": "string",
- "orcid_id": "string"
Fetches user data with institution_user_id based on the provided email.
- "email": "string"
A user object containing the following information:
- "user_id": "string",
- "first_name": "string",
- "last_name": "string",
- "preferred_name": "string",
- "email": "string",
- "role": "string",
- "bio": "string",
- "rank": "string",
- "primary_department": "string",
- "secondary_department": "string",
- "primary_faculty": "string",
- "secondary_faculty": "string",
- "institution_user_id": "string",
- "campus": "string",
- "keywords": "string[]",
- "scopus_id": "string",
- "orcid_id": "string"
Fetches existing user data based on the provided institution_user_id.
- "institution_user_id": "string"
A user object containing the following information:
- "user_id": "string",
- "first_name": "string",
- "last_name": "string",
- "preferred_name": "string",
- "email": "string",
- "role": "string",
- "bio": "string",
- "rank": "string",
- "primary_department": "string",
- "secondary_department": "string",
- "primary_faculty": "string",
- "secondary_faculty": "string",
- "campus": "string",
- "keywords": "string[]",
- "institution_user_id": "string",
- "scopus_id": "string",
- "orcid_id": "string"
Fetches user CV data given the user ID and the data section ID(s).
- "user_id": "string"
- "data_section_id": "string" (optional) - ID of the data section as returned by the getAllSections call
- "data_section_id_list": "string[]" (optional) - List of data section IDs to retrieve data for
Must specify one of the two optional arguments.
A user CV data object containing the following information:
- "user_cv_data_id": "string",
- "user_id": "string",
- "data_section_id": "string",
- "data_details": "JSON string",
- "editable": "boolean"
Fetches the archived user CV data given the user ID.
- "user_id": "string"
An archived user CV data object containing the following information:
- "user_cv_data_id": "string",
- "user_id": "string",
- "data_section_id": "string",
- "data_details": "JSON string",
- "archive": "boolean",
- "archive_timestamp": "string",
- "editable": "boolean"
Fetches all university information.
None
An array of university info objects containing the following information:
- "university_info_id": "string",
- "type": "string",
- "value": "string"
Fetches potential matches for an author using the Elsevier API.
- "first_name": "string"
- "last_name": "string"
- "institution_name": "string" (optional, specify empty string if omitting)
An array of author match objects containing the following information:
- "last_name": "string",
- "first_name": "string",
- "current_affiliation": "string",
- "name_variants": "string[]",
- "subjects": "string[]",
- "scopus_id": "string",
- "orcid": "string"
Fetches potential matches for an author using the Orcid API.
- "first_name": "string"
- "last_name": "string"
- "institution_name": "string" (optional, specify empty string if omitting)
An array of author match objects containing the following information:
- "last_name": "string",
- "first_name": "string",
- "credit_name": "string",
- "name_variants": "string[]",
- "keywords": "string[]",
- "researcher_urls": "string[]",
- "orcid_id": "string"
Fetches user connections given the user ID.
- "user_id": "string"
- "isFaculty": "boolean" (optional, defaults to true)
An array of user connection objects containing the following information:
- "user_connection_id": "string",
- "faculty_user_id": "string",
- "faculty_first_name": "string",
- "faculty_last_name": "string",
- "faculty_email": "string",
- "assistant_user_id": "string",
- "assistant_first_name": "string",
- "assistant_last_name": "string",
- "assistant_email": "string",
- "status": "string"
Fetches all templates.
None
An array of template objects containing the following information:
- "template_id": "string",
- "title": "string",
- "data_section_ids": "string[]",
- "start_year": "string",
- "end_year": "string"
Fetches teaching data matches from bulk loaded TTPS data given the institution user ID.
- "institution_user_id": "string"
An array of teaching data match objects containing the following information:
- "teaching_data_id": "string",
- "user_id": "string",
- "data_details": "JSON string"
Fetches publication matches using a user's Scopus ID.
- "scopus_id": "string"
- "page_number": "int" - a zero-indexed page number to fetch data for
- "results_per_page": "int"
An object containing the following information:
- "publications":
- "publication_id": "string"
- "title": "string"
- "cited_by": "int"
- "keywords": "string[]"
- "journal": "string"
- "link": "string"
- "doi": "string"
- "year_published": "string"
- "author_names": "string[]"
- "author_ids": "string[]"
- "total_results": "int"
- "current_page": "int"
- "total_pages": "int"
Fetches secure funding matches from grants data.
- "first_name": "string"
- "last_name": "string"
An array of secure funding match objects containing the following information:
- "secure_funding_id": "string",
- "first_name": "string",
- "last_name": "string",
- "data_details": "JSON string"
Fetches rise data matches from rise data.
- "first_name": "string"
- "last_name": "string"
An array of rise data match objects containing the following information:
- "rise_data_id": "string",
- "first_name": "string",
- "last_name": "string",
- "data_details": "JSON string"
Fetches patent matches from patents data.
- "first_name": "string"
- "last_name": "string"
An array of patent match objects containing the following information:
- "secure_funding_id": "string",
- "first_name": "string",
- "last_name": "string",
- "data_details": "JSON string"
Fetches a presigned URL authorized to PUT or GET an object to/from a dedicated partition in the CV S3 bucket for the tenant whose JWT token is passed.
- "jwt": "string" - the JWT session token
- "fileKey": "string" - the key of the file to get the presigned URL for
- "type": "string" - the type of operation (PUT or GET)
A string containing the presigned URL.
Fetches the number of reports in the S3 bucket.
None
An integer representing the number of reports in the S3 bucket.
Checks if the CV needs updating.
- "cognito_user_id": "string"
- "user_id": "string"
- "template_id": "string"
A boolean indicating whether the CV is up to date (true or false).
- addToUserGroup
- removeFromUserGroup
- addUserCVData
- addSection
- addUser
- addUniversityInfo
- addUserConnection
- addTemplate
- linkScopusId
- linkOrcid
- linkTeachingData
- linkPublication
- updateUser
- updateSection
- updateUserCVData
- updateUserCVDataArchive
- updateUniversityInfo
- updateUserConnection
- updateTemplate
- deleteUserConnection
- deleteTemplate
Adds a user to a user group.
- "userName": "string"
- "userGroup": "string"
A string indicating the result of the operation.
Removes a user from a user group.
- "userName": "string"
- "userGroup": "string"
A string indicating the result of the operation.
Adds user CV data - the section info associated with a user.
- "user_id": "string" - ID of the user the profile belongs to
- "data_section_id": "string" - ID of the data section as returned by the getAllSections call
- "data_details": "JSON string"
- "editable": "boolean" (optional, defaults to true)
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.
Adds a section to the data_sections table.
- "title": "string"
- "description": "string"
- "data_type": "string"
- "attributes": "JSON string" - with section data information
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.
Adds user data to the database.
- "first_name": "string"
- "last_name": "string"
- "preferred_name": "string"
- "email": "string"
- "role": "string"
- "bio": "string"
- "rank": "string"
- "primary_department": "string"
- "secondary_department": "string"
- "primary_faculty": "string"
- "secondary_faculty": "string"
- "campus": "string"
- "keywords": "string[]"
- "institution_user_id": "string"
- "scopus_id": "string"
- "orcid_id": "string"
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.
Adds university info to the university_info table.
- "type": "string"
- "value": "string"
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.
Adds user connections.
- "faculty_user_id": "string" - ID of the faculty user
- "faculty_first_name": "string"
- "faculty_last_name": "string"
- "faculty_email": "string"
- "assistant_user_id": "string" - ID of the assistant user
- "assistant_first_name": "string"
- "assistant_last_name": "string"
- "assistant_email": "string"
- "status": "string"
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.
Adds a template.
- "title": "string" - title of the template
- "data_section_ids": "string[]" - list of data section IDs
- "start_year": "string" - start year of the template
- "end_year": "string" - end year of the template
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.
Links a user profile with a Scopus ID. Optionally, the ORCID can be specified if a match is found with the Scopus ID returned by the getElsevierAuthorMatches function call.
- "user_id": "string"
- "scopus_id": "string"
- "orcid_id": "string" (optional)
A string saying "Scopus ID linked successfully" if the call succeeded, anything else means the call failed.
Links a user profile with an ORCID ID. To be used in conjunction with the getOrcidAuthorMatches function.
- "user_id": "string"
- "orcid_id": "string"
A string saying "Orcid ID linked successfully" if the call succeeded, anything else means the call failed.
Links bulk loaded teaching data to a profile.
- "user_id": "string"
- "data_details": "JSON string"
A string saying "Teaching data linked successfully" if the call succeeded, anything else means the call failed.
Links a publication to the user.
- "user_id": "string"
- "data_details": "JSON string"
A string saying "Publication linked successfully" if the call succeeded, anything else means the call failed.
Updates user information.
- "user_id": "string"
- "first_name": "string"
- "last_name": "string"
- "preferred_name": "string"
- "email": "string"
- "role": "string"
- "bio": "string"
- "rank": "string"
- "primary_department": "string"
- "secondary_department": "string"
- "primary_faculty": "string"
- "secondary_faculty": "string"
- "campus": "string"
- "keywords": "string[]"
- "institution_user_id": "string"
- "scopus_id": "string"
- "orcid_id": "string"
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.
Updates a data section.
- "data_section_id": "string" - ID of the data section
- "archive": "boolean"
- "attributes": "JSON string"
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.
Updates user CV data - the section info associated with a user.
- "user_cv_data_id": "string" - ID of the user CV data
- "data_details": "JSON string"
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.
Updates user CV data - the archive status.
- "user_cv_data_id": "string" - ID of the user CV data
- "archive": "boolean"
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.
Updates university info.
- "university_info_id": "string"
- "type": "string"
- "value": "string"
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.
Updates user connections.
- "user_connection_id": "string" - ID of the user connection
- "status": "string" - New status for the user connection
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.
Updates a template.
- "template_id": "string" - ID of the template
- "title": "string" - Title of the template
- "data_section_ids": "string[]" - List of data section IDs
- "start_year": "string" - Start year of the template
- "end_year": "string" - End year of the template
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.
Deletes a user connection.
- "user_connection_id": "string" - ID of the user connection
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.
Deletes a template.
- "template_id": "string" - ID of the template
A string saying "SUCCESS" if the call succeeded, anything else means the call failed.