Notification Preferences

Notification Preferences Documentation

Notification Preference [LIST]

Notification Preference [LIST]

Request

Endpoint

GET /api/v2/account_lists/a04b43b9-32c6-423a-a3ec-8cd68087bce7/notification_preferences
Content-Type: application/vnd.api+json

Body

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": [
    {
      "id": "3b9f8f43-9b1d-4b4a-99e3-50894e98da6f",
      "type": "notification_preferences",
      "attributes": {
        "app": true,
        "created_at": "2022-01-12T17:18:39Z",
        "email": true,
        "task": true,
        "updated_at": "2022-01-12T17:18:39Z",
        "updated_in_db_at": "2022-01-12T17:18:39Z"
      },
      "relationships": {
        "notification_type": {
          "data": {
            "id": "a0750706-dd57-4c7f-8b17-3b5aae3273d8",
            "type": "notification_type"
          }
        }
      }
    },
    {
      "id": "a42725b7-a9cf-47bd-9b72-b380c585253d",
      "type": "notification_preferences",
      "attributes": {
        "app": true,
        "created_at": "2022-01-12T17:18:39Z",
        "email": true,
        "task": true,
        "updated_at": "2022-01-12T17:18:39Z",
        "updated_in_db_at": "2022-01-12T17:18:39Z"
      },
      "relationships": {
        "notification_type": {
          "data": {
            "id": "3e240c14-b9da-4f03-ae20-49fe85d891d6",
            "type": "notification_type"
          }
        }
      }
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "per_page": 25,
      "total_count": 2,
      "total_pages": 1
    },
    "sort": null,
    "filter": {
    }
  }
}

Fields

data

Type [Notification Preference]

Description An array of Notification Preferences

Notification Preference [POST]

Notification Preference [POST]

Request

Endpoint

Body

Parameters

Attributes

app

Type boolean

Description Indicates when a notification is created with the related notification type if it should send an in app notification to the user

Required No

created_at

Type date

Description The timestamp of when this resource was created

Required No

email

Type boolean

Description Indicates when a notification is created with the related notification type if it should send an email to the user

Required No

task

Type boolean

Description Indicates when a notification is created with the related notification type if it should create a task

Required No

updated_at

Type date

Description The timestamp of when this resource was last updated

Required No

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Required No

Relationships

notification_type.data

Type Notification Type

Description The notification type this preference is for

Required No

Response

Headers

Body

Fields

Attributes

app

Type boolean

Description Indicates when a notification is created with the related notification type if it should send an in app notification to the user

created_at

Type date

Description The timestamp of when this resource was created

email

Type boolean

Description Indicates when a notification is created with the related notification type if it should send an email to the user

task

Type boolean

Description Indicates when a notification is created with the related notification type if it should create a task

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

notification_type.data

Type Notification Type

Description The notification type this preference is for

Notification Preference [GET]

Notification Preference [GET]

Request

Endpoint

Body

Response

Headers

Body

Fields

Attributes

app

Type boolean

Description Indicates when a notification is created with the related notification type if it should send an in app notification to the user

created_at

Type date

Description The timestamp of when this resource was created

email

Type boolean

Description Indicates when a notification is created with the related notification type if it should send an email to the user

task

Type boolean

Description Indicates when a notification is created with the related notification type if it should create a task

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

notification_type.data

Type Notification Type

Description The notification type this preference is for

Notification Preference [PUT]

Notification Preference [PUT]

Request

Endpoint

Body

Parameters

Attributes

app

Type boolean

Description Indicates when a notification is created with the related notification type if it should send an in app notification to the user

Required No

created_at

Type date

Description The timestamp of when this resource was created

Required No

email

Type boolean

Description Indicates when a notification is created with the related notification type if it should send an email to the user

Required No

overwrite

Type boolean

Description Only used for updating a record where you want to ignore the server's ' 'updated_in_db_at value and force overwrite the values for the record. ' 'Must be true to work.

Required No

task

Type boolean

Description Indicates when a notification is created with the related notification type if it should create a task

Required No

updated_at

Type date

Description The timestamp of when this resource was last updated

Required No

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Required No

Relationships

notification_type.data

Type Notification Type

Description The notification type this preference is for

Required No

Response

Headers

Body

Fields

Attributes

app

Type boolean

Description Indicates when a notification is created with the related notification type if it should send an in app notification to the user

created_at

Type date

Description The timestamp of when this resource was created

email

Type boolean

Description Indicates when a notification is created with the related notification type if it should send an email to the user

task

Type boolean

Description Indicates when a notification is created with the related notification type if it should create a task

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

notification_type.data

Type Notification Type

Description The notification type this preference is for

Notification Preference [DELETE]

Notification Preference [DELETE]

Request

Endpoint

Body

Response

Headers

Body

Last updated