Account

circle-exclamation

Account

account_created

Definition: The event is emitted anytime an account is created by an end user or API request.

Trigger: Triggered anytime a new account is created.

Payload Example:

{
  "metadata": {
    "job_id": "1020020528469291",
    "job_tag": "Account.api_create",
    "producer": "canvas",
    "root_account_id": "21070000000000001",
    "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",
    "root_account_lti_guid": "7db438071375c02373713c12c73869ff2f470b68.example.instructure.com",
    "event_name": "account_created",
    "event_time": "2024-11-01T18:42:07.091Z"
  },
  "body": {
    "name": "Account Name",
    "account_id": 3,
    "root_account_id": 1,
    "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",
    "parent_account_id": 2,
    "external_status": "paid",
    "workflow_state": "active",
    "domain": "example.instructure.com",
    "default_time_zone": "America/Chicago",
    "default_locale": "en"
  }
}

Event Body Schema

Field
Description

name

The name of the account.

account_id

The Canvas id of the account.

root_account_id

The id of the Canvas root account the created account belongs to.

root_account_uuid

The uuid of the Canvas root account the created account belongs to.

parent_account_id

The id of the Canvas parent account of the created account.

external_status

The external status of the account.

workflow_state

The workflow state of the account.

domain

The Canvas domain of the root account of the account.

default_time_zone

The default time zone of the account.

default_locale

The default locale of the account.

account_notification_created

Definition: The event is emitted anytime an account level notification is created by and end user or API request.

Trigger: Triggered anytime a new account notification is created.

Payload Example:

Event Body Schema

Field
Description

account_notification_id

The Canvas id of the account notification.

end_at

When to expire the notification.

icon

The icon to display with the message. Defaults to warning.

message

The message to be sent in the notification. NOTE: This field will be truncated to only include the first 8192 characters.

start_at

When to send out the notification.

subject

The subject of the notification. NOTE: This field will be truncated to only include the first 8192 characters.

account_updated

Definition: The event is emitted anytime an account is updated by an end user or API request.

Trigger: Triggered anytime an existing account is updated.

Payload Example:

Event Body Schema

Field
Description

name

The name of the account.

account_id

The Canvas id of the account.

root_account_id

The id of the Canvas root account the created account belongs to.

root_account_uuid

The uuid of the Canvas root account the created account belongs to.

parent_account_id

The id of the Canvas parent account of the created account.

external_status

The external status of the account.

workflow_state

The workflow state of the account.

domain

The Canvas domain of the root account of the account.

default_time_zone

The default time zone of the account.

default_locale

The default locale of the account.

Note: Timestamps will be in ISO8601 format, including an offset. Be sure to take that into account when parsing, since it’s unspecified which offset timestamps will use, and the offset may even change between different timestamps within a single event.


This documentation is generated directly from the Canvas LMS source code, available on Githubarrow-up-right.

Last updated

Was this helpful?