Contact Update
Update a single contact, matching on CRM ID, phone, or AdmitHub ID
Request
- Base URL: https://api.mainstay.com
- URL: https://api.mainstay.com/contacts/{id}/
- Auth: API key in header Authorization
Path parameters
CRM ID, phone, or AdmitHub ID of contact <ul><li>AdmitHub ID can be found in the URL when viewing a single contact's page in Mascot</li><ul><li>https://mascot.admithub.com/contacts/admithub-contact-id</li></ul><li>If using phone as path parameter, it must be exactly 10 digits with no spaces or non-numerical characters</li></ul>
Query parameters
Return all contacts with given texting status. <br />Available options: <code>opted-in</code>, <code>opted-out</code>, <code>temp-pause</code>
Return all contacts with given value(s) in specified custom field(s). <br /><br /><strong>Query Notes</strong><ul><li>The query parameter for <em>all</em> custom fields is <code>custom</code>.</li><li>The value of <code>custom</code> in the URL is: <code>field name|field value</code></li><ul><li>The above translates to: custom field, 'field name', equals 'field value'</li></ul><li>To view all custom fields, send a GET request to https://api.admithub.com/custom_fields or view <a href='https://mascot.admithub.com/contacts/fields'>this page</a>. </li><li>To view all existing values in a field, send a GET request to https://api.admithub.com/custom_values/?field=your-chosen-field. </li><li>To include multiple possible values for a single field (i.e. field equals this OR that), separate values with a comma (<code>,</code> wtih no space). </li><li>To include multiple possible fields (i.e. field #1 equals this AND field #2 equals that), separate multiple <code>custom</code> conditions with an ampersand (<code>&</code> with no space). </li><li>Fields and values with spaces are allowed, but they must be url-encoded, i.e. Field A -> Field%20A </li></ul><strong>Format & Example</strong><ul><li>Format: <code>custom=[field1]|[value1],[value2]&custom=[field2]|[value3],[value4]</code> </li><li>Example: <code>custom=Graduation%20Year|2019,2018&custom=T-shirt%20Size|X%20LG</code></li></ul>
Return all contacts with given can_text value. <ul><li>Possible true values: True, true, 1</li><li>Possible false values: False, false, 0</li></ul>
If <u>true</u>, include test contacts. By default, these contacts are excluded from results.<ul><li>Possible true values: True, true, 1</li><li>Possible false values: False, false, 0</li><li>Default value: False</li><ul>
If <u>true</u>, include contacts with a permittedUser status of False. These are typically contacts who belonged to closed cohorts. By default, these contacts are excluded from results.<ul><li>Possible true values: True, true, 1</li><li>Possible false values: False, false, 0</li><li>Default value: False</li><ul>
Return all contacts last modified on or since this date. <br />Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Return all contacts last modified before this date. <br />Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Request body
Response
Created
Changes
No recorded changes to this operation across all 1 revision of this API.