Update current user profile
curl --request PATCH \
--url https://api.ofauth.com/v2/access/self \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--header 'x-connection-id: <api-key>' \
--data '
{
"name": "<string>",
"about": "<string>",
"isMarkdownDisabledForAbout": true,
"website": "<string>",
"wishlist": "<string>",
"location": "<string>",
"showPostsInFeed": true,
"showSubscribersCount": true,
"showMediaCount": true,
"isReferrerAllowed": true,
"tipsEnabled": true,
"tipsTextEnabled": true,
"tipsMin": 1,
"tipsMax": 1
}
'import requests
url = "https://api.ofauth.com/v2/access/self"
payload = {
"name": "<string>",
"about": "<string>",
"isMarkdownDisabledForAbout": True,
"website": "<string>",
"wishlist": "<string>",
"location": "<string>",
"showPostsInFeed": True,
"showSubscribersCount": True,
"showMediaCount": True,
"isReferrerAllowed": True,
"tipsEnabled": True,
"tipsTextEnabled": True,
"tipsMin": 1,
"tipsMax": 1
}
headers = {
"apiKey": "<api-key>",
"x-connection-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
apiKey: '<api-key>',
'x-connection-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
about: '<string>',
isMarkdownDisabledForAbout: true,
website: '<string>',
wishlist: '<string>',
location: '<string>',
showPostsInFeed: true,
showSubscribersCount: true,
showMediaCount: true,
isReferrerAllowed: true,
tipsEnabled: true,
tipsTextEnabled: true,
tipsMin: 1,
tipsMax: 1
})
};
fetch('https://api.ofauth.com/v2/access/self', 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.ofauth.com/v2/access/self",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'about' => '<string>',
'isMarkdownDisabledForAbout' => true,
'website' => '<string>',
'wishlist' => '<string>',
'location' => '<string>',
'showPostsInFeed' => true,
'showSubscribersCount' => true,
'showMediaCount' => true,
'isReferrerAllowed' => true,
'tipsEnabled' => true,
'tipsTextEnabled' => true,
'tipsMin' => 1,
'tipsMax' => 1
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apiKey: <api-key>",
"x-connection-id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ofauth.com/v2/access/self"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"about\": \"<string>\",\n \"isMarkdownDisabledForAbout\": true,\n \"website\": \"<string>\",\n \"wishlist\": \"<string>\",\n \"location\": \"<string>\",\n \"showPostsInFeed\": true,\n \"showSubscribersCount\": true,\n \"showMediaCount\": true,\n \"isReferrerAllowed\": true,\n \"tipsEnabled\": true,\n \"tipsTextEnabled\": true,\n \"tipsMin\": 1,\n \"tipsMax\": 1\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("x-connection-id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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.ofauth.com/v2/access/self")
.header("apiKey", "<api-key>")
.header("x-connection-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"about\": \"<string>\",\n \"isMarkdownDisabledForAbout\": true,\n \"website\": \"<string>\",\n \"wishlist\": \"<string>\",\n \"location\": \"<string>\",\n \"showPostsInFeed\": true,\n \"showSubscribersCount\": true,\n \"showMediaCount\": true,\n \"isReferrerAllowed\": true,\n \"tipsEnabled\": true,\n \"tipsTextEnabled\": true,\n \"tipsMin\": 1,\n \"tipsMax\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ofauth.com/v2/access/self")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["apiKey"] = '<api-key>'
request["x-connection-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"about\": \"<string>\",\n \"isMarkdownDisabledForAbout\": true,\n \"website\": \"<string>\",\n \"wishlist\": \"<string>\",\n \"location\": \"<string>\",\n \"showPostsInFeed\": true,\n \"showSubscribersCount\": true,\n \"showMediaCount\": true,\n \"isReferrerAllowed\": true,\n \"tipsEnabled\": true,\n \"tipsTextEnabled\": true,\n \"tipsMin\": 1,\n \"tipsMax\": 1\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"username": "<string>",
"name": "<string>",
"isVerified": true,
"avatar": "<string>",
"lists": [
{
"id": "<string>",
"type": "<string>",
"name": "<string>"
}
],
"avatarThumbs": {
"c50": "<string>",
"c144": "<string>"
},
"displayName": "<string>",
"notice": "<string>",
"about": "<string>",
"isMarkdownDisabledForAbout": true,
"website": "<string>",
"wishlist": "<string>",
"location": "<string>",
"header": "<string>",
"headerSize": {
"width": 123,
"height": 123
},
"headerThumbs": {
"w480": "<string>",
"w760": "<string>"
},
"subscribersCount": 123,
"postsCount": 123,
"archivedPostsCount": 123,
"privateArchivedPostsCount": 123,
"photosCount": 123,
"videosCount": 123,
"audiosCount": 123,
"mediasCount": 123,
"favoritesCount": 123,
"favoritedCount": 123,
"joinDate": "<string>",
"lastSeen": "<string>",
"subscribedBy": true,
"subscribedByExpire": true,
"subscribedByExpireDate": "<string>",
"subscribedByAutoprolong": true,
"subscribedIsExpiredNow": true,
"subscribedByData": {
"price": 123,
"newPrice": 123,
"regularPrice": 123,
"subscribePrice": 123,
"discountPercent": 123,
"discountPeriod": 123,
"subscribeAt": "<string>",
"expiredAt": "<string>",
"renewedAt": "<string>",
"discountFinishedAt": "<string>",
"discountStartedAt": "<string>",
"status": "<string>",
"isMuted": true,
"unsubscribeReason": "<string>",
"duration": "<string>",
"hasActivePaidSubscriptions": true,
"showPostsInFeed": true,
"subscribes": [
{
"id": 123,
"userId": 123,
"subscriberId": 123,
"date": "<string>",
"duration": 123,
"startDate": "<string>",
"expireDate": "<string>",
"cancelDate": "<string>",
"price": 123,
"regularPrice": 123,
"discount": 123,
"earningId": 123,
"action": "<string>",
"type": "<string>",
"offerStart": "<string>",
"offerEnd": "<string>",
"isCurrent": true
}
]
},
"subscribedOn": true,
"subscribedOnExpiredNow": true,
"subscribedOnDuration": "<string>",
"subscribedOnData": {
"price": 123,
"newPrice": 123,
"regularPrice": 123,
"subscribePrice": 123,
"discountPercent": 123,
"discountPeriod": 123,
"subscribeAt": "<string>",
"expiredAt": "<string>",
"renewedAt": "<string>",
"discountFinishedAt": "<string>",
"discountStartedAt": "<string>",
"status": "<string>",
"isMuted": true,
"unsubscribeReason": "<string>",
"duration": "<string>",
"hasActivePaidSubscriptions": true,
"subscribes": [
{
"id": 123,
"userId": 123,
"subscriberId": 123,
"date": "<string>",
"duration": 123,
"startDate": "<string>",
"expireDate": "<string>",
"cancelDate": "<string>",
"price": 123,
"regularPrice": 123,
"discount": 123,
"earningId": 123,
"action": "<string>",
"type": "<string>",
"offerStart": "<string>",
"offerEnd": "<string>",
"isCurrent": true
}
],
"tipsSumm": 123,
"subscribesSumm": 123,
"messagesSumm": 123,
"postsSumm": 123,
"streamsSumm": 123,
"totalSumm": 123
},
"subscribePrice": 123,
"currentSubscribePrice": 123,
"canAddSubscriber": true,
"tipsEnabled": true,
"tipsTextEnabled": true,
"tipsMin": 123,
"tipsMinInternal": 123,
"tipsMax": 123,
"canLookStory": true,
"canCommentStory": true,
"hasNotViewedStory": true,
"hasStories": true,
"isRestricted": true,
"canRestrict": true,
"isBlocked": true,
"canReport": true,
"canUnsubscribe": true,
"isPendingAutoprolong": true,
"isPerformer": true,
"isRealPerformer": true,
"canReceiveChatMessage": true,
"canChat": true,
"showPostsInFeed": true,
"hasPinnedPosts": true,
"hasLabels": true,
"isPrivateRestriction": true,
"showSubscribersCount": true,
"showMediaCount": true,
"isReferrerAllowed": true,
"canCreatePromotion": true,
"canCreateTrial": true,
"isAdultContent": true,
"canTrialSend": true,
"isFriend": true,
"hasScheduledStream": true,
"hasStream": true,
"canPayInternal": true
}Account (Self)
Update current user profile
deprecated
Update current user profile
Permission Required: profile:write
PATCH
/
v2
/
access
/
self
Update current user profile
curl --request PATCH \
--url https://api.ofauth.com/v2/access/self \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--header 'x-connection-id: <api-key>' \
--data '
{
"name": "<string>",
"about": "<string>",
"isMarkdownDisabledForAbout": true,
"website": "<string>",
"wishlist": "<string>",
"location": "<string>",
"showPostsInFeed": true,
"showSubscribersCount": true,
"showMediaCount": true,
"isReferrerAllowed": true,
"tipsEnabled": true,
"tipsTextEnabled": true,
"tipsMin": 1,
"tipsMax": 1
}
'import requests
url = "https://api.ofauth.com/v2/access/self"
payload = {
"name": "<string>",
"about": "<string>",
"isMarkdownDisabledForAbout": True,
"website": "<string>",
"wishlist": "<string>",
"location": "<string>",
"showPostsInFeed": True,
"showSubscribersCount": True,
"showMediaCount": True,
"isReferrerAllowed": True,
"tipsEnabled": True,
"tipsTextEnabled": True,
"tipsMin": 1,
"tipsMax": 1
}
headers = {
"apiKey": "<api-key>",
"x-connection-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
apiKey: '<api-key>',
'x-connection-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
about: '<string>',
isMarkdownDisabledForAbout: true,
website: '<string>',
wishlist: '<string>',
location: '<string>',
showPostsInFeed: true,
showSubscribersCount: true,
showMediaCount: true,
isReferrerAllowed: true,
tipsEnabled: true,
tipsTextEnabled: true,
tipsMin: 1,
tipsMax: 1
})
};
fetch('https://api.ofauth.com/v2/access/self', 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.ofauth.com/v2/access/self",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'about' => '<string>',
'isMarkdownDisabledForAbout' => true,
'website' => '<string>',
'wishlist' => '<string>',
'location' => '<string>',
'showPostsInFeed' => true,
'showSubscribersCount' => true,
'showMediaCount' => true,
'isReferrerAllowed' => true,
'tipsEnabled' => true,
'tipsTextEnabled' => true,
'tipsMin' => 1,
'tipsMax' => 1
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apiKey: <api-key>",
"x-connection-id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ofauth.com/v2/access/self"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"about\": \"<string>\",\n \"isMarkdownDisabledForAbout\": true,\n \"website\": \"<string>\",\n \"wishlist\": \"<string>\",\n \"location\": \"<string>\",\n \"showPostsInFeed\": true,\n \"showSubscribersCount\": true,\n \"showMediaCount\": true,\n \"isReferrerAllowed\": true,\n \"tipsEnabled\": true,\n \"tipsTextEnabled\": true,\n \"tipsMin\": 1,\n \"tipsMax\": 1\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("x-connection-id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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.ofauth.com/v2/access/self")
.header("apiKey", "<api-key>")
.header("x-connection-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"about\": \"<string>\",\n \"isMarkdownDisabledForAbout\": true,\n \"website\": \"<string>\",\n \"wishlist\": \"<string>\",\n \"location\": \"<string>\",\n \"showPostsInFeed\": true,\n \"showSubscribersCount\": true,\n \"showMediaCount\": true,\n \"isReferrerAllowed\": true,\n \"tipsEnabled\": true,\n \"tipsTextEnabled\": true,\n \"tipsMin\": 1,\n \"tipsMax\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ofauth.com/v2/access/self")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["apiKey"] = '<api-key>'
request["x-connection-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"about\": \"<string>\",\n \"isMarkdownDisabledForAbout\": true,\n \"website\": \"<string>\",\n \"wishlist\": \"<string>\",\n \"location\": \"<string>\",\n \"showPostsInFeed\": true,\n \"showSubscribersCount\": true,\n \"showMediaCount\": true,\n \"isReferrerAllowed\": true,\n \"tipsEnabled\": true,\n \"tipsTextEnabled\": true,\n \"tipsMin\": 1,\n \"tipsMax\": 1\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"username": "<string>",
"name": "<string>",
"isVerified": true,
"avatar": "<string>",
"lists": [
{
"id": "<string>",
"type": "<string>",
"name": "<string>"
}
],
"avatarThumbs": {
"c50": "<string>",
"c144": "<string>"
},
"displayName": "<string>",
"notice": "<string>",
"about": "<string>",
"isMarkdownDisabledForAbout": true,
"website": "<string>",
"wishlist": "<string>",
"location": "<string>",
"header": "<string>",
"headerSize": {
"width": 123,
"height": 123
},
"headerThumbs": {
"w480": "<string>",
"w760": "<string>"
},
"subscribersCount": 123,
"postsCount": 123,
"archivedPostsCount": 123,
"privateArchivedPostsCount": 123,
"photosCount": 123,
"videosCount": 123,
"audiosCount": 123,
"mediasCount": 123,
"favoritesCount": 123,
"favoritedCount": 123,
"joinDate": "<string>",
"lastSeen": "<string>",
"subscribedBy": true,
"subscribedByExpire": true,
"subscribedByExpireDate": "<string>",
"subscribedByAutoprolong": true,
"subscribedIsExpiredNow": true,
"subscribedByData": {
"price": 123,
"newPrice": 123,
"regularPrice": 123,
"subscribePrice": 123,
"discountPercent": 123,
"discountPeriod": 123,
"subscribeAt": "<string>",
"expiredAt": "<string>",
"renewedAt": "<string>",
"discountFinishedAt": "<string>",
"discountStartedAt": "<string>",
"status": "<string>",
"isMuted": true,
"unsubscribeReason": "<string>",
"duration": "<string>",
"hasActivePaidSubscriptions": true,
"showPostsInFeed": true,
"subscribes": [
{
"id": 123,
"userId": 123,
"subscriberId": 123,
"date": "<string>",
"duration": 123,
"startDate": "<string>",
"expireDate": "<string>",
"cancelDate": "<string>",
"price": 123,
"regularPrice": 123,
"discount": 123,
"earningId": 123,
"action": "<string>",
"type": "<string>",
"offerStart": "<string>",
"offerEnd": "<string>",
"isCurrent": true
}
]
},
"subscribedOn": true,
"subscribedOnExpiredNow": true,
"subscribedOnDuration": "<string>",
"subscribedOnData": {
"price": 123,
"newPrice": 123,
"regularPrice": 123,
"subscribePrice": 123,
"discountPercent": 123,
"discountPeriod": 123,
"subscribeAt": "<string>",
"expiredAt": "<string>",
"renewedAt": "<string>",
"discountFinishedAt": "<string>",
"discountStartedAt": "<string>",
"status": "<string>",
"isMuted": true,
"unsubscribeReason": "<string>",
"duration": "<string>",
"hasActivePaidSubscriptions": true,
"subscribes": [
{
"id": 123,
"userId": 123,
"subscriberId": 123,
"date": "<string>",
"duration": 123,
"startDate": "<string>",
"expireDate": "<string>",
"cancelDate": "<string>",
"price": 123,
"regularPrice": 123,
"discount": 123,
"earningId": 123,
"action": "<string>",
"type": "<string>",
"offerStart": "<string>",
"offerEnd": "<string>",
"isCurrent": true
}
],
"tipsSumm": 123,
"subscribesSumm": 123,
"messagesSumm": 123,
"postsSumm": 123,
"streamsSumm": 123,
"totalSumm": 123
},
"subscribePrice": 123,
"currentSubscribePrice": 123,
"canAddSubscriber": true,
"tipsEnabled": true,
"tipsTextEnabled": true,
"tipsMin": 123,
"tipsMinInternal": 123,
"tipsMax": 123,
"canLookStory": true,
"canCommentStory": true,
"hasNotViewedStory": true,
"hasStories": true,
"isRestricted": true,
"canRestrict": true,
"isBlocked": true,
"canReport": true,
"canUnsubscribe": true,
"isPendingAutoprolong": true,
"isPerformer": true,
"isRealPerformer": true,
"canReceiveChatMessage": true,
"canChat": true,
"showPostsInFeed": true,
"hasPinnedPosts": true,
"hasLabels": true,
"isPrivateRestriction": true,
"showSubscribersCount": true,
"showMediaCount": true,
"isReferrerAllowed": true,
"canCreatePromotion": true,
"canCreateTrial": true,
"isAdultContent": true,
"canTrialSend": true,
"isFriend": true,
"hasScheduledStream": true,
"hasStream": true,
"canPayInternal": true
}Authorizations
Requires a connection via the x-connection-id header.
Body
application/json
Display name
Maximum string length:
100Profile bio/description
Maximum string length:
1000Disable Markdown rendering for the profile bio
Profile website URL
Maximum string length:
2048Profile wishlist URL
Maximum string length:
2048Profile location
Maximum string length:
100Show posts in the creator feed
Show subscriber count on the profile
Show media count on the profile
Allow referrer attribution for the profile
Enable tips on the profile
Allow text with tips
Minimum tip amount
Required range:
x >= 0Maximum tip amount
Required range:
x >= 0Response
Successful response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I