Update Social Profile
curl --request PATCH \
--url https://api.example.com/social/profiles/{social_profile_id}import requests
url = "https://api.example.com/social/profiles/{social_profile_id}"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://api.example.com/social/profiles/{social_profile_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/social/profiles/{social_profile_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/social/profiles/{social_profile_id}"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.example.com/social/profiles/{social_profile_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/social/profiles/{social_profile_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_bodySocial
Update Social Profile
Change a social profile’s display name.
PATCH
/
social
/
profiles
/
{social_profile_id}
Update Social Profile
curl --request PATCH \
--url https://api.example.com/social/profiles/{social_profile_id}import requests
url = "https://api.example.com/social/profiles/{social_profile_id}"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://api.example.com/social/profiles/{social_profile_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/social/profiles/{social_profile_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/social/profiles/{social_profile_id}"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.example.com/social/profiles/{social_profile_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/social/profiles/{social_profile_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_bodyUpdate
An invalid ID or name returns
connection_name to change the name displayed on the hosted connection page and in the profile lists returned by GET /social/profiles and GET /social/connections.
Names do not need to be unique. Renaming keeps the same social_profile_id, connected accounts, and profile slot usage. It does not rename the underlying social account or require reconnecting it. You can update both pending and connected profiles belonging to your organization.
Request
curl -X PATCH "https://api.mosaic.so/social/profiles/d768e91a-d0ef-487f-8f0e-d6903cce3d5b" \
-H "Authorization: Bearer mk_your_api_key" \
-H "Content-Type: application/json" \
-d '{"connection_name": "Acme Marketing"}'
| Field | Type | Required | Description |
|---|---|---|---|
social_profile_id | string (uuid), path | Yes | ID returned when creating or listing profiles. |
connection_name | string, body | Yes | New display name. Leading and trailing whitespace is trimmed; must contain 1–120 characters after trimming. Duplicate names are allowed. |
Response
{
"social_profile_id": "d768e91a-d0ef-487f-8f0e-d6903cce3d5b",
"connection_name": "Acme Marketing"
}
400. A missing, deleted, or other organization’s profile returns 404.Was this page helpful?