Bulk

Bulk Documentation

Tags [BULK DELETE]

Tags [BULK DELETE]

Request

Endpoint

DELETE /api/v2/contacts/tags/bulk
Content-Type: application/vnd.api+json

Body

{
  "data": [
    {
      "data": {
        "type": "tags",
        "attributes": {
          "name": "tag_one"
        }
      }
    },
    {
      "data": {
        "type": "tags",
        "attributes": {
          "name": "tag_two"
        }
      }
    }
  ],
  "filter": {
    "contact_ids": "b24238ac-a9b8-4272-b830-1a37c285c01a,6c27bd65-e948-42bf-81a6-8ccdec2c477c"
  }
}

Parameters

Filters

account_list_id

Type ID string

Description The ID of an Account List to scope the tasks to

Required No

task_ids

Type string (comma delimited IDs)

Description A comma delimited list of Task IDs to remove the Tag from. If ommited the Tag will be removed from all Tasks.

Required No

Attributes

name

Type string

Description The name of the Tag to be deleted

Required No

Response

Headers

204 No Content

Body

Tags [BULK POST]

Tags [BULK POST]

Request

Endpoint

POST /api/v2/contacts/tags/bulk
Content-Type: application/vnd.api+json

Body

{
  "data": [
    {
      "data": {
        "type": "tags",
        "attributes": {
          "name": "tag_one"
        }
      }
    },
    {
      "data": {
        "type": "tags",
        "attributes": {
          "name": "tag_two"
        }
      }
    }
  ],
  "filter": {
    "contact_ids": "120403e0-ed35-4d8e-850c-775a57ac28bc,dd667931-7789-4c3b-bfa7-12e5eb475389"
  }
}

Parameters

Filters

account_list_id

Type ID string

Description The ID of an Account List to scope the tasks to

Required No

task_ids

Type string (comma delimited IDs)

Description A comma delimited list of Task IDs to add the Tag to. If ommited the Tag will be added to all Tasks.

Required No

Attributes

name

Type string

Description The name of the Tag to be added

Required No

Response

Headers

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

Body

[
  {
    "data": {
      "id": "120403e0-ed35-4d8e-850c-775a57ac28bc",
      "type": "contacts",
      "attributes": {
        "avatar": "https://mpdx.org/images/avatar.png",
        "church_name": null,
        "created_at": "2021-11-23T14:37:37Z",
        "deceased": false,
        "direct_deposit": false,
        "envelope_greeting": "Cindi Reilly",
        "greeting": "",
        "last_activity": null,
        "last_appointment": null,
        "last_donation": null,
        "last_letter": null,
        "last_phone_call": null,
        "last_pre_call": null,
        "last_thank": null,
        "late_at": "2021-11-19",
        "likely_to_give": null,
        "locale": "en",
        "magazine": false,
        "missionary_pages_banner": false,
        "name": "Reilly, Cindi",
        "next_ask": null,
        "no_appeals": null,
        "no_gift_aid": null,
        "notes": "Test Note.",
        "notes_saved_at": "2021-11-23T14:37:37Z",
        "pledge_amount": "100.0",
        "pledge_currency": "USD",
        "pledge_currency_symbol": "$",
        "pledge_frequency": "1",
        "pledge_received": false,
        "pledge_start_date": "2021-10-19",
        "preferred_contact_method": null,
        "relationship_code": null,
        "send_newsletter": null,
        "source": "MPDX",
        "square_avatar": "https://mpdx.org/images/avatar.png",
        "starred_at": null,
        "status": "Partner - Financial",
        "status_valid": null,
        "suggested_changes": {
        },
        "tag_list": [
          "tag_one",
          "tag_two"
        ],
        "timezone": null,
        "uncompleted_tasks_count": 0,
        "updated_at": "2021-11-23T14:37:37Z",
        "updated_in_db_at": "2021-11-23T14:37:37Z",
        "website": "http://bernier-beier.io/misti.cole"
      },
      "relationships": {
        "account_list": {
          "data": {
            "id": "5114f67e-9106-456b-a296-9177112ae04f",
            "type": "account_lists"
          }
        },
        "user": {
          "data": null
        },
        "addresses": {
          "data": [

          ]
        },
        "appeal_contacts": {
          "data": [

          ]
        },
        "appeals": {
          "data": [

          ]
        },
        "contact_referrals_by_me": {
          "data": [

          ]
        },
        "contact_referrals_to_me": {
          "data": [

          ]
        },
        "contacts_referred_by_me": {
          "data": [

          ]
        },
        "contacts_that_referred_me": {
          "data": [

          ]
        },
        "donor_accounts": {
          "data": [

          ]
        },
        "excluded_appeal_contacts": {
          "data": [

          ]
        },
        "last_six_donations": {
          "data": [

          ]
        },
        "people": {
          "data": [

          ]
        },
        "pledges": {
          "data": [

          ]
        },
        "tasks": {
          "data": [

          ]
        },
        "primary_person": {
          "data": null
        },
        "primary_or_first_person": {
          "data": {
            "type": "people"
          }
        },
        "spouse": {
          "data": null
        }
      }
    }
  },
  {
    "data": {
      "id": "dd667931-7789-4c3b-bfa7-12e5eb475389",
      "type": "contacts",
      "attributes": {
        "avatar": "https://mpdx.org/images/avatar.png",
        "church_name": null,
        "created_at": "2021-11-23T14:37:37Z",
        "deceased": false,
        "direct_deposit": false,
        "envelope_greeting": "Jacklyn Hammes",
        "greeting": "",
        "last_activity": null,
        "last_appointment": null,
        "last_donation": null,
        "last_letter": null,
        "last_phone_call": null,
        "last_pre_call": null,
        "last_thank": null,
        "late_at": "2021-11-19",
        "likely_to_give": null,
        "locale": "en",
        "magazine": false,
        "missionary_pages_banner": false,
        "name": "Hammes, Jacklyn",
        "next_ask": null,
        "no_appeals": null,
        "no_gift_aid": null,
        "notes": "Test Note.",
        "notes_saved_at": "2021-11-23T14:37:37Z",
        "pledge_amount": "100.0",
        "pledge_currency": "USD",
        "pledge_currency_symbol": "$",
        "pledge_frequency": "1",
        "pledge_received": false,
        "pledge_start_date": "2021-10-19",
        "preferred_contact_method": null,
        "relationship_code": null,
        "send_newsletter": null,
        "source": "MPDX",
        "square_avatar": "https://mpdx.org/images/avatar.png",
        "starred_at": null,
        "status": "Partner - Financial",
        "status_valid": null,
        "suggested_changes": {
        },
        "tag_list": [
          "tag_one",
          "tag_three",
          "tag_two"
        ],
        "timezone": null,
        "uncompleted_tasks_count": 0,
        "updated_at": "2021-11-23T14:37:37Z",
        "updated_in_db_at": "2021-11-23T14:37:37Z",
        "website": "http://davis.net/kirby_grimes"
      },
      "relationships": {
        "account_list": {
          "data": {
            "id": "5114f67e-9106-456b-a296-9177112ae04f",
            "type": "account_lists"
          }
        },
        "user": {
          "data": null
        },
        "addresses": {
          "data": [

          ]
        },
        "appeal_contacts": {
          "data": [

          ]
        },
        "appeals": {
          "data": [

          ]
        },
        "contact_referrals_by_me": {
          "data": [

          ]
        },
        "contact_referrals_to_me": {
          "data": [

          ]
        },
        "contacts_referred_by_me": {
          "data": [

          ]
        },
        "contacts_that_referred_me": {
          "data": [

          ]
        },
        "donor_accounts": {
          "data": [

          ]
        },
        "excluded_appeal_contacts": {
          "data": [

          ]
        },
        "last_six_donations": {
          "data": [

          ]
        },
        "people": {
          "data": [

          ]
        },
        "pledges": {
          "data": [

          ]
        },
        "tasks": {
          "data": [

          ]
        },
        "primary_person": {
          "data": null
        },
        "primary_or_first_person": {
          "data": {
            "type": "people"
          }
        },
        "spouse": {
          "data": null
        }
      }
    }
  }
]

Fields

Attributes

created_at

Type date

Description The timestamp of when this resource was created

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.

Last updated