curl --request POST \
--url http://localhost/mogl/mogl-backend/api/editAthleteWebsite \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"first_name": "Shakil",
"last_name": "Dhanga",
"athlete": "athlete_slug_01",
"DOB": "1970-01-01",
"school": "Abilene Christian University",
"university_id": 1,
"location": "Austin, TX",
"skills": "Content Creation, Fitness, Gaming",
"sport_category_id": 24,
"expected_graduation_date": "2020",
"gender": "Male",
"bio": "Student-athlete and content creator.",
"highlights": "All-conference 2023",
"weight": "65",
"experience": "3 years varsity",
"contactNumber": 5846161322,
"cover_photo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"profile_photo": "storage/images/profile_photo/example.png",
"team_photo_profile": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"team_photo_cover": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"jersey_no": "786",
"height": 67,
"height_ft": 5,
"height_in": 7,
"hat_size": "5",
"shirt_size": "L - (Large)",
"pants_size": "32",
"shoes_size": "7.5",
"team_name": "Wildcats",
"team_member_color": "#1a1a2e",
"team_athlete_name": [],
"is_private": "N",
"us_citizen": "Y",
"marketing_notification": "Y"
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/editAthleteWebsite"
payload = {
"first_name": "Shakil",
"last_name": "Dhanga",
"athlete": "athlete_slug_01",
"DOB": "1970-01-01",
"school": "Abilene Christian University",
"university_id": 1,
"location": "Austin, TX",
"skills": "Content Creation, Fitness, Gaming",
"sport_category_id": 24,
"expected_graduation_date": "2020",
"gender": "Male",
"bio": "Student-athlete and content creator.",
"highlights": "All-conference 2023",
"weight": "65",
"experience": "3 years varsity",
"contactNumber": 5846161322,
"cover_photo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"profile_photo": "storage/images/profile_photo/example.png",
"team_photo_profile": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"team_photo_cover": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"jersey_no": "786",
"height": 67,
"height_ft": 5,
"height_in": 7,
"hat_size": "5",
"shirt_size": "L - (Large)",
"pants_size": "32",
"shoes_size": "7.5",
"team_name": "Wildcats",
"team_member_color": "#1a1a2e",
"team_athlete_name": [],
"is_private": "N",
"us_citizen": "Y",
"marketing_notification": "Y"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
first_name: 'Shakil',
last_name: 'Dhanga',
athlete: 'athlete_slug_01',
DOB: '1970-01-01',
school: 'Abilene Christian University',
university_id: 1,
location: 'Austin, TX',
skills: 'Content Creation, Fitness, Gaming',
sport_category_id: 24,
expected_graduation_date: '2020',
gender: 'Male',
bio: 'Student-athlete and content creator.',
highlights: 'All-conference 2023',
weight: '65',
experience: '3 years varsity',
contactNumber: 5846161322,
cover_photo: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
profile_photo: 'storage/images/profile_photo/example.png',
team_photo_profile: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
team_photo_cover: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
jersey_no: '786',
height: 67,
height_ft: 5,
height_in: 7,
hat_size: '5',
shirt_size: 'L - (Large)',
pants_size: '32',
shoes_size: '7.5',
team_name: 'Wildcats',
team_member_color: '#1a1a2e',
team_athlete_name: [],
is_private: 'N',
us_citizen: 'Y',
marketing_notification: 'Y'
})
};
fetch('http://localhost/mogl/mogl-backend/api/editAthleteWebsite', 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 => "http://localhost/mogl/mogl-backend/api/editAthleteWebsite",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'first_name' => 'Shakil',
'last_name' => 'Dhanga',
'athlete' => 'athlete_slug_01',
'DOB' => '1970-01-01',
'school' => 'Abilene Christian University',
'university_id' => 1,
'location' => 'Austin, TX',
'skills' => 'Content Creation, Fitness, Gaming',
'sport_category_id' => 24,
'expected_graduation_date' => '2020',
'gender' => 'Male',
'bio' => 'Student-athlete and content creator.',
'highlights' => 'All-conference 2023',
'weight' => '65',
'experience' => '3 years varsity',
'contactNumber' => 5846161322,
'cover_photo' => 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
'profile_photo' => 'storage/images/profile_photo/example.png',
'team_photo_profile' => 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
'team_photo_cover' => 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
'jersey_no' => '786',
'height' => 67,
'height_ft' => 5,
'height_in' => 7,
'hat_size' => '5',
'shirt_size' => 'L - (Large)',
'pants_size' => '32',
'shoes_size' => '7.5',
'team_name' => 'Wildcats',
'team_member_color' => '#1a1a2e',
'team_athlete_name' => [
],
'is_private' => 'N',
'us_citizen' => 'Y',
'marketing_notification' => 'Y'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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 := "http://localhost/mogl/mogl-backend/api/editAthleteWebsite"
payload := strings.NewReader("{\n \"first_name\": \"Shakil\",\n \"last_name\": \"Dhanga\",\n \"athlete\": \"athlete_slug_01\",\n \"DOB\": \"1970-01-01\",\n \"school\": \"Abilene Christian University\",\n \"university_id\": 1,\n \"location\": \"Austin, TX\",\n \"skills\": \"Content Creation, Fitness, Gaming\",\n \"sport_category_id\": 24,\n \"expected_graduation_date\": \"2020\",\n \"gender\": \"Male\",\n \"bio\": \"Student-athlete and content creator.\",\n \"highlights\": \"All-conference 2023\",\n \"weight\": \"65\",\n \"experience\": \"3 years varsity\",\n \"contactNumber\": 5846161322,\n \"cover_photo\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"profile_photo\": \"storage/images/profile_photo/example.png\",\n \"team_photo_profile\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"team_photo_cover\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"jersey_no\": \"786\",\n \"height\": 67,\n \"height_ft\": 5,\n \"height_in\": 7,\n \"hat_size\": \"5\",\n \"shirt_size\": \"L - (Large)\",\n \"pants_size\": \"32\",\n \"shoes_size\": \"7.5\",\n \"team_name\": \"Wildcats\",\n \"team_member_color\": \"#1a1a2e\",\n \"team_athlete_name\": [],\n \"is_private\": \"N\",\n \"us_citizen\": \"Y\",\n \"marketing_notification\": \"Y\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("http://localhost/mogl/mogl-backend/api/editAthleteWebsite")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"first_name\": \"Shakil\",\n \"last_name\": \"Dhanga\",\n \"athlete\": \"athlete_slug_01\",\n \"DOB\": \"1970-01-01\",\n \"school\": \"Abilene Christian University\",\n \"university_id\": 1,\n \"location\": \"Austin, TX\",\n \"skills\": \"Content Creation, Fitness, Gaming\",\n \"sport_category_id\": 24,\n \"expected_graduation_date\": \"2020\",\n \"gender\": \"Male\",\n \"bio\": \"Student-athlete and content creator.\",\n \"highlights\": \"All-conference 2023\",\n \"weight\": \"65\",\n \"experience\": \"3 years varsity\",\n \"contactNumber\": 5846161322,\n \"cover_photo\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"profile_photo\": \"storage/images/profile_photo/example.png\",\n \"team_photo_profile\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"team_photo_cover\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"jersey_no\": \"786\",\n \"height\": 67,\n \"height_ft\": 5,\n \"height_in\": 7,\n \"hat_size\": \"5\",\n \"shirt_size\": \"L - (Large)\",\n \"pants_size\": \"32\",\n \"shoes_size\": \"7.5\",\n \"team_name\": \"Wildcats\",\n \"team_member_color\": \"#1a1a2e\",\n \"team_athlete_name\": [],\n \"is_private\": \"N\",\n \"us_citizen\": \"Y\",\n \"marketing_notification\": \"Y\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/editAthleteWebsite")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"first_name\": \"Shakil\",\n \"last_name\": \"Dhanga\",\n \"athlete\": \"athlete_slug_01\",\n \"DOB\": \"1970-01-01\",\n \"school\": \"Abilene Christian University\",\n \"university_id\": 1,\n \"location\": \"Austin, TX\",\n \"skills\": \"Content Creation, Fitness, Gaming\",\n \"sport_category_id\": 24,\n \"expected_graduation_date\": \"2020\",\n \"gender\": \"Male\",\n \"bio\": \"Student-athlete and content creator.\",\n \"highlights\": \"All-conference 2023\",\n \"weight\": \"65\",\n \"experience\": \"3 years varsity\",\n \"contactNumber\": 5846161322,\n \"cover_photo\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"profile_photo\": \"storage/images/profile_photo/example.png\",\n \"team_photo_profile\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"team_photo_cover\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"jersey_no\": \"786\",\n \"height\": 67,\n \"height_ft\": 5,\n \"height_in\": 7,\n \"hat_size\": \"5\",\n \"shirt_size\": \"L - (Large)\",\n \"pants_size\": \"32\",\n \"shoes_size\": \"7.5\",\n \"team_name\": \"Wildcats\",\n \"team_member_color\": \"#1a1a2e\",\n \"team_athlete_name\": [],\n \"is_private\": \"N\",\n \"us_citizen\": \"Y\",\n \"marketing_notification\": \"Y\"\n}"
response = http.request(request)
puts response.read_bodyUpdate athlete profile
Full athlete profile update. All fields optional except those relevant to your update.
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/editAthleteWebsite \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"first_name": "Shakil",
"last_name": "Dhanga",
"athlete": "athlete_slug_01",
"DOB": "1970-01-01",
"school": "Abilene Christian University",
"university_id": 1,
"location": "Austin, TX",
"skills": "Content Creation, Fitness, Gaming",
"sport_category_id": 24,
"expected_graduation_date": "2020",
"gender": "Male",
"bio": "Student-athlete and content creator.",
"highlights": "All-conference 2023",
"weight": "65",
"experience": "3 years varsity",
"contactNumber": 5846161322,
"cover_photo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"profile_photo": "storage/images/profile_photo/example.png",
"team_photo_profile": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"team_photo_cover": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"jersey_no": "786",
"height": 67,
"height_ft": 5,
"height_in": 7,
"hat_size": "5",
"shirt_size": "L - (Large)",
"pants_size": "32",
"shoes_size": "7.5",
"team_name": "Wildcats",
"team_member_color": "#1a1a2e",
"team_athlete_name": [],
"is_private": "N",
"us_citizen": "Y",
"marketing_notification": "Y"
}
'import requests
url = "http://localhost/mogl/mogl-backend/api/editAthleteWebsite"
payload = {
"first_name": "Shakil",
"last_name": "Dhanga",
"athlete": "athlete_slug_01",
"DOB": "1970-01-01",
"school": "Abilene Christian University",
"university_id": 1,
"location": "Austin, TX",
"skills": "Content Creation, Fitness, Gaming",
"sport_category_id": 24,
"expected_graduation_date": "2020",
"gender": "Male",
"bio": "Student-athlete and content creator.",
"highlights": "All-conference 2023",
"weight": "65",
"experience": "3 years varsity",
"contactNumber": 5846161322,
"cover_photo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"profile_photo": "storage/images/profile_photo/example.png",
"team_photo_profile": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"team_photo_cover": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"jersey_no": "786",
"height": 67,
"height_ft": 5,
"height_in": 7,
"hat_size": "5",
"shirt_size": "L - (Large)",
"pants_size": "32",
"shoes_size": "7.5",
"team_name": "Wildcats",
"team_member_color": "#1a1a2e",
"team_athlete_name": [],
"is_private": "N",
"us_citizen": "Y",
"marketing_notification": "Y"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
first_name: 'Shakil',
last_name: 'Dhanga',
athlete: 'athlete_slug_01',
DOB: '1970-01-01',
school: 'Abilene Christian University',
university_id: 1,
location: 'Austin, TX',
skills: 'Content Creation, Fitness, Gaming',
sport_category_id: 24,
expected_graduation_date: '2020',
gender: 'Male',
bio: 'Student-athlete and content creator.',
highlights: 'All-conference 2023',
weight: '65',
experience: '3 years varsity',
contactNumber: 5846161322,
cover_photo: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
profile_photo: 'storage/images/profile_photo/example.png',
team_photo_profile: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
team_photo_cover: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
jersey_no: '786',
height: 67,
height_ft: 5,
height_in: 7,
hat_size: '5',
shirt_size: 'L - (Large)',
pants_size: '32',
shoes_size: '7.5',
team_name: 'Wildcats',
team_member_color: '#1a1a2e',
team_athlete_name: [],
is_private: 'N',
us_citizen: 'Y',
marketing_notification: 'Y'
})
};
fetch('http://localhost/mogl/mogl-backend/api/editAthleteWebsite', 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 => "http://localhost/mogl/mogl-backend/api/editAthleteWebsite",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'first_name' => 'Shakil',
'last_name' => 'Dhanga',
'athlete' => 'athlete_slug_01',
'DOB' => '1970-01-01',
'school' => 'Abilene Christian University',
'university_id' => 1,
'location' => 'Austin, TX',
'skills' => 'Content Creation, Fitness, Gaming',
'sport_category_id' => 24,
'expected_graduation_date' => '2020',
'gender' => 'Male',
'bio' => 'Student-athlete and content creator.',
'highlights' => 'All-conference 2023',
'weight' => '65',
'experience' => '3 years varsity',
'contactNumber' => 5846161322,
'cover_photo' => 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
'profile_photo' => 'storage/images/profile_photo/example.png',
'team_photo_profile' => 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
'team_photo_cover' => 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...',
'jersey_no' => '786',
'height' => 67,
'height_ft' => 5,
'height_in' => 7,
'hat_size' => '5',
'shirt_size' => 'L - (Large)',
'pants_size' => '32',
'shoes_size' => '7.5',
'team_name' => 'Wildcats',
'team_member_color' => '#1a1a2e',
'team_athlete_name' => [
],
'is_private' => 'N',
'us_citizen' => 'Y',
'marketing_notification' => 'Y'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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 := "http://localhost/mogl/mogl-backend/api/editAthleteWebsite"
payload := strings.NewReader("{\n \"first_name\": \"Shakil\",\n \"last_name\": \"Dhanga\",\n \"athlete\": \"athlete_slug_01\",\n \"DOB\": \"1970-01-01\",\n \"school\": \"Abilene Christian University\",\n \"university_id\": 1,\n \"location\": \"Austin, TX\",\n \"skills\": \"Content Creation, Fitness, Gaming\",\n \"sport_category_id\": 24,\n \"expected_graduation_date\": \"2020\",\n \"gender\": \"Male\",\n \"bio\": \"Student-athlete and content creator.\",\n \"highlights\": \"All-conference 2023\",\n \"weight\": \"65\",\n \"experience\": \"3 years varsity\",\n \"contactNumber\": 5846161322,\n \"cover_photo\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"profile_photo\": \"storage/images/profile_photo/example.png\",\n \"team_photo_profile\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"team_photo_cover\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"jersey_no\": \"786\",\n \"height\": 67,\n \"height_ft\": 5,\n \"height_in\": 7,\n \"hat_size\": \"5\",\n \"shirt_size\": \"L - (Large)\",\n \"pants_size\": \"32\",\n \"shoes_size\": \"7.5\",\n \"team_name\": \"Wildcats\",\n \"team_member_color\": \"#1a1a2e\",\n \"team_athlete_name\": [],\n \"is_private\": \"N\",\n \"us_citizen\": \"Y\",\n \"marketing_notification\": \"Y\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("http://localhost/mogl/mogl-backend/api/editAthleteWebsite")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"first_name\": \"Shakil\",\n \"last_name\": \"Dhanga\",\n \"athlete\": \"athlete_slug_01\",\n \"DOB\": \"1970-01-01\",\n \"school\": \"Abilene Christian University\",\n \"university_id\": 1,\n \"location\": \"Austin, TX\",\n \"skills\": \"Content Creation, Fitness, Gaming\",\n \"sport_category_id\": 24,\n \"expected_graduation_date\": \"2020\",\n \"gender\": \"Male\",\n \"bio\": \"Student-athlete and content creator.\",\n \"highlights\": \"All-conference 2023\",\n \"weight\": \"65\",\n \"experience\": \"3 years varsity\",\n \"contactNumber\": 5846161322,\n \"cover_photo\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"profile_photo\": \"storage/images/profile_photo/example.png\",\n \"team_photo_profile\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"team_photo_cover\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"jersey_no\": \"786\",\n \"height\": 67,\n \"height_ft\": 5,\n \"height_in\": 7,\n \"hat_size\": \"5\",\n \"shirt_size\": \"L - (Large)\",\n \"pants_size\": \"32\",\n \"shoes_size\": \"7.5\",\n \"team_name\": \"Wildcats\",\n \"team_member_color\": \"#1a1a2e\",\n \"team_athlete_name\": [],\n \"is_private\": \"N\",\n \"us_citizen\": \"Y\",\n \"marketing_notification\": \"Y\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/mogl/mogl-backend/api/editAthleteWebsite")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"first_name\": \"Shakil\",\n \"last_name\": \"Dhanga\",\n \"athlete\": \"athlete_slug_01\",\n \"DOB\": \"1970-01-01\",\n \"school\": \"Abilene Christian University\",\n \"university_id\": 1,\n \"location\": \"Austin, TX\",\n \"skills\": \"Content Creation, Fitness, Gaming\",\n \"sport_category_id\": 24,\n \"expected_graduation_date\": \"2020\",\n \"gender\": \"Male\",\n \"bio\": \"Student-athlete and content creator.\",\n \"highlights\": \"All-conference 2023\",\n \"weight\": \"65\",\n \"experience\": \"3 years varsity\",\n \"contactNumber\": 5846161322,\n \"cover_photo\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"profile_photo\": \"storage/images/profile_photo/example.png\",\n \"team_photo_profile\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"team_photo_cover\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...\",\n \"jersey_no\": \"786\",\n \"height\": 67,\n \"height_ft\": 5,\n \"height_in\": 7,\n \"hat_size\": \"5\",\n \"shirt_size\": \"L - (Large)\",\n \"pants_size\": \"32\",\n \"shoes_size\": \"7.5\",\n \"team_name\": \"Wildcats\",\n \"team_member_color\": \"#1a1a2e\",\n \"team_athlete_name\": [],\n \"is_private\": \"N\",\n \"us_citizen\": \"Y\",\n \"marketing_notification\": \"Y\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Body
"Shakil"
"Dhanga"
Athlete identifier
"athlete_slug_01"
"1970-01-01"
"Abilene Christian University"
1
"Austin, TX"
Comma-separated skill names
"Content Creation, Fitness, Gaming"
24
Graduation year
"2020"
Male, Female, Other "Male"
"Student-athlete and content creator."
"All-conference 2023"
"65"
"3 years varsity"
5846161322
Image path or base64 with data URI prefix (e.g. data:image/png;base64,...)
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."
Image path or base64 encoded with data URI prefix (e.g. data:image/png;base64,...)
"storage/images/profile_photo/example.png"
Team profile photo path or base64 with data URI prefix (e.g. data:image/png;base64,...)
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."
Team cover photo path or base64 with data URI prefix (e.g. data:image/png;base64,...)
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."
"786"
Total height in inches
67
Height feet component
5
Height inches component
7
"5"
"L - (Large)"
"32"
"7.5"
"Wildcats"
Team color hex or name
"#1a1a2e"
Team athlete names
[]
Y = private profile, N = public
Y, N "N"
US citizenship status
Y, N "Y"
Marketing notification preference
"Y"
Response
Profile updated