Skip to main content
PATCH
/
profiles
/
{username}
/
socials
Social Links
curl --request PATCH \
  --url https://api.offlineprotocol.com/api/v1/profiles/{username}/socials \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "socials": {
    "x": "https://x.com/example"
  },
  "about": "About me text"
}'
{
  "data": {
    "profile": {
      "username": "<string>",
      "about": "<string>",
      "socials": {
        "x": "<string>",
        "telegram": "<string>",
        "website": "<string>",
        "discord": "<string>"
      },
      "location": {
        "latitude": 123,
        "longitude": 123
      },
      "hidden": false
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

username
string
required

The username of the profile

Body

application/json
socials
object
Example:
{ "x": "https://x.com/example" }
about
string
Example:

"About me text"

Response

200 - application/json

Profile updated successfully

data
object
I