Skip to main content

Audience:

Developers

Track an administrator change using the API

Track and update an ongoing account administrator change request programmatically. The request form itself is Swan-hosted; these operations are public and don't require the requester to be an account member.

Query

Use the publicAccountAdminChange query to retrieve the current state of an account administrator change by its ID.

Open in API Explorer
query publicAccountAdminChange($accountAdminChangeId: ID!) {
publicAccountAdminChange(accountAdminChangeId: $accountAdminChangeId) {
... on AccountAdminChange {
id
status
reason
admin {
firstName
lastName
email
}
}
... on NonOngoingAccountAdminChange {
id
status
}
}
}

The query returns one of two types:

  • AccountAdminChange: the full object with all fields, returned when the status is Ongoing.
  • NonOngoingAccountAdminChange: a limited object containing only id and status, returned for all other statuses. This protects personal information after the form is submitted.

Mutations

MutationPurpose
publicUpdateAccountAdminChangeUpdates the account administrator change with new information (reason, admin details, requester details). Only works when the status is Ongoing.
publicFinalizeAccountAdminChangeSubmits the completed form for review. Transitions the status from Ongoing to Pending. Requires all fields and documents to be provided.

Rejection types

RejectionMeaning
AccountAdminChangeNotFoundRejectionThe account administrator change ID doesn't exist.
AccountAdminChangeStatusNotEligibleRejectionThe current status doesn't allow this operation.
AccountAdminChangeMissingInformationRejectionRequired fields are missing from the request.
AccountAdminChangeMissingDocumentsRejectionRequired supporting documents haven't been uploaded.
info

The supporting document collection associated with an account administrator change uses the type AccountAdminChange. Upload documents to this collection using the supporting documents flow.