latestSwagger 2.02026-08-101561322.2 MB

3e4029d19684

Lists

Reset list members to the specified contacts

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Lists/clearAndAssignContactsToList" target="_blank">Try in sandbox</a><br>

post/api/v2/lists/{id}/contacts

Path parameters

idinteger required

Request body

contactsstring required

Contact ID(s), separated by a comma or "all" to add all contacts belonging to the current user.

Example request

{
  "contacts": "1,2"
}

Response

Returned when successful.

idinteger required

Resource ID.

hrefstring required

A link to this resource. If you want to fetch it, just GET this address.

Example response

{
  "id": 515,
  "href": "/api/v2/entity_name/1"
}