Update Contact
Endpoint
[PATCH] https://usenotifier.com/api/contacts/174926c5-becf-4c56-a447-fbd9f6d99dcfExample Request
$response = Http::withToken('YOUR_API_KEY')
->patch('https://usenotifier.com/api/contacts', [
"firstname" => "Jane",
"lastname" => "Smith"
]);$client = new Client();
$headers = [
'Accept' => 'application/json',
'Authorization' => 'Bearer YOUR_API_KEY',
'Content-Type' => 'application/x-www-form-urlencoded'
];
$options = [
'form_params' => [
'to' => '+447700900389',
'body' => 'Hello World!'
]];
$request = new Request('POST', 'https://usenotifier.com/api/sms', $headers);
$res = $client->sendAsync($request, $options)->wait();
echo $res->getBody();curl --location --request POST 'https://usenotifier.com/api/sms'
--header 'Accept: application/json'
--header 'Authorization: Bearer YOUR_API_KEY'
--header 'Content-Type: application/x-www-form-urlencoded'
--data-urlencode 'to=+447700900389'
--data-urlencode 'body=Hello World!'var client = new RestClient("https://usenotifier.com/api/sms");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Accept", "application/json");
request.AddHeader("Authorization", "Bearer YOUR_API_KEY");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("to", "+447700900389");
request.AddParameter("body", "Hello World!");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);firstname: optional | nullable
The contacts firstname.
last name: optional | nullable
The contacts last name.
Example Response
{
"data": [
{
"uuid": "174926c5-becf-4c56-a447-fbd9f6d99dcf",
"firstname": "Jane",
"lastname": "Smith",
"created_at": "2022-09-20T10:24:48.000000Z",
"contact_methods": [
{
"uuid": "367b56e3-f8ab-4807-9cb8-9250a95f5386",
"type": "phone",
"address": "+447700900389",
"created_at": "2022-09-20T10:24:48.000000Z",
"updated_at": "2022-09-20T10:24:48.000000Z"
}
]
}
]
}Last updated
Was this helpful?