#Move contacts to list

Move one or more contacts from one contact list to another using phone numbers.

#Method

POST

#Path

/contacts/move-to-list

#Body parameters

NameValueData typeRequired?
source_list_idSource contact list IDIntegerYes
dest_list_idDestination contact list IDIntegerYes
phone_numbersArray of the phone numbers of the contacts to be moved (e.g. ["16317471111"])Array of stringYes

#Response

#HTTP status codes

CodeRemarks
200Request was successful.
400Validation error or request body was incorrectly formatted.
401Authentication failed. Check apikey header.
404Requested API endpoint not found.
429The rate limit has been reached.
500-511There was a problem processing the request on our server. Try again later.

#Response object

NameValueRemarks
statussuccess or error-
errorsArray of object { msg: [error detail] }Only present when status is error.

#Code sample

curl --location --request POST 'https://api.sociocs.com/contacts/move-to-list' \ --header 'apikey: your_api_key' --header 'Content-Type: application/json' \ --data-raw '{ "source_list_id": 10001, "dest_list_id": 10002, "phone_numbers": ["16317471111", "16317472222"] }'