Type | Added | Removed | Modified |
|---|---|---|---|
Queries | 2 ( | 0 | 0 |
Mutations | 0 | 0 | 0 |
Object types | 3 ( | 0 | 0 |
Input types | 3 ( | 0 | 0 |
Enums | 2 ( | 0 | 0 |
None. No fields were removed from any object, query, or mutation in this branch.
blogPostsAdded in: app/graphql/queries/blog_post.rb, resolver in app/graphql/queries/query_methods/blog_post.rb
Description: Returns a paginated list of published blog posts, powered by Elasticsearch (BlogPost.list → Searchables#query_hash). The status: published term filter is applied unconditionally, so drafts and archived posts are never returned. Created to expose blog content to the public-facing website (YOP), whose URL is surfaced via websiteUrl.
Arguments:
Argument | Type | Required | Notes |
|---|---|---|---|
|
| No | See input types below |
|
| No |
|
BlogPostFilter input fields:
Field | Type | Behaviour |
|---|---|---|
|
| Full-text |
|
| Match specific post IDs |
|
| Match posts belonging to these category IDs |
|
| Match posts by slug(s) |
|
| Filter on the featured flag |
|
| One of |
|
|
|
Returns: BlogPostList — { data: [BlogPost], paging: Paging }
Example:
query {
blogPosts(
filters: {
q: "leadership"
ids: ["1", "2"]
blogCategoryIds: ["10", "11"]
slugs: ["my-first-post"]
isFeatured: true
sort: published_at
sortDirection: desc
}
pagination: { page: 1, perPage: 10 }
) {
data {
id
title
slug
description
content
status
isFeatured
websiteUrl
publishedAt
archivedAt
createdAt
updatedAt
blogCategory {
id
name
slug
}
person {
id
fullName
}
featuredImage(size: "500x500") {
id
filename
filesize
url
}
}
paging {
totalItems
totalPages
currentPage
}
}
}
blogCategoriesAdded in: app/graphql/queries/blog_category.rb, resolver in app/graphql/queries/query_methods/blog_category.rb
Description: Returns all blog categories as a plain (non-paginated) list, ordered by name ASC, with an optional case-insensitive ILIKE name search. Created to support category browsing/filtering for blog content.
Arguments:
Argument | Type | Required | Notes |
|---|---|---|---|
|
| No | Only contains |
Returns: [BlogCategory] (array, no data/paging wrapper)
Example:
query {
blogCategories(filters: { q: "tech" }) {
id
name
slug
color {
id
name
typeName
}
createdAt
updatedAt
}
}
None added, removed, or modified. Blog post/category writes are managed through cm-admin (app/models/concerns/cm_admin/), not the GraphQL API.
BlogPost (app/graphql/types/objects/blog_post.rb)Field | Type | Notes |
|---|---|---|
|
| |
|
| |
|
| Auto-generated from title ( |
|
| |
|
| Backed by ActionText rich text |
|
|
|
|
| Only one published post can be featured at a time |
|
| |
|
| Author; defaults to |
|
|
|
|
|
|
|
| |
|
| |
|
| |
|
|
BlogCategory (app/graphql/types/objects/blog_category.rb)Field | Type | Notes |
|---|---|---|
|
| |
|
| |
|
| Auto-generated from name |
|
| Optional color constant ( |
|
| |
|
|
BlogPostList (app/graphql/types/objects/blog_post_list.rb)Field | Type | Notes |
|---|---|---|
|
| List of blog posts |
|
| Pagination metadata |
Pagingnote: the sharedTypes::Objects::Pagingobject exposescurrentPage,totalItems, andtotalPages(nottotalCount).
BlogPostFilter (app/graphql/inputs/blog_post_filter.rb)Extends Helpers::BlogPostSortOption (which extends Helpers::BaseFilter).
Field | Type | Notes |
|---|---|---|
|
| Inherited from |
|
| Inherited from |
|
|
|
|
| |
|
| |
|
| |
|
|
BlogCategoryFilter (app/graphql/inputs/blog_category_filter.rb)Extends Helpers::BaseFilter — exposes only q: String.
Helpers::BlogPostSortOption (app/graphql/helpers/blog_post_sort_option.rb)Internal input base class providing sort + sortDirection arguments.
BlogPostStatus (app/graphql/types/enums/blog_post_status.rb)Values generated from BlogPost.statuses:
draftpublishedarchivedBlogPostSortOption (app/graphql/types/enums/blog_post_sort_option.rb)Extends BaseSortOption (inherits created_at, updated_at):
created_atupdated_attitle — sorts on title.keyword in Elasticsearchpublished_atapp/graphql/types/query_type.rb now implements the two new query interfaces:
implements Queries::BlogCategory
implements Queries::BlogPost
AiDocumentImport now supports Opportunity imports (Global Talent & Global Teacher only) and public URL imports — in addition to person CVs.
createAiDocumentImportsourceUrl — a public URL to import from instead of an uploaded document. Exactly one of document or sourceUrl must be provided; both or neither returns Please provide either a document or a public URL.opportunityId — the opportunity to attach the import to. Required for opportunity imports; omit for the current user's CV import.AiDocumentImportimportableType — "Person" or "Opportunity", what the import belongs toperson — set for person imports, null for opportunity importsopportunity — set for opportunity imports, null for person importssourceUrl — the URL the import was created from (null for file uploads)AI document import is only supported for Global Talent and Global Teacher opportunities.COMPLETED, extracted fields are already written onto the record — refetch the opportunity to populate the form. Only fields found in the source are written; existing values are never cleared.FAILED with failureReason starting URL_CONTENT_NOT_FOUND, the URL couldn't be read — show a "we couldn't read this link" error and let the user upload a document instead. This will be common for fresh job postings, as URL reads go through Bing's index.open opportunity demotes it to draft.document content is provided without a filename, the mutation returns Document filename is missing.mutation {
createAiDocumentImport(
document: { content: "data:application/pdf;base64,...", filename: "job-description.pdf" }
opportunityId: "12345"
) {
id
status
importableType
}
}mutation {
createAiDocumentImport(
sourceUrl: "https://example.com/job-posting"
opportunityId: "12345"
) {
id
status
importableType
}
}query {
aiDocumentImport(id: "987") {
id
status
importableType
sourceUrl
document { url }
failureReason
completedAt
failedAt
opportunity { id title }
person { id fullName }
}
}{
"data": {
"aiDocumentImport": {
"id": "987",
"status": "COMPLETED",
"importableType": "Opportunity",
"sourceUrl": "https://example.com/job-posting",
"document": null,
"failureReason": null,
"completedAt": "2026-11-05T10:32:14Z",
"failedAt": null,
"opportunity": { "id": "12345", "title": "Primary English Teacher" },
"person": null
}
}
}{
"data": {
"aiDocumentImport": {
"id": "988",
"status": "FAILED",
"importableType": "Opportunity",
"sourceUrl": "https://example.com/fresh-job-post",
"document": null,
"failureReason": "URL_CONTENT_NOT_FOUND: Could not read the content of the provided URL",
"completedAt": null,
"failedAt": "2026-11-05T10:41:02Z",
"opportunity": { "id": "12345", "title": "Primary English Teacher" },
"person": null
}
}
}The PersonCvImport API has been renamed to AiDocumentImport. No behavior changes — this is a rename only; the import flow, statuses, and request shapes are identical.
createPersonCvImport mutation → createAiDocumentImport — the cv argument is now document (same { content, filename } shape)personCvImport query → aiDocumentImportcv field on the returned object → documentPersonCvImportStatusEnum → AiDocumentImportStatusEnumsub_code: duplicate_cv_import → duplicate_document_importBefore:
mutation {
createPersonCvImport(cv: { content: "data:application/pdf;base64,...", filename: "cv.pdf" }) {
id
status
cv { url }
}
}After:
mutation {
createAiDocumentImport(document: { content: "data:application/pdf;base64,...", filename: "cv.pdf" }) {
id
status
document { url }
}
}Query before:
query {
personCvImport(id: "987") {
id
status
failureReason
completedAt
}
}Query after:
query {
aiDocumentImport(id: "987") {
id
status
failureReason
completedAt
}
}{
"data": {
"aiDocumentImport": {
"id": "987",
"status": "COMPLETED",
"failureReason": null,
"completedAt": "2026-11-05T10:32:14Z"
}
}
}query Announcements {
announcements {
id
title
description
created_at
}
}This renames the OpportunityQuestion concept to PreScreenQuestion and makes it polymorphic (questionable_id / questionable_type) so pre-screen questions can be attached to any entity, not just Opportunity. It also replaces the self-referential parent_id/sub_questions hierarchy with a polymorphic options association, and adds :date as a documented question_type option.
Backing migration: db/migrate/20260904134529_migrate_opportunity_questions_to_pre_screen_questions.rb — renames the table to pre_screen_questions, replaces opportunity_id + parent_id with a polymorphic questionable reference (non-null), and backfills existing rows (parent_id rows become PreScreenQuestion options; opportunity_id rows become Opportunity questions).
Types::Objects::OpportunityQuestionThe entire object type was deleted and replaced by Types::Objects::PreScreenQuestion.
Removed field | Notes |
|---|---|
| Replaced by the polymorphic |
| Renamed/replaced by |
Types::Objects::PreScreenQuestionclass Types::Objects::PreScreenQuestion < Types::BaseObject
field :id, ID, null: true
field :is_mandatory, Boolean, null: true
field :position, Integer, null: true
field :question_text, String, null: true
field :question_type, String, null: true
field :options, [Types::Objects::PreScreenQuestion], null: true
end
Why it was created: to generalize screening questions so any record (e.g. Opportunity, or another PreScreenQuestion for options/sub-questions) can own them via questionable.
Types::Objects::Opportunity — field changesChange | Old | New |
|---|---|---|
Renamed |
|
|
Renamed + retyped |
|
|
Inputs::OpportunityQuestion → renamed to Inputs::PreScreenQuestionChange | Detail |
|---|---|
Removed argument |
|
Added argument |
|
Added argument |
|
Updated argument |
|
Unchanged |
|
Query | Reason |
|---|---|
| Was already deprecated ( |
| removed. use |
Mutation | Replaced by |
|---|---|
|
|
|
|
|
|
|
|
add_pre_screen_question(pre_screen_question: PreScreenQuestionInput) → PreScreenQuestionCreates a PreScreenQuestion attached polymorphically to the record identified by questionable_id / questionable_type. The old opportunity_id argument is gone — pass questionableType: "Opportunity" with questionableId to attach to an opportunity, or questionableType: "PreScreenQuestion" to create an option/sub-question.
Why: supports attaching questions to any entity type, not only opportunities.
mutation {
addPreScreenQuestion(
preScreenQuestion: {
questionableId: "123"
questionableType: "Opportunity"
questionText: "Why do you want to apply?"
questionType: "paragraph"
position: 1
isMandatory: true
}
) {
id
questionText
questionType
position
isMandatory
}
}update_pre_screen_question(id: ID!, pre_screen_question: PreScreenQuestionInput) → PreScreenQuestionFinds the question by id and updates it with the provided attributes. Same behavior as before, renamed.
mutation {
updatePreScreenQuestion(
id: "456"
preScreenQuestion: {
questionableId: "123"
questionableType: "Opportunity"
questionText: "Updated question text"
questionType: "multiple_choice"
position: 2
isMandatory: false
}
) {
id
questionText
}
}remove_pre_screen_question(id: ID!) → PreScreenQuestionFinds the question by id and destroys it.
mutation {
removePreScreenQuestion(id: "456") {
id
}
}bulk_remove_pre_screen_questions(ids: [ID]) → [PreScreenQuestion]Destroys all PreScreenQuestion records matching the given ids.
mutation {
bulkRemovePreScreenQuestions(ids: ["456", "789"]) {
id
}
}assign_questionnaire(id: ID!, questionnaire_id: ID!) → OpportunityUnchanged signature. Internally it now destroys/creates pre_screen_questions instead of opportunity_questions, and creates questionnaire sub-questions via pre_screen_question.options.create(...) (polymorphic) rather than sub_questions.create(...) via parent_id.
mutation {
assignQuestionnaire(id: "123", questionnaireId: "42") {
id
preScreenQuestions {
id
questionText
options { id questionText }
}
}
}Old name | New name | Kind |
|---|---|---|
|
| Object type |
|
| Input type |
| — removed — | Query field |
| — removed — | Query field |
|
|
|
|
|
|
|
| Question field |
| — removed (polymorphic | Question field |
|
| Input argument |
|
| Mutation |
|
| Mutation |
|
| Mutation |
|
| Mutation |
opportunityQuestion(s) / getOpportunityQuestions / hasOpportunityQuestions / addOpportunityQuestion / updateOpportunityQuestion / removeOpportunityQuestion / bulkRemoveOpportunityQuestions schema names no longer exist — clients must migrate to the preScreenQuestion(s) equivalents.Opportunity.opportunityQuestions was a Relay-style connection; Opportunity.preScreenQuestions is a plain list — pagination arguments (first, after, edges/node, pageInfo) are no longer applicable.PreScreenQuestion.options is a plain list, not a connection (previously subQuestions was a connection).addPreScreenQuestion no longer accepts opportunityId; questionableId and questionableType are now required inside the input.Removed middle_lda_report from the application object
associtated_surveys fields won't have middle lda survey
There is Important Note on skills_developments inputs, make sure to check it.
Types::Objects::MeasureOfImpact (new object)New file: app/graphql/types/objects/measure_of_impact.rb
type MeasureOfImpact {
id: ID!
value: String
description: String
opportunity: Opportunity
}Inputs::MeasureOfImpact (new input)New file: app/graphql/inputs/measure_of_impact.rb
input MeasureOfImpactInput {
id: ID
value: String
description: String
_destroy: Boolean
}_destroy: true Removes the record with the matching id (Rails nested attributes with allow_destroy: true).
Location | Removed | Reason |
|---|---|---|
|
| No longer stored on applications; measure of impacts are owned by the parent |
|
| Removed; applications no longer manage measure of impacts |
|
| Replaced by |
|
| Re-typed to |
Location | Added | Description |
|---|---|---|
|
| Re-typed from |
|
| New field — skill-development tags split out from |
|
| Replaces |
|
| New argument — set skill-development tags. IMPORTANT NOTE: pass option as skill_development, otherwise it won't register as skill_developments. |
Paging type used by list queries is unchanged: current_page, total_items, total_pages.eventId (ID, required) — New argument. Scopes the ticket lookup to a specific engagement event. The id argument is now matched against engagement_event_id.mutation { attendedEventApplication(id: "123", eventId: "456") {} }
AINT-38This document covers all GraphQL additions and changes introduced in this branch. The branch implements a full Engagement Events and Event Applications feature, including payment flows, attendance tracking, QR code ticket generation, comments, tags, and favourites.
engagementEventsReturns a paginated list of engagement events, filterable by status, office, tags, favourites, etc.
Returns: EngagementEventList (paginated)
Arguments:
Argument | Type | Required |
|---|---|---|
|
| No |
|
| No |
Example:
query {
engagementEvents(
filters: {
statuses: [published]
hostOfficeIds: [1, 2]
tagIds: [10, 11]
tagFilterOperator: "AND"
my: "managed"
isFavourited: false
}
pagination: { page: 1, perPage: 10 }
) {
data {
id
title
description
status
startTime
endTime
applicationDeadline
location
googlePlaceId
contactInformation
eventGuideline
refundPolicy
feeCents
currency {
id
name
}
hostOffice {
id
name
}
managers {
id
fullName
}
engagementEventSpeakers {
id
name
description
profilePicture {
url
}
}
engagementEventDayActivities {
id
day
title
description
startTime
endTime
engagementEventSpeakers {
id
name
}
}
coverImage {
url
}
comments {
id
body
}
tagLists {
id
name
}
isFavourited
permissions {
canPublish
canUnpublish
canUpdate
canCreateComment
canDeleteComment
canManageTags
canFavourite
}
createdAt
updatedAt
}
paging {
totalCount
totalPages
currentPage
}
}
}
engagementEventFetches a single engagement event by ID.
Returns: EngagementEvent
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
Example:
query {
engagementEvent(id: "42") {
id
title
description
status
startTime
endTime
applicationDeadline
location
eventGuideline
refundPolicy
feeCents
currency {
id
name
}
engagementEventSpeakers {
id
name
}
engagementEventDayActivities {
id
day
title
}
permissions {
canUpdate
canPublish
canCreateComment
canFavourite
}
}
}
eventApplicationsReturns a paginated, filterable list of event applications. Supports filtering by status, event, person, date range, and sorting.
Returns: EventApplicationList (paginated)
Arguments:
Argument | Type | Required |
|---|---|---|
|
| No |
|
| No |
Example:
query {
eventApplications(
filters: {
statuses: [in_review, accepted]
engagementEventIds: [42]
personIds: [101]
startTime: { from: "2026-01-01", to: "2026-06-30" }
endTime: { from: "2026-01-01", to: "2026-12-31" }
my: "applied"
sort: start_time
sortDirection: DESC
}
pagination: { page: 1, perPage: 20 }
) {
data {
id
status
additionalDetails
ticketId
inReviewAt
engagementEvent {
id
title
}
person {
id
fullName
}
cv {
url
}
ticketPdf {
url
}
qrCode {
url
}
permissions {
canUpdate
canAccept
canReject
canConfirmPayment
canWithdraw
canDownloadTicket
canAbsent
}
createdAt
updatedAt
}
paging {
totalCount
totalPages
currentPage
}
}
}
eventApplicationFetches a single event application by ID.
Returns: EventApplication
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
Example:
query {
eventApplication(id: "7") {
id
status
ticketId
ticketPdf {
url
}
qrCode {
url
}
permissions {
canAccept
canReject
canWithdraw
canDownloadTicket
}
}
}
createEngagementEventCreates a new engagement event. The current user is automatically set as creator and first manager. Speakers can be nested inline.
Returns: EngagementEvent
Arguments:
Argument | Type | Required |
|---|---|---|
|
| No |
Example:
mutation {
createEngagementEvent(
engagementEvent: {
title: "AIESEC Leadership Summit"
description: "Annual leadership event"
startTime: "2026-09-01T09:00:00Z"
endTime: "2026-09-03T18:00:00Z"
applicationDeadline: "2026-08-15T23:59:00Z"
hostOfficeId: "5"
location: "Cairo, Egypt"
googlePlaceId: "ChIJxxxxxxxxx"
contactInformation: "events@aiesec.org"
eventGuideline: "Bring your student ID"
refundPolicy: "Non-refundable"
feeCents: 5000
currencyId: "1"
managerIds: ["101", "102"]
coverImage: {
content: "data:image/png;base64,..."
filename: "cover.png"
}
engagementEventSpeakersAttributes: [
{
name: "Jane Doe"
description: "Keynote speaker"
profilePicture: {
content: "data:image/png;base64,..."
filename: "jane.png"
}
}
]
engagementEventDayActivitiesAttributes: [
{
day: 1
title: "Opening Ceremony"
description: "Welcome and introductions"
startTime: "2026-09-01T09:00:00Z"
endTime: "2026-09-01T11:00:00Z"
engagementEventSpeakerIds: ["1"]
}
]
}
) {
id
title
status
}
}
updateEngagementEventUpdates an existing engagement event. Speakers and day activities support nested upsert/destroy via _destroy: true.
Returns: EngagementEvent
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
|
| No |
Example:
mutation {
updateEngagementEvent(
id: "42"
engagementEvent: {
title: "Updated Summit Title"
feeCents: 7500
engagementEventSpeakersAttributes: [
{ id: "3", _destroy: true }
{ name: "New Speaker", description: "New session" }
]
}
) {
id
title
feeCents
}
}
inReviewEngagementEventTransitions an engagement event to in_review status, marking it ready for publishing approval.
Returns: EngagementEvent
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
Example:
mutation {
inReviewEngagementEvent(id: "42") {
id
status
}
}
publishEngagementEventPublishes an engagement event (must be in in_review status). Records published_at and published_by.
Returns: EngagementEvent
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
Example:
mutation {
publishEngagementEvent(id: "42") {
id
status
}
}
bulkAssignManagersForEventsBulk-assigns one or more managers to multiple engagement events. Only events the current user can update are affected.
Returns: [EngagementEvent]
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
|
| Yes |
Example:
mutation {
bulkAssignManagersForEvents(ids: ["42", "43"], managerIds: [101, 102]) {
id
managers {
id
fullName
}
}
}
bulkUnassignManagersForEventsBulk-unassigns managers from multiple engagement events. Passing an empty managerIds removes all managers.
Returns: [EngagementEvent]
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
|
| Yes |
Example:
mutation {
bulkUnassignManagersForEvents(ids: ["42", "43"], managerIds: [101]) {
id
managers {
id
fullName
}
}
}
createCommentForEngagementEventCreates a comment on an engagement event. The author is automatically set to the current user.
Returns: Comment
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
|
| No |
Example:
mutation {
createCommentForEngagementEvent(
engagementEventId: "42"
comment: { body: "Looking forward to this event!" }
) {
id
body
}
}
bulkTagUpdateForEngagementEventsReplaces the tag list for multiple engagement events in bulk. Only events the current user can update are affected.
Returns: [EngagementEvent]
Arguments:
Argument | Type | Required |
|---|---|---|
|
| No |
|
| No |
Example:
mutation {
bulkTagUpdateForEngagementEvents(ids: [42, 43], tagListIds: [10, 11, 12]) {
id
tagLists {
id
name
}
}
}
favouriteEngagementEventMarks an engagement event as favourited by the current user.
Returns: EngagementEvent
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
Example:
mutation {
favouriteEngagementEvent(id: "42") {
id
isFavourited
}
}
unfavouriteEngagementEventRemoves the current user's favourite from an engagement event.
Returns: EngagementEvent
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
Example:
mutation {
unfavouriteEngagementEvent(id: "42") {
id
isFavourited
}
}
createEventApplicationCreates a new event application for the current user. Automatically transitions to pending_payment for paid events or in_review for free events. Supports re-applying for a previously withdrawn application (once). CV can be provided as base64 upload or via an existing attachment ID.
Returns: EventApplication
Arguments:
Argument | Type | Required |
|---|---|---|
|
| No |
Example (new application with CV upload):
mutation {
createEventApplication(
eventApplication: {
engagementEventId: "42"
additionalDetails: "I am very motivated to attend."
cv: { content: "data:application/pdf;base64,...", filename: "my_cv.pdf" }
}
) {
id
status
ticketId
}
}
Example (reuse existing CV by attachment ID):
mutation {
createEventApplication(
eventApplication: {
engagementEventId: "42"
additionalDetails: "I am very motivated to attend."
cvId: "88"
}
) {
id
status
}
}
updateEventApplicationUpdates an existing event application's details. Requires :update permission on the application.
Returns: EventApplication
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
|
| No |
Example:
mutation {
updateEventApplication(
id: "7"
eventApplication: { additionalDetails: "Updated motivation statement." }
) {
id
additionalDetails
}
}
acceptEventApplicationAccepts an event application in in_review status. On acceptance, a unique ticket_id is generated and a QR code + PDF ticket are generated asynchronously.
Returns: EventApplication
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
Example:
mutation {
acceptEventApplication(id: "7") {
id
status
ticketId
}
}
rejectEventApplicationRejects an event application in in_review status.
Returns: EventApplication
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
Example:
mutation {
rejectEventApplication(id: "7") {
id
status
}
}
withdrawEventApplicationAllows an applicant to withdraw their application while it is in applied, pending_payment, in_review, or accepted status.
Returns: EventApplication
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
Example:
mutation {
withdrawEventApplication(id: "7") {
id
status
}
}
confirmPaymentEventApplicationConfirms payment for an application in pending_payment status, advancing it to in_review.
Returns: EventApplication
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
Example:
mutation {
confirmPaymentEventApplication(id: "7") {
id
status
}
}
attendedEventApplicationMarks an accepted application as attended. The id can be either the application's database ID or its ticket_id string (used for QR scanning at event entry).
Returns: EventApplication
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
Example (by DB id):
mutation {
attendedEventApplication(id: "7") {
id
status
}
}
Example (by ticket_id via QR scan):
mutation {
attendedEventApplication(id: "A3F9C2") {
id
status
ticketId
}
}
absentEventApplicationMarks an accepted application as absent.
Returns: EventApplication
Arguments:
Argument | Type | Required |
|---|---|---|
|
| Yes |
Example:
mutation {
absentEventApplication(id: "7") {
id
status
}
}
EngagementEventRepresents an event managed by an AIESEC entity. Entirely new type added in this branch.
Field | Type | Description |
|---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Enum: |
|
| The organizing office |
|
| |
|
| |
|
| Ordered by |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Fee amount in cents (0 = free) |
|
| |
|
| |
|
| |
|
| |
|
| Whether current user has favourited |
|
| |
|
| |
|
|
EngagementEventListPaginated wrapper for EngagementEvent. New type added in this branch.
Field | Type |
|---|---|
|
|
|
|
|
|
EngagementEventSpeakerRepresents a speaker associated with an engagement event. New type added in this branch.
Field | Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
EngagementEventDayActivityRepresents a scheduled activity within a day of the engagement event. New type added in this branch.
Field | Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EventApplicationRepresents a person's application to an engagement event, including ticket, CV, QR code, and permission state. New type added in this branch.
Field | Type | Description |
|---|---|---|
|
| |
|
| |
|
| The applicant |
|
| Motivation/extra info |
|
| Enum (see below) |
|
| Uploaded CV attachment |
|
| Short unique ticket code (generated on accept) |
|
| PDF ticket (generated async after accept) |
|
| QR code image (generated async after accept) |
|
| When the application entered review |
|
| |
|
| |
|
|
EventApplicationListPaginated wrapper for EventApplication. New type added in this branch.
Field | Type |
|---|---|
|
|
|
|
|
|
EventApplicationPermissionTypeGranular permission flags for actions on an event application. New type added in this branch.
Field | Type | Condition |
|---|---|---|
|
| User has |
|
| User has |
|
| User has |
|
| User has |
|
| User has |
|
| Status is |
|
| User has |
EventPermissionNewly added fields:
Field | Type | Condition |
|---|---|---|
|
| User can |
|
| User can |
|
| User can |
|
| User can |
No fields were removed.
EngagementEventInputInput for creating or updating an engagement event.
Argument | Type | Required |
|---|---|---|
|
| No |
|
| No |
|
| No |
|
| No |
|
| No |
|
| No |
|
| No |
|
| No |
|
| No |
|
| No |
|
| No |
|
| No |
|
| No |
|
| No |
|
| No |
|
| No |
|
| No |
EngagementEventSpeakerInputNested input for managing speakers. Supports create, update and destroy.
Argument | Type | Notes |
|---|---|---|
|
| Provide to update/destroy an existing speaker |
|
| |
|
| |
|
| Base64 image upload |
|
| Set |
EngagementEventDayActivityInputNested input for managing day activities. Supports create, update and destroy.
Argument | Type | Notes |
|---|---|---|
|
| Provide to update/destroy an existing activity |
|
| |
|
| |
|
| |
|
| |
|
| Link existing speakers to this activity |
|
| Set |
EngagementEventFilterInputFilter input for the engagementEvents query.
Argument | Type | Notes |
|---|---|---|
|
| Filter by one or more statuses |
|
| Filter by host office |
|
| e.g. |
|
| Filter by tag IDs |
|
| Filter by current user's favourites |
|
|
|
EventApplicationInputInput for creating or updating an event application.
Argument | Type | Notes |
|---|---|---|
|
| Target event |
|
| Motivation text |
|
| Base64 CV upload (PDF or image) |
|
| Existing |
EventApplicationFilterInputFilter input for the eventApplications query.
Argument | Type | Notes |
|---|---|---|
|
| Filter by one or more statuses |
|
| Filter by event |
|
| Filter by applicant |
|
| Filter by event start time range |
|
| Filter by event end time range |
|
| e.g. |
|
|
|
|
|
|
EngagementEventStatusValues are derived from the EngagementEvent model statuses:
Value | Description |
|---|---|
| Newly created, not yet submitted for review |
| Submitted for review, awaiting publish approval |
| Live and accepting applications |
| Event has concluded |
EventApplicationStatusValues are derived from the EventApplication model statuses:
Value | Description |
|---|---|
| Initial state (free events skip this — go straight to |
| Awaiting payment confirmation (paid events only) |
| Application under review by managers |
| Application accepted; ticket and QR code generated |
| Application rejected |
| Applicant confirmed present at the event |
| Applicant marked absent |
| Applicant withdrew (can reapply once) |
EventApplicationSortOptionExtends BaseSortOption:
Value |
|---|
|
|
Event Queries - Filters
my - String
eg: my: "assigned" or my: "committee"
tag_ids [ID]
eg: tag_ids: [1, 2] statuses [EngagementEventStatus] statuses: [published, draft]
EventApplications Queries
statuses [EventApplicationStatus]
eg: statuses: [accepted, paid] - values: applied, accepted, attending, rejected, completed, withdrawn, paid
my String
eg: my: "assigned"
CurrentPerson Fields
has_current_position Boolean
is_favourited Boolean
favourite_events [Event]
favourite_events_count Integer
Use the below object inside the opportunity application query to fetch the new standards response; if this is null, use the older one; no change is required.
standards_response
{
survey {
survey_type
answers_report {
question {
id
question_text
standard {
name
}
}
answer_options {
effect
sub_questions_report {
question {
question_text
answer_options {
effect
}
}
to fetch and show the standards list:
query Contants {
constants(type_id: "standard") {
id
name
parent_id
}
}engagementEventsFetch a paginated list of engagement events. Supports filtering by status, host office, and text search.
{
engagementEvents(filters: {
q: "leadership",
statuses: [draft, published],
hostOfficeIds: ["1", "2"]
}) {
data {
id
title
description
startTime
endTime
status
applicationDeadline
location
googlePlaceId
contactInformation
refundPolicy
feeCents
createdAt
updatedAt
hostOffice { id name }
managers { id fullName }
coverImage { url }
engagementEventSpeakers { id name description }
engagementEventDayActivities { id title description startTime endTime }
}
}
}
engagementEventFetch a single engagement event by its ID.
{
engagementEvent(id: "42") {
id
title
description
startTime
endTime
status
applicationDeadline
location
googlePlaceId
contactInformation
refundPolicy
feeCents
hostOffice { id name }
managers { id fullName }
coverImage { url }
engagementEventSpeakers { id name description }
engagementEventDayActivities { id title description startTime endTime }
}
}
createEngagementEventCreate a new engagement event. The current user is automatically set as the creator and manager.
mutation {
createEngagementEvent(engagementEvent: {
title: "Global Leadership Summit",
description: "A two-day leadership summit for AIESEC members.",
startTime: "2026-04-01T09:00:00Z",
endTime: "2026-04-02T17:00:00Z",
hostOfficeId: "5",
applicationDeadline: "2026-04-01T12:00:00Z",
location: "Berlin, Germany",
googlePlaceId: "ChIJAVkDPzdOqEcRcDteW0YgIQQ",
contactInformation: "events@aiesec.org",
refundPolicy: "Full refund up to 7 days before the event.",
feeCents: 5000,
managerIds: ["10", "11"],
engagementEventSpeakersAttributes: [
{ name: "Jane Doe", description: "CEO of ExampleCorp" }
],
engagementEventDayActivitiesAttributes: [
{
title: "Opening Keynote",
description: "Welcome and opening remarks.",
startTime: "2026-04-01T09:00:00Z",
endTime: "2026-04-01T10:00:00Z",
engagementEventSpeakerIds: []
}
]
}) {
id
title
status
}
}
updateEngagementEventUpdate an existing engagement event by ID. Pass only the fields you want to change.
mutation {
updateEngagementEvent(id: "42", engagementEvent: {
title: "Updated Summit Title",
description: "Updated description.",
feeCents: 7500,
engagementEventSpeakersAttributes: [
{ id: "1", name: "Jane Doe Updated" },
{ id: "2", _destroy: true }
],
engagementEventDayActivitiesAttributes: [
{ id: "10", title: "Updated Keynote Title" },
{ id: "11", _destroy: true }
]
}) {
id
title
status
}
}
inReviewEngagementEventMove an engagement event from draft to in_review status. Records the current user and timestamp.
mutation {
inReviewEngagementEvent(id: "42") {
id
status
}
}
publishEngagementEventPublish an engagement event. The event must be in in_review status before it can be published.
mutation {
publishEngagementEvent(id: "42") {
id
status
}
}
eventApplicationsFetch a paginated list of event applications. Supports filtering by status, engagement event, person, and text search.
{
eventApplications(filters: {
q: "john",
statuses: [submitted, accepted],
engagementEventIds: ["42"],
personIds: ["100"]
}) {
data {
id
status
ticketId
additionalDetails
createdAt
updatedAt
engagementEvent { id title }
person { id fullName }
}
}
}
eventApplicationFetch a single event application by its ID.
{
eventApplication(id: "7") {
id
status
ticketId
additionalDetails
createdAt
updatedAt
engagementEvent { id title }
person { id fullName }
}
}
createEventApplicationApply to a published engagement event on behalf of the current user. Each user can only apply once per event.
mutation {
createEventApplication(eventApplication: {
engagementEventId: "42",
additionalDetails: "I am excited to attend this event!"
}) {
id
status
engagementEvent { id title }
person { id fullName }
}
}
updateEventApplicationUpdate an existing event application by ID (e.g. change additional details).
mutation {
updateEventApplication(id: "7", eventApplication: {
additionalDetails: "Updated details about my attendance."
}) {
id
additionalDetails
}
}
acceptEventApplicationAccept a submitted event application. If the event is free, the application automatically moves to attending and a ticket ID is generated.
mutation {
acceptEventApplication(id: "7") {
id
status
ticketId
}
}
rejectEventApplicationReject a submitted event application. The application must be in submitted status.
mutation {
rejectEventApplication(id: "7") {
id
status
}
}stats_for_programme {
approved_count
realized_count
completed_count
rank
}query OfficeStats {
officeStats(tag: "LC", programme_id: 7, direction: "incoming") {
rank
office {
name
}
approved_count
realized_count
completed_count
}
}
query TimelineEvents {
timelineEvents(
filters: {sort: created_at, sort_direction: desc, record_id: "31", record_type: OpportunityApplication}
pagination: {page: 1, per_page: 20}
) {
data {
id
created_at
event
display_name
associated_record {
... on PublicPerson {
id
public_name
profile_photo
permissions {
can_view_applications
}
}
... on PublicOpportunity {
id
title
permissions {
view_applications
}
}
}
}
paging {
total_pages
current_page
total_items
}
}
} opportunity_duration_type {
minimum_duration_for_office
} survey_sections {
name
sub_sections {
name
questions {
question_text
question_type
subquestions {
question_text
additional_details
}
}
}
}{
is_cached_response: null/true/false,
response: (analytics response with data),
cached_at: "2025-07-01T05:45:39.598Z"
}
mutation CreateSurvery(
$survey_uuid: String!
$responses: [SurveyResponseInput!]!
) {
surveyAnswer(survey_uuid: $survey_uuid, responses: $responses)
}
{
"survey_uuid": "4532e086-9e5e-46d7-ae2a-a8f6afe040f3",
"responses": [
{
"question_id": "1664",
"sequence_answers": [
"1666",
"1665",
"1664",
"1667"
]
}
]
} exchange_growth_survey_response {
id
completed_at
}
exchange_relevance_survey_response {
id
completed_at
}
exchange_leadership_survey_response {
id
completed_at
}mutation CreatePersonCVImport($cv: ImageInput!) {
createPersonCvImport(cv: $cv) {
id
}
}query PersonCVImport {
personCvImport(id: "2") {
id
completed_at
cv {
url
filename
}
failed_at
failure_reason
status
person {
id
email
}
}
}mutation CreateGlobalPartnerRequest($global_partner_request: GlobalPartnerRequestInput) {
createGlobalPartnerRequest(global_partner_request: $global_partner_request) {
id
email
company
name
phone_number
service_interests
}
}
variables:
{
"global_partner_request": {
"name": "some name2",
"email": "some email@commutatus.com",
"company": "my company",
"phone_number": "+919432342242",
"service_interests": [
"Employer Branding",
"Global Talent Acquisition"
]
}
}query AllGlobalPartnerRequest {
allGlobalPartnerRequests {
id
email
company
name
phone_number
service_interests
}
}
query AssignmentIndexQuery($id: ID!) {
lcAlignments(office_id: $id, ids: ["870", "3514", "3555"]) {
id
keywords
lc {
name
}
}
}query AllCampaigns {
campaigns(ids: ["1"]) {
id
}
}
{
"id": "57",
"programme_ids": [
7
],
"remarks": "Freezed"
}
frozen_programmes {
id
short_name
short_name_display
}query SurveyDetails($survey_uuid: String!) {
surveyResponseDetail(survey_uuid: $survey_uuid) {
id
survey_uuid
answers
completed_at
survey {
title
survey_questions(main_questions_only: true) {
id
question_text
position
subquestions {
id
position
question_text
}
standard { # for standard's
id
name
meta
}
leadership_value { # for lda's
id
name
meta
}
}
}
opportunity_application {
id
intial_lda_report {
survey_uuid
}
middle_lda_report {
survey_uuid
}
end_lda_report {
survey_uuid
}
youth_nps_response {
survey_uuid
}
youth_lps_response {
survey_uuid
}
standards_response {
survey_uuid
}
}
}
}
access_token: sometoken start_date: 2023-08-07 end_date: 2024-08-15 conversion_v3[office_id]: 1626 conversion_v3[campaign_filter]: 12 (optional)
{
"1626": {
"i_applied_count_to_accepted_count_7": 61.54,
"o_applied_count_to_accepted_count_7": 61.54,
"o_applied_count_to_accepted_count_9": 60.0,
"i_applied_count_to_accepted_count_8": 38.89,
"i_applied_count_to_accepted_count_9": 60.0,
"o_applied_count_to_accepted_count_8": 38.89,
"total_applied_count_to_accepted_count": 51.22,
"o_accepted_count_to_approved_count_7": 100.0,
"i_accepted_count_to_approved_count_8": 100.0,
"i_accepted_count_to_approved_count_9": 100.0,
"i_accepted_count_to_approved_count_7": 100.0,
"o_accepted_count_to_approved_count_9": 100.0,
"o_accepted_count_to_approved_count_8": 100.0,
"total_accepted_count_to_approved_count": 100.0,
"i_approved_count_to_realized_count_7": 50.0,
"i_approved_count_to_realized_count_8": 57.14,
"i_approved_count_to_realized_count_9": 33.33,
"o_approved_count_to_realized_count_8": 57.14,
"o_approved_count_to_realized_count_9": 33.33,
"o_approved_count_to_realized_count_7": 50.0,
"total_approved_count_to_realized_count": 47.62,
"i_applied_to_accepted_time_9": 0,
"i_applied_to_accepted_time_8": 0,
"i_applied_to_accepted_time_7": 0,
"o_applied_to_accepted_time_9": 0,
"o_applied_to_accepted_time_8": 0,
"o_applied_to_accepted_time_7": 0,
"total_applied_to_accepted_time": 0,
"i_accepted_to_approved_time_9": 0,
"i_accepted_to_approved_time_8": 0,
"i_accepted_to_approved_time_7": 0,
"o_accepted_to_approved_time_7": 0,
"o_accepted_to_approved_time_8": 0,
"o_accepted_to_approved_time_9": 0,
"total_accepted_to_approved_time": 0,
"i_approved_to_realized_time_8": 0,
"i_approved_to_realized_time_7": 0,
"i_approved_to_realized_time_9": 0,
"o_approved_to_realized_time_9": 0,
"o_approved_to_realized_time_7": 0,
"o_approved_to_realized_time_8": 0,
"total_approved_to_realized_time": 0,
"total_sign_up_to_applied_count": 13.79,
"total_sign_up_to_applied_time": 0
},
"489": {
"i_applied_count_to_accepted_count_8": 0.0,
"i_applied_count_to_accepted_count_9": 100.0,
"total_applied_count_to_accepted_count": 50.0,
"i_accepted_count_to_approved_count_9": 100.0,
"total_accepted_count_to_approved_count": 100.0,
"i_approved_count_to_realized_count_9": 0.0,
"total_approved_count_to_realized_count": 0.0,
"total_applied_to_accepted_time": 0,
"total_accepted_to_approved_time": 0,
"total_approved_to_realized_time": 0,
"total_sign_up_to_applied_count": null
},
"506": {
"i_applied_count_to_accepted_count_9": 100.0,
"total_applied_count_to_accepted_count": 100.0,
"i_accepted_count_to_approved_count_9": 100.0,
"total_accepted_count_to_approved_count": 100.0,
"i_approved_count_to_realized_count_9": 0.0,
"total_approved_count_to_realized_count": 0.0,
"total_applied_to_accepted_time": 0,
"total_accepted_to_approved_time": 0,
"total_approved_to_realized_time": 0,
"total_sign_up_to_applied_count": 0.0
}
}NOTE: sign up to applied will only have total count and total days, programme id aggregation is not possible for it.
"cover_photo": {
"url": "https://s3.eu-west-1.amazonaws.com/gis-development/6s0cxvfp0pbcj9sd2odj13cxznok",
"filename": "default-cover-photo.jpg",
"is_default": true
}{ "person": {
"alternate_email": "test@commutatus.com"
}
}alternate_email
performance_v3[is_aiesecer]
histogram[is_aiesecer]
e_to_e_v1[is_aiesecer]
standards_e2e[is_aiesecer]
conversion_v2[is_aiesecer]
is_aiesecer
is_aiesecer
query CurrentPerson {
currentPerson {
id
full_name
email
expa_banners {
id
office {
id
name
}
role_name
content_url
image_url
start_date
end_date
status
}
}
}
"i_accepted_to_approved_time_9": {
"meta": {},
"doc_count": 6,
"children": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": 489,
"doc_count": 1,
"approval_avg": {
"value": 1723094976000.0,
"value_as_string": "2024-08-08T05:29:36.000Z"
},
"created_avg": {
"value": 1723094610552.0,
"value_as_string": "2024-08-08T05:23:30.552Z"
}
},
{
"key": 506,
"doc_count": 1,
"approval_avg": {
"value": 1723094976000.0,
"value_as_string": "2024-08-08T05:29:36.000Z"
},
"created_avg": {
"value": 1723094609765.0,
"value_as_string": "2024-08-08T05:23:29.765Z"
}
},
{
"key": 567,
"doc_count": 1,
"approval_avg": {
"value": 1723094977000.0,
"value_as_string": "2024-08-08T05:29:37.000Z"
},
"created_avg": {
"value": 1723094610358.0,
"value_as_string": "2024-08-08T05:23:30.358Z"
}
},
{
"key": 1554,
"doc_count": 1,
"approval_avg": {
"value": 1723094959000.0,
"value_as_string": "2024-08-08T05:29:19.000Z"
},
"created_avg": {
"value": 1723094610772.0,
"value_as_string": "2024-08-08T05:23:30.772Z"
}
},
{
"key": 1577,
"doc_count": 1,
"approval_avg": {
"value": 1723094959000.0,
"value_as_string": "2024-08-08T05:29:19.000Z"
},
"created_avg": {
"value": 1723094610715.0,
"value_as_string": "2024-08-08T05:23:30.715Z"
}
},
{
"key": 1610,
"doc_count": 1,
"approval_avg": {
"value": 1723094976000.0,
"value_as_string": "2024-08-08T05:29:36.000Z"
},
"created_avg": {
"value": 1723094569031.0,
"value_as_string": "2024-08-08T05:22:49.031Z"
}
}
]
},
"approval_avg": {
"value": 1723094970500.0,
"value_as_string": "2024-08-08T05:29:30.500Z"
},
"created_avg": {
"value": 1723094603532.1667,
"value_as_string": "2024-08-08T05:23:23.532Z"
}
},
"o_completed_count_9": {
"meta": {},
"doc_count": 1,
"children": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": 1709,
"doc_count": 1,
"applicants": {
"value": 1
}
}
]
},
"applicants": {
"value": 1
}
}
"o_finished_count_7": {
"meta": {},
"doc_count": 4,
"children": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": 1552,
"doc_count": 1,
"applicants": {
"value": 1
}
},
{
"key": 1570,
"doc_count": 1,
"applicants": {
"value": 1
}
},
{
"key": 1588,
"doc_count": 1,
"applicants": {
"value": 1
}
},
{
"key": 1617,
"doc_count": 1,
"applicants": {
"value": 1
}
}
]
},
"applicants": {
"value": 4
}
}, "approval_avg": {
"value": 1723094970500.0,
"value_as_string": "2024-08-08T05:29:30.500Z"
},
"created_avg": {
"value": 1723094603532.1667,
"value_as_string": "2024-08-08T05:23:23.532Z"
}"buckets": [
{
"key": 1552,
"doc_count": 1,
"applicants": {
"value": 1
}
},response example:
"applications_status_count": {
"matched": 1,
"approved": 1,
"withdrawn": 4,
"rejected": 19,
"open": 20
},query GetMyOpportunities($page: Int, $per_page: Int, $q: String, $filters: OpportunityFilter) {
myOpportunities(page: $page, per_page: $per_page, q: $q, filters: $filters) {
paging {
total_items
total_pages
current_page
__typename
}
data {
applicants_count
applications_close_date
applications_status_count
id
title
__typename
}
__typename
}
}
query GetPerson {
getPerson(id: "2") {
id
full_name
member_positions {
has_access_to_people_data
}
}
}mutation CreateMemberPosition {
createMemberPosition(member_position: {person_email: "mahaveer@commutatus.com", term_id: 22039, role_id: 21755, office_id: 54, title: "Testing", has_access_to_people_data: true}) {
id
has_access_to_people_data
}
}query LDASurvey {
survey(survey_type: "intial_lda") {
id
survey_questions {
id
is_main_question
is_mandatory
position
question_type
question_text
subquestions {
id
position
question_text
question_type
}
sanitize_meta
leadership_value {
id
name
meta
}
}
}
}query LDASurveyReport {
ldaReport(survey_uuid: "6fc50732-d9ae-47dc-a79b-4d821a89eaec") {
id
associated_surveys {
survey {
survey_type
}
survey_uuid
report {
score
}
}
can_fill
survey {
id
title
}
report {
leadership_value {
name
meta
}
score
}
survey_uuid
completed_at
opportunity_application {
id
opportunity {
title
}
person {
full_name
}
}
}
}query OpportunitApplication {
getApplication(id: 42) {
id
intial_lda_report {
id
completed_at
can_fill
survey_uuid
}
middle_lda_report {
id
completed_at
can_fill
survey_uuid
}
end_lda_report {
id
completed_at
can_fill
survey_uuid
}
}
}
mutation CreateSurvery {
surveyAnswer(
survey_uuid: "73c889bd-a677-4c83-8f6b-a46589ab2199"
responses: [
{ question_id: "365", answer: "1" }
{ question_id: "371", answer: "3" }
{ question_id: "377", answer: "2" }
{ question_id: "383", answer: "5" }
{ question_id: "389", answer: "4" }
{ question_id: "395", answer: "4" }
]
)
}
branchEmployees {
id
email
}mutation DeleteOpportunity {
deleteOpportunity(id: "38")
}query Opportunity {
opportunity(id: "35") {
id
permissions {
can_delete
}
}
}query Opportunity {
opportunity(id: "35") {
id
weekly_activities(public_facing_only: true) {
id
is_mandatory
is_active
}
}
}mutation RemoveOptionalWeekActivities {
removeOptionalWeekActivities(
opportunity_id: "35"
weekly_activities_ids: ["1", "10"]
) {
activity
id
is_active
is_mandatory
is_templated
week
}
}mutation AcceptExpaUsagePolicy {
acceptExpaUsagePolicy {
id
accepted_expa_usage_policy_at
email
}
}query CurrentPerson {
currentPerson {
accepted_expa_usage_policy_at
}
}mutation AcceptEmailUsagePolicy {
acceptEmailUsagePolicy {
id
accepted_email_usage_policy_at
email
}
}query CurrentPerson {
currentPerson {
accepted_email_usage_policy_at
}
}mutation CreateEmailRequest {
createEmailRequest(email: "mahaveer3@commutatus.com") {
approved_at
created_at
email
expired_at
id
rejected_at
status
updated_at
permissions {
can_approve
can_reject
}
member {
full_name
home_lc {
id
name
}
id
}
}
}mutation ApproveEmailRequest {
approveEmailRequest(id: "9") {
approved_at
approved_by {
id
full_name
}
}
}
query EmailRequests {
emailRequests(pagination: { per_page: 10, page: 1 }) {
data {
approved_at
created_at
email
expired_at
id
rejected_at
status
updated_at
approved_by {
id
full_name
}
rejected_by {
id
full_name
}
permissions {
can_approve
can_reject
}
member {
full_name
home_lc {
id
name
}
id
}
}
paging {
current_page
total_items
total_pages
}
}
}emailRequests(pagination: { per_page: 10, page: 1 }, filters: { mc_id: "79" })query Committee {
committees(filters: { parent: 1630 }) {
data {
id
name
}
}
}https://analytics.api.aiesec.org/v2/surveys/analytics.json?access_token=<access_token>&start_date=<start_date>&end_date=<end_date>&entity_id=<office_id>&entity_type=<person/opportunity>&programme=<7,8,9>
query ContentSections {
contentSections(sort_direction: asc) {
id
redirect_url
content_image {
id
filesize
filename
url
}
position
}
}{
"data": {
"contentSections": [
{
"id": "5",
"redirect_url": "https://www.pixelstalk.net/wp-content/uploads/images6/Funny-Anya-Forger-Wallpaper-HD.jpg",
"content_image": null,
"position": 1
},
{
"id": "8",
"redirect_url": "https://www.pixelstalk.net/wp-content/uploads/images6/Funny-Anya-Forger-Wallpaper-HD.jpg",
"content_image": null,
"position": 2
},
{
"id": "7",
"redirect_url": "https://www.pixelstalk.net/wp-content/uploads/images6/Funny-Anya-Forger-Wallpaper-HD.jpg",
"content_image": null,
"position": 3
}
]
}
}generateEmail API.
validateAiesecEmailUsername(username: "aisecemail"){
aiesec_email,
is_valid
}"validateAiesecEmailUsername": {
"aiesec_email": "aisecemail@aiesec.net",
"is_valid": true
}
generateEmail(username: "aisecemail")
{
"data": {
"generateEmail": "Request has been queued and will be sent to the email address"
}
}{
"analytics": {
"roles": {
"after_key": {
"role": 11647,
"office": "1585"
},
"buckets": [
{
"key": {
"role": 11645,
"office": "1585"
},
"doc_count": 2
},
{
"key": {
"role": 11646,
"office": "1585"
},
"doc_count": 22
},
{
"key": {
"role": 11647,
"office": "1585"
},
"doc_count": 44
}
]
},
"departments": {
"doc_count": 227,
"deparments": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": 11627,
"doc_count": 20
},
{
"key": 11628,
"doc_count": 20
},
{
"key": 11629,
"doc_count": 20
},
{
"key": 11630,
"doc_count": 20
},
{
"key": 11631,
"doc_count": 20
},
{
"key": 11632,
"doc_count": 20
},
{
"key": 11633,
"doc_count": 20
},
{
"key": 11634,
"doc_count": 20
},
{
"key": 11635,
"doc_count": 20
},
{
"key": 11636,
"doc_count": 20
},
{
"key": 11637,
"doc_count": 20
},
{
"key": 11638,
"doc_count": 7
}
]
}
}
}
}https://analytics.api.aiesec.org/v2/applications/analyze.json?access_token=<access_token>&start_date=<start_date>&end_date=<end_date>&recruitment[office_id]=<office_id>&recruitment[academic_level_ids][]=<academic_level_id_1>&recruitment[academic_level_ids][]=<academic_level_id_2>&recruitment[employment_status_ids][]=<employment_status_id_1>&recruitment[employment_status_ids][]=<employment_status_id_2>&recruitment[motivation_reason_ids][]=<motivation_reason_id_1>&recruitment[motivation_reason_ids][]=<motivation_reason_id_2>&recruitment[created_via]=<YOP_or_EXPA>&recruitment[referral_type_ids][]=<referral_type_id_1>&recruitment[referral_type_ids][]=<referral_type_id_2>&backgrounds[]=<background_id_1>&backgrounds[]=<background_id_2>
{
"analytics": {
"contacted_count": {
"meta": {
},
"doc_count": 4
},
"accepted_count": {
"meta": {
},
"doc_count": 1
},
"in_process_count": {
"meta": {
},
"doc_count": 3
},
"rejected_count": {
"meta": {
},
"doc_count": 2
},
"applied_count": {
"meta": {
},
"doc_count": 7
}
}
}query {
opportunities(filters: {q: "Test", sort: created_at, sort_direction: desc}, pagination: {page: 2, per_page: 10}) {
paging {
total_items,
current_page,
total_pages
}
data {
id,
title,
created_at,
__typename
}
}
}query {
allConstants(type_id: "skill", filters: {sort: position, sort_direction: desc}) {
id,
name,
position,
__typename
}
}mutation{
updateOpportunity(id: 14620, opportunity: {
remote_experience_details: {
remote_experience_duration: "<div>Total duration will be of 6 months</div>",
remote_experience_salary: "<div>$200 and $300 per month for remote and on-field work resp.</div>",
remote_experience_additional_details: "<ol><li>Minimum of 2 months of on-field work is mandatory</li><li>Have a bank account which accepts international payments</li></ol>"
}
}) {
id
remote_opportunity
remote_experience_duration
remote_experience_salary
remote_experience_additional_details
}
}mutation {
memberLeadChecklistResponseCreate(id: 1, survey_id: 10,answers: [{
question_id: 720,
answer: "true"
},
{
question_id: 718,
answer: "false"
}
]
) {
id
answers
survey {
id
survey_questions {
id
question_text
question_type
}
}
}
}query{
getChecklistQuestion(id: 1){
id
question_text
question_type
description
}
}query{
allConstants(type_id: "role"){
id
name
}
}mutation {
memberPositionCreate(member_position: {function_id: 11638, role_id: 11648, office_id: 630, start_date: "01-02-2021", end_date: "31-07-2021", reports_to_position: 12, invite_person: {first_name: "super", last_name: "man", home_lc_id: 630, email: "sajin+1023@commutatus.com"}}) {
id
}
}mutation {
memberPositionUpdate(id: 1, member_position: {role_id: 11645, office_id: 1585}) {
id
}
}mutation {
memberPositionTerminate(id: 1, exit_reason_id: 11667, other_exit_reason: "Just for fun") {
id
status
exit_reason {
name
}
other_exit_reason
terminated_at
terminated_by {
id
}
}
}query {
memberPosition(id: 1) {
id
}
}query {
memberPositions(filters: {status: ["terminated"]}) {
paging {
total_items
}
data {
id
}
}
}query {
memberPositionsDownload(columns: ["position_id", "position_title", "position_skills", "position_gender", "position_no_of_ixps", "position_ixp_products", "position_is_ixp", "position_languages", "position_status", "position_start_date", "position_backgrounds", "position_date_of_birth", "position_end_date", "position_office", "position_phone", "position_exit_reason", "position_role", "position_department", "position_study_level", "position_reports_to", "position_full_name", "position_email"])
}mutation{
opportunityMarkRemote(id: 14620, remote_experience: {remote_experience_duration: "<div>Total duration will be of 6 months</div>", remote_experience_salary: "<div>$200 and $300 per month for remote and on-field work resp.</div>", remote_experience_additional_details: "<ol><li>Minimum of 2 months of on-field work is mandatory</li><li>Have a bank account which accepts international payments</li></ol>"}){
id
remote_opportunity
remote_experience_duration
remote_experience_salary
remote_experience_additional_details
}
} mutation{
fileImport(file_input: {import_type: "employee_lead",
import_file: {
filename: "employee_lead.csv",
content: "data:file/csv;base64,77u/RW1haWwsZmlyc3RfbmFtZSxob21lX2xjX2lkCmJhbGFqaSsxMjJAY29tbXV0YXR1cy5jb20sQmFsYSwyMjQyCmJhbGFqaSsxMjNAY29tbXV0YXR1cy5jb20sQmFsYSAxMjMsMjI0Mgo="
}
}
)
}
