curl --request POST \
--url https://api.glass.fm/vLatest/action/glasscore/person \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"nameFirst": "<string>",
"nameLast": "<string>",
"OrgId": 123,
"zip": "<string>",
"alias": [
{
"PersonId": 123,
"AliasTypeId": 123,
"nameFirst": "<string>",
"nameLast": "<string>"
}
],
"applicant": [
{
"PersonId": 123,
"aliasNameFirst": "<string>",
"aliasNameLast": "<string>",
"applicationDate": "<string>",
"currentAddressYearStart": "<string>",
"georgia_race": "<string>",
"info": [
{
"OrderItemId": 123,
"descrip": "<string>",
"infoItem": [
{
"FeatureSetId": 123,
"AttributeId": "<string>",
"choice": "<string>",
"featureSetDescrip": "<string>",
"featureSetName": "<string>",
"InfoId": 123,
"PersonId": 123,
"valueDate": "<string>",
"valueFeatureId": 123,
"valueNumber": 123,
"valueText": "<string>"
}
],
"isSubmitted": 123,
"PersonId": 123,
"ProductId": 123
}
],
"priorAddressCity": "<string>",
"priorAddressCounty": "<string>",
"priorAddressState": "<string>",
"priorAddressStreetPrimary": "<string>",
"priorAddressStreetSecondary": "<string>",
"priorAddressYearEnd": "<string>",
"priorAddressYearStart": "<string>",
"priorAddressZip": "<string>",
"ssn": "<string>"
}
],
"author": [
{
"PersonId": 123,
"affiliation": "<string>",
"avatarUploadCare": "<string>",
"bio": "<string>",
"birthPlace": "<string>",
"ContentId": 123,
"isActive": true,
"jobTitle": "<string>",
"nationality": "<string>",
"o_dateOfBirth": "<string>",
"o_gender": "<string>",
"o_nameFirst": "<string>",
"o_nameLast": "<string>",
"override": "<string>",
"slug": "<string>",
"telephone": "<string>",
"url": "<string>",
"worksFor": "<string>"
}
],
"CategoryId": 123,
"city": "<string>",
"dateOfBirth": "<string>",
"email": "<string>",
"gender": "<string>",
"lat": 123,
"lng": 123,
"nameMiddle": "<string>",
"phone": "<string>",
"phoneOffice": "<string>",
"phoneOfficeExt": "<string>",
"Preferred~HsVendorId": 123,
"RandomPoolStatusId": 123,
"staff": [
{
"PersonId": 123,
"CategoryId": 123,
"dateOfHire": "<string>",
"dateOfTermination": "<string>",
"jobTitle": "<string>",
"JobTitleId": 123,
"salary": 123,
"SalaryPeriodId": 123
}
],
"state": "<string>",
"streetPrimary": "<string>",
"streetSecondary": "<string>",
"tagJoin": [
{
"parentEntity": "<string>",
"ParentId": 123,
"TagId": 123
}
],
"user": [
{
"nameFirst": "<string>",
"nameLast": "<string>",
"RoleId": 123,
"avatar": "<string>",
"email": "<string>",
"getInvoiceEmail": true,
"getMarketingEmail": true,
"getMarketingText": true,
"getOrderItemRegistrationEmail": true,
"getOrderItemRegistrationText": true,
"getOrderItemResultEmail": true,
"getOrderItemResultText": true,
"getOrderItemStatusEmail": true,
"getOrderItemStatusText": true,
"getOrgMonthRandomsEmail": true,
"isInvited": true,
"isSuspended": true,
"nickname": "<string>",
"PersonId": 123,
"phone": "<string>",
"UserOverride": [
{
"EntityId": 123,
"UserId": 123,
"add": "<string>",
"blockDrop": true,
"delete": "<string>",
"edit": "<string>",
"get": "<string>"
}
]
}
],
"UserId": 123
}
'import requests
url = "https://api.glass.fm/vLatest/action/glasscore/person"
payload = {
"nameFirst": "<string>",
"nameLast": "<string>",
"OrgId": 123,
"zip": "<string>",
"alias": [
{
"PersonId": 123,
"AliasTypeId": 123,
"nameFirst": "<string>",
"nameLast": "<string>"
}
],
"applicant": [
{
"PersonId": 123,
"aliasNameFirst": "<string>",
"aliasNameLast": "<string>",
"applicationDate": "<string>",
"currentAddressYearStart": "<string>",
"georgia_race": "<string>",
"info": [
{
"OrderItemId": 123,
"descrip": "<string>",
"infoItem": [
{
"FeatureSetId": 123,
"AttributeId": "<string>",
"choice": "<string>",
"featureSetDescrip": "<string>",
"featureSetName": "<string>",
"InfoId": 123,
"PersonId": 123,
"valueDate": "<string>",
"valueFeatureId": 123,
"valueNumber": 123,
"valueText": "<string>"
}
],
"isSubmitted": 123,
"PersonId": 123,
"ProductId": 123
}
],
"priorAddressCity": "<string>",
"priorAddressCounty": "<string>",
"priorAddressState": "<string>",
"priorAddressStreetPrimary": "<string>",
"priorAddressStreetSecondary": "<string>",
"priorAddressYearEnd": "<string>",
"priorAddressYearStart": "<string>",
"priorAddressZip": "<string>",
"ssn": "<string>"
}
],
"author": [
{
"PersonId": 123,
"affiliation": "<string>",
"avatarUploadCare": "<string>",
"bio": "<string>",
"birthPlace": "<string>",
"ContentId": 123,
"isActive": True,
"jobTitle": "<string>",
"nationality": "<string>",
"o_dateOfBirth": "<string>",
"o_gender": "<string>",
"o_nameFirst": "<string>",
"o_nameLast": "<string>",
"override": "<string>",
"slug": "<string>",
"telephone": "<string>",
"url": "<string>",
"worksFor": "<string>"
}
],
"CategoryId": 123,
"city": "<string>",
"dateOfBirth": "<string>",
"email": "<string>",
"gender": "<string>",
"lat": 123,
"lng": 123,
"nameMiddle": "<string>",
"phone": "<string>",
"phoneOffice": "<string>",
"phoneOfficeExt": "<string>",
"Preferred~HsVendorId": 123,
"RandomPoolStatusId": 123,
"staff": [
{
"PersonId": 123,
"CategoryId": 123,
"dateOfHire": "<string>",
"dateOfTermination": "<string>",
"jobTitle": "<string>",
"JobTitleId": 123,
"salary": 123,
"SalaryPeriodId": 123
}
],
"state": "<string>",
"streetPrimary": "<string>",
"streetSecondary": "<string>",
"tagJoin": [
{
"parentEntity": "<string>",
"ParentId": 123,
"TagId": 123
}
],
"user": [
{
"nameFirst": "<string>",
"nameLast": "<string>",
"RoleId": 123,
"avatar": "<string>",
"email": "<string>",
"getInvoiceEmail": True,
"getMarketingEmail": True,
"getMarketingText": True,
"getOrderItemRegistrationEmail": True,
"getOrderItemRegistrationText": True,
"getOrderItemResultEmail": True,
"getOrderItemResultText": True,
"getOrderItemStatusEmail": True,
"getOrderItemStatusText": True,
"getOrgMonthRandomsEmail": True,
"isInvited": True,
"isSuspended": True,
"nickname": "<string>",
"PersonId": 123,
"phone": "<string>",
"UserOverride": [
{
"EntityId": 123,
"UserId": 123,
"add": "<string>",
"blockDrop": True,
"delete": "<string>",
"edit": "<string>",
"get": "<string>"
}
]
}
],
"UserId": 123
}
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({
nameFirst: '<string>',
nameLast: '<string>',
OrgId: 123,
zip: '<string>',
alias: [{PersonId: 123, AliasTypeId: 123, nameFirst: '<string>', nameLast: '<string>'}],
applicant: [
{
PersonId: 123,
aliasNameFirst: '<string>',
aliasNameLast: '<string>',
applicationDate: '<string>',
currentAddressYearStart: '<string>',
georgia_race: '<string>',
info: [
{
OrderItemId: 123,
descrip: '<string>',
infoItem: [
{
FeatureSetId: 123,
AttributeId: '<string>',
choice: '<string>',
featureSetDescrip: '<string>',
featureSetName: '<string>',
InfoId: 123,
PersonId: 123,
valueDate: '<string>',
valueFeatureId: 123,
valueNumber: 123,
valueText: '<string>'
}
],
isSubmitted: 123,
PersonId: 123,
ProductId: 123
}
],
priorAddressCity: '<string>',
priorAddressCounty: '<string>',
priorAddressState: '<string>',
priorAddressStreetPrimary: '<string>',
priorAddressStreetSecondary: '<string>',
priorAddressYearEnd: '<string>',
priorAddressYearStart: '<string>',
priorAddressZip: '<string>',
ssn: '<string>'
}
],
author: [
{
PersonId: 123,
affiliation: '<string>',
avatarUploadCare: '<string>',
bio: '<string>',
birthPlace: '<string>',
ContentId: 123,
isActive: true,
jobTitle: '<string>',
nationality: '<string>',
o_dateOfBirth: '<string>',
o_gender: '<string>',
o_nameFirst: '<string>',
o_nameLast: '<string>',
override: '<string>',
slug: '<string>',
telephone: '<string>',
url: '<string>',
worksFor: '<string>'
}
],
CategoryId: 123,
city: '<string>',
dateOfBirth: '<string>',
email: '<string>',
gender: '<string>',
lat: 123,
lng: 123,
nameMiddle: '<string>',
phone: '<string>',
phoneOffice: '<string>',
phoneOfficeExt: '<string>',
'Preferred~HsVendorId': 123,
RandomPoolStatusId: 123,
staff: [
{
PersonId: 123,
CategoryId: 123,
dateOfHire: '<string>',
dateOfTermination: '<string>',
jobTitle: '<string>',
JobTitleId: 123,
salary: 123,
SalaryPeriodId: 123
}
],
state: '<string>',
streetPrimary: '<string>',
streetSecondary: '<string>',
tagJoin: [{parentEntity: '<string>', ParentId: 123, TagId: 123}],
user: [
{
nameFirst: '<string>',
nameLast: '<string>',
RoleId: 123,
avatar: '<string>',
email: '<string>',
getInvoiceEmail: true,
getMarketingEmail: true,
getMarketingText: true,
getOrderItemRegistrationEmail: true,
getOrderItemRegistrationText: true,
getOrderItemResultEmail: true,
getOrderItemResultText: true,
getOrderItemStatusEmail: true,
getOrderItemStatusText: true,
getOrgMonthRandomsEmail: true,
isInvited: true,
isSuspended: true,
nickname: '<string>',
PersonId: 123,
phone: '<string>',
UserOverride: [
{
EntityId: 123,
UserId: 123,
add: '<string>',
blockDrop: true,
delete: '<string>',
edit: '<string>',
get: '<string>'
}
]
}
],
UserId: 123
})
};
fetch('https://api.glass.fm/vLatest/action/glasscore/person', 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.glass.fm/vLatest/action/glasscore/person",
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([
'nameFirst' => '<string>',
'nameLast' => '<string>',
'OrgId' => 123,
'zip' => '<string>',
'alias' => [
[
'PersonId' => 123,
'AliasTypeId' => 123,
'nameFirst' => '<string>',
'nameLast' => '<string>'
]
],
'applicant' => [
[
'PersonId' => 123,
'aliasNameFirst' => '<string>',
'aliasNameLast' => '<string>',
'applicationDate' => '<string>',
'currentAddressYearStart' => '<string>',
'georgia_race' => '<string>',
'info' => [
[
'OrderItemId' => 123,
'descrip' => '<string>',
'infoItem' => [
[
'FeatureSetId' => 123,
'AttributeId' => '<string>',
'choice' => '<string>',
'featureSetDescrip' => '<string>',
'featureSetName' => '<string>',
'InfoId' => 123,
'PersonId' => 123,
'valueDate' => '<string>',
'valueFeatureId' => 123,
'valueNumber' => 123,
'valueText' => '<string>'
]
],
'isSubmitted' => 123,
'PersonId' => 123,
'ProductId' => 123
]
],
'priorAddressCity' => '<string>',
'priorAddressCounty' => '<string>',
'priorAddressState' => '<string>',
'priorAddressStreetPrimary' => '<string>',
'priorAddressStreetSecondary' => '<string>',
'priorAddressYearEnd' => '<string>',
'priorAddressYearStart' => '<string>',
'priorAddressZip' => '<string>',
'ssn' => '<string>'
]
],
'author' => [
[
'PersonId' => 123,
'affiliation' => '<string>',
'avatarUploadCare' => '<string>',
'bio' => '<string>',
'birthPlace' => '<string>',
'ContentId' => 123,
'isActive' => true,
'jobTitle' => '<string>',
'nationality' => '<string>',
'o_dateOfBirth' => '<string>',
'o_gender' => '<string>',
'o_nameFirst' => '<string>',
'o_nameLast' => '<string>',
'override' => '<string>',
'slug' => '<string>',
'telephone' => '<string>',
'url' => '<string>',
'worksFor' => '<string>'
]
],
'CategoryId' => 123,
'city' => '<string>',
'dateOfBirth' => '<string>',
'email' => '<string>',
'gender' => '<string>',
'lat' => 123,
'lng' => 123,
'nameMiddle' => '<string>',
'phone' => '<string>',
'phoneOffice' => '<string>',
'phoneOfficeExt' => '<string>',
'Preferred~HsVendorId' => 123,
'RandomPoolStatusId' => 123,
'staff' => [
[
'PersonId' => 123,
'CategoryId' => 123,
'dateOfHire' => '<string>',
'dateOfTermination' => '<string>',
'jobTitle' => '<string>',
'JobTitleId' => 123,
'salary' => 123,
'SalaryPeriodId' => 123
]
],
'state' => '<string>',
'streetPrimary' => '<string>',
'streetSecondary' => '<string>',
'tagJoin' => [
[
'parentEntity' => '<string>',
'ParentId' => 123,
'TagId' => 123
]
],
'user' => [
[
'nameFirst' => '<string>',
'nameLast' => '<string>',
'RoleId' => 123,
'avatar' => '<string>',
'email' => '<string>',
'getInvoiceEmail' => true,
'getMarketingEmail' => true,
'getMarketingText' => true,
'getOrderItemRegistrationEmail' => true,
'getOrderItemRegistrationText' => true,
'getOrderItemResultEmail' => true,
'getOrderItemResultText' => true,
'getOrderItemStatusEmail' => true,
'getOrderItemStatusText' => true,
'getOrgMonthRandomsEmail' => true,
'isInvited' => true,
'isSuspended' => true,
'nickname' => '<string>',
'PersonId' => 123,
'phone' => '<string>',
'UserOverride' => [
[
'EntityId' => 123,
'UserId' => 123,
'add' => '<string>',
'blockDrop' => true,
'delete' => '<string>',
'edit' => '<string>',
'get' => '<string>'
]
]
]
],
'UserId' => 123
]),
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 := "https://api.glass.fm/vLatest/action/glasscore/person"
payload := strings.NewReader("{\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\",\n \"OrgId\": 123,\n \"zip\": \"<string>\",\n \"alias\": [\n {\n \"PersonId\": 123,\n \"AliasTypeId\": 123,\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\"\n }\n ],\n \"applicant\": [\n {\n \"PersonId\": 123,\n \"aliasNameFirst\": \"<string>\",\n \"aliasNameLast\": \"<string>\",\n \"applicationDate\": \"<string>\",\n \"currentAddressYearStart\": \"<string>\",\n \"georgia_race\": \"<string>\",\n \"info\": [\n {\n \"OrderItemId\": 123,\n \"descrip\": \"<string>\",\n \"infoItem\": [\n {\n \"FeatureSetId\": 123,\n \"AttributeId\": \"<string>\",\n \"choice\": \"<string>\",\n \"featureSetDescrip\": \"<string>\",\n \"featureSetName\": \"<string>\",\n \"InfoId\": 123,\n \"PersonId\": 123,\n \"valueDate\": \"<string>\",\n \"valueFeatureId\": 123,\n \"valueNumber\": 123,\n \"valueText\": \"<string>\"\n }\n ],\n \"isSubmitted\": 123,\n \"PersonId\": 123,\n \"ProductId\": 123\n }\n ],\n \"priorAddressCity\": \"<string>\",\n \"priorAddressCounty\": \"<string>\",\n \"priorAddressState\": \"<string>\",\n \"priorAddressStreetPrimary\": \"<string>\",\n \"priorAddressStreetSecondary\": \"<string>\",\n \"priorAddressYearEnd\": \"<string>\",\n \"priorAddressYearStart\": \"<string>\",\n \"priorAddressZip\": \"<string>\",\n \"ssn\": \"<string>\"\n }\n ],\n \"author\": [\n {\n \"PersonId\": 123,\n \"affiliation\": \"<string>\",\n \"avatarUploadCare\": \"<string>\",\n \"bio\": \"<string>\",\n \"birthPlace\": \"<string>\",\n \"ContentId\": 123,\n \"isActive\": true,\n \"jobTitle\": \"<string>\",\n \"nationality\": \"<string>\",\n \"o_dateOfBirth\": \"<string>\",\n \"o_gender\": \"<string>\",\n \"o_nameFirst\": \"<string>\",\n \"o_nameLast\": \"<string>\",\n \"override\": \"<string>\",\n \"slug\": \"<string>\",\n \"telephone\": \"<string>\",\n \"url\": \"<string>\",\n \"worksFor\": \"<string>\"\n }\n ],\n \"CategoryId\": 123,\n \"city\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"email\": \"<string>\",\n \"gender\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"nameMiddle\": \"<string>\",\n \"phone\": \"<string>\",\n \"phoneOffice\": \"<string>\",\n \"phoneOfficeExt\": \"<string>\",\n \"Preferred~HsVendorId\": 123,\n \"RandomPoolStatusId\": 123,\n \"staff\": [\n {\n \"PersonId\": 123,\n \"CategoryId\": 123,\n \"dateOfHire\": \"<string>\",\n \"dateOfTermination\": \"<string>\",\n \"jobTitle\": \"<string>\",\n \"JobTitleId\": 123,\n \"salary\": 123,\n \"SalaryPeriodId\": 123\n }\n ],\n \"state\": \"<string>\",\n \"streetPrimary\": \"<string>\",\n \"streetSecondary\": \"<string>\",\n \"tagJoin\": [\n {\n \"parentEntity\": \"<string>\",\n \"ParentId\": 123,\n \"TagId\": 123\n }\n ],\n \"user\": [\n {\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\",\n \"RoleId\": 123,\n \"avatar\": \"<string>\",\n \"email\": \"<string>\",\n \"getInvoiceEmail\": true,\n \"getMarketingEmail\": true,\n \"getMarketingText\": true,\n \"getOrderItemRegistrationEmail\": true,\n \"getOrderItemRegistrationText\": true,\n \"getOrderItemResultEmail\": true,\n \"getOrderItemResultText\": true,\n \"getOrderItemStatusEmail\": true,\n \"getOrderItemStatusText\": true,\n \"getOrgMonthRandomsEmail\": true,\n \"isInvited\": true,\n \"isSuspended\": true,\n \"nickname\": \"<string>\",\n \"PersonId\": 123,\n \"phone\": \"<string>\",\n \"UserOverride\": [\n {\n \"EntityId\": 123,\n \"UserId\": 123,\n \"add\": \"<string>\",\n \"blockDrop\": true,\n \"delete\": \"<string>\",\n \"edit\": \"<string>\",\n \"get\": \"<string>\"\n }\n ]\n }\n ],\n \"UserId\": 123\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("https://api.glass.fm/vLatest/action/glasscore/person")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\",\n \"OrgId\": 123,\n \"zip\": \"<string>\",\n \"alias\": [\n {\n \"PersonId\": 123,\n \"AliasTypeId\": 123,\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\"\n }\n ],\n \"applicant\": [\n {\n \"PersonId\": 123,\n \"aliasNameFirst\": \"<string>\",\n \"aliasNameLast\": \"<string>\",\n \"applicationDate\": \"<string>\",\n \"currentAddressYearStart\": \"<string>\",\n \"georgia_race\": \"<string>\",\n \"info\": [\n {\n \"OrderItemId\": 123,\n \"descrip\": \"<string>\",\n \"infoItem\": [\n {\n \"FeatureSetId\": 123,\n \"AttributeId\": \"<string>\",\n \"choice\": \"<string>\",\n \"featureSetDescrip\": \"<string>\",\n \"featureSetName\": \"<string>\",\n \"InfoId\": 123,\n \"PersonId\": 123,\n \"valueDate\": \"<string>\",\n \"valueFeatureId\": 123,\n \"valueNumber\": 123,\n \"valueText\": \"<string>\"\n }\n ],\n \"isSubmitted\": 123,\n \"PersonId\": 123,\n \"ProductId\": 123\n }\n ],\n \"priorAddressCity\": \"<string>\",\n \"priorAddressCounty\": \"<string>\",\n \"priorAddressState\": \"<string>\",\n \"priorAddressStreetPrimary\": \"<string>\",\n \"priorAddressStreetSecondary\": \"<string>\",\n \"priorAddressYearEnd\": \"<string>\",\n \"priorAddressYearStart\": \"<string>\",\n \"priorAddressZip\": \"<string>\",\n \"ssn\": \"<string>\"\n }\n ],\n \"author\": [\n {\n \"PersonId\": 123,\n \"affiliation\": \"<string>\",\n \"avatarUploadCare\": \"<string>\",\n \"bio\": \"<string>\",\n \"birthPlace\": \"<string>\",\n \"ContentId\": 123,\n \"isActive\": true,\n \"jobTitle\": \"<string>\",\n \"nationality\": \"<string>\",\n \"o_dateOfBirth\": \"<string>\",\n \"o_gender\": \"<string>\",\n \"o_nameFirst\": \"<string>\",\n \"o_nameLast\": \"<string>\",\n \"override\": \"<string>\",\n \"slug\": \"<string>\",\n \"telephone\": \"<string>\",\n \"url\": \"<string>\",\n \"worksFor\": \"<string>\"\n }\n ],\n \"CategoryId\": 123,\n \"city\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"email\": \"<string>\",\n \"gender\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"nameMiddle\": \"<string>\",\n \"phone\": \"<string>\",\n \"phoneOffice\": \"<string>\",\n \"phoneOfficeExt\": \"<string>\",\n \"Preferred~HsVendorId\": 123,\n \"RandomPoolStatusId\": 123,\n \"staff\": [\n {\n \"PersonId\": 123,\n \"CategoryId\": 123,\n \"dateOfHire\": \"<string>\",\n \"dateOfTermination\": \"<string>\",\n \"jobTitle\": \"<string>\",\n \"JobTitleId\": 123,\n \"salary\": 123,\n \"SalaryPeriodId\": 123\n }\n ],\n \"state\": \"<string>\",\n \"streetPrimary\": \"<string>\",\n \"streetSecondary\": \"<string>\",\n \"tagJoin\": [\n {\n \"parentEntity\": \"<string>\",\n \"ParentId\": 123,\n \"TagId\": 123\n }\n ],\n \"user\": [\n {\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\",\n \"RoleId\": 123,\n \"avatar\": \"<string>\",\n \"email\": \"<string>\",\n \"getInvoiceEmail\": true,\n \"getMarketingEmail\": true,\n \"getMarketingText\": true,\n \"getOrderItemRegistrationEmail\": true,\n \"getOrderItemRegistrationText\": true,\n \"getOrderItemResultEmail\": true,\n \"getOrderItemResultText\": true,\n \"getOrderItemStatusEmail\": true,\n \"getOrderItemStatusText\": true,\n \"getOrgMonthRandomsEmail\": true,\n \"isInvited\": true,\n \"isSuspended\": true,\n \"nickname\": \"<string>\",\n \"PersonId\": 123,\n \"phone\": \"<string>\",\n \"UserOverride\": [\n {\n \"EntityId\": 123,\n \"UserId\": 123,\n \"add\": \"<string>\",\n \"blockDrop\": true,\n \"delete\": \"<string>\",\n \"edit\": \"<string>\",\n \"get\": \"<string>\"\n }\n ]\n }\n ],\n \"UserId\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.glass.fm/vLatest/action/glasscore/person")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\",\n \"OrgId\": 123,\n \"zip\": \"<string>\",\n \"alias\": [\n {\n \"PersonId\": 123,\n \"AliasTypeId\": 123,\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\"\n }\n ],\n \"applicant\": [\n {\n \"PersonId\": 123,\n \"aliasNameFirst\": \"<string>\",\n \"aliasNameLast\": \"<string>\",\n \"applicationDate\": \"<string>\",\n \"currentAddressYearStart\": \"<string>\",\n \"georgia_race\": \"<string>\",\n \"info\": [\n {\n \"OrderItemId\": 123,\n \"descrip\": \"<string>\",\n \"infoItem\": [\n {\n \"FeatureSetId\": 123,\n \"AttributeId\": \"<string>\",\n \"choice\": \"<string>\",\n \"featureSetDescrip\": \"<string>\",\n \"featureSetName\": \"<string>\",\n \"InfoId\": 123,\n \"PersonId\": 123,\n \"valueDate\": \"<string>\",\n \"valueFeatureId\": 123,\n \"valueNumber\": 123,\n \"valueText\": \"<string>\"\n }\n ],\n \"isSubmitted\": 123,\n \"PersonId\": 123,\n \"ProductId\": 123\n }\n ],\n \"priorAddressCity\": \"<string>\",\n \"priorAddressCounty\": \"<string>\",\n \"priorAddressState\": \"<string>\",\n \"priorAddressStreetPrimary\": \"<string>\",\n \"priorAddressStreetSecondary\": \"<string>\",\n \"priorAddressYearEnd\": \"<string>\",\n \"priorAddressYearStart\": \"<string>\",\n \"priorAddressZip\": \"<string>\",\n \"ssn\": \"<string>\"\n }\n ],\n \"author\": [\n {\n \"PersonId\": 123,\n \"affiliation\": \"<string>\",\n \"avatarUploadCare\": \"<string>\",\n \"bio\": \"<string>\",\n \"birthPlace\": \"<string>\",\n \"ContentId\": 123,\n \"isActive\": true,\n \"jobTitle\": \"<string>\",\n \"nationality\": \"<string>\",\n \"o_dateOfBirth\": \"<string>\",\n \"o_gender\": \"<string>\",\n \"o_nameFirst\": \"<string>\",\n \"o_nameLast\": \"<string>\",\n \"override\": \"<string>\",\n \"slug\": \"<string>\",\n \"telephone\": \"<string>\",\n \"url\": \"<string>\",\n \"worksFor\": \"<string>\"\n }\n ],\n \"CategoryId\": 123,\n \"city\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"email\": \"<string>\",\n \"gender\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"nameMiddle\": \"<string>\",\n \"phone\": \"<string>\",\n \"phoneOffice\": \"<string>\",\n \"phoneOfficeExt\": \"<string>\",\n \"Preferred~HsVendorId\": 123,\n \"RandomPoolStatusId\": 123,\n \"staff\": [\n {\n \"PersonId\": 123,\n \"CategoryId\": 123,\n \"dateOfHire\": \"<string>\",\n \"dateOfTermination\": \"<string>\",\n \"jobTitle\": \"<string>\",\n \"JobTitleId\": 123,\n \"salary\": 123,\n \"SalaryPeriodId\": 123\n }\n ],\n \"state\": \"<string>\",\n \"streetPrimary\": \"<string>\",\n \"streetSecondary\": \"<string>\",\n \"tagJoin\": [\n {\n \"parentEntity\": \"<string>\",\n \"ParentId\": 123,\n \"TagId\": 123\n }\n ],\n \"user\": [\n {\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\",\n \"RoleId\": 123,\n \"avatar\": \"<string>\",\n \"email\": \"<string>\",\n \"getInvoiceEmail\": true,\n \"getMarketingEmail\": true,\n \"getMarketingText\": true,\n \"getOrderItemRegistrationEmail\": true,\n \"getOrderItemRegistrationText\": true,\n \"getOrderItemResultEmail\": true,\n \"getOrderItemResultText\": true,\n \"getOrderItemStatusEmail\": true,\n \"getOrderItemStatusText\": true,\n \"getOrgMonthRandomsEmail\": true,\n \"isInvited\": true,\n \"isSuspended\": true,\n \"nickname\": \"<string>\",\n \"PersonId\": 123,\n \"phone\": \"<string>\",\n \"UserOverride\": [\n {\n \"EntityId\": 123,\n \"UserId\": 123,\n \"add\": \"<string>\",\n \"blockDrop\": true,\n \"delete\": \"<string>\",\n \"edit\": \"<string>\",\n \"get\": \"<string>\"\n }\n ]\n }\n ],\n \"UserId\": 123\n}"
response = http.request(request)
puts response.read_bodyCreate Person
Create a new Person
curl --request POST \
--url https://api.glass.fm/vLatest/action/glasscore/person \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"nameFirst": "<string>",
"nameLast": "<string>",
"OrgId": 123,
"zip": "<string>",
"alias": [
{
"PersonId": 123,
"AliasTypeId": 123,
"nameFirst": "<string>",
"nameLast": "<string>"
}
],
"applicant": [
{
"PersonId": 123,
"aliasNameFirst": "<string>",
"aliasNameLast": "<string>",
"applicationDate": "<string>",
"currentAddressYearStart": "<string>",
"georgia_race": "<string>",
"info": [
{
"OrderItemId": 123,
"descrip": "<string>",
"infoItem": [
{
"FeatureSetId": 123,
"AttributeId": "<string>",
"choice": "<string>",
"featureSetDescrip": "<string>",
"featureSetName": "<string>",
"InfoId": 123,
"PersonId": 123,
"valueDate": "<string>",
"valueFeatureId": 123,
"valueNumber": 123,
"valueText": "<string>"
}
],
"isSubmitted": 123,
"PersonId": 123,
"ProductId": 123
}
],
"priorAddressCity": "<string>",
"priorAddressCounty": "<string>",
"priorAddressState": "<string>",
"priorAddressStreetPrimary": "<string>",
"priorAddressStreetSecondary": "<string>",
"priorAddressYearEnd": "<string>",
"priorAddressYearStart": "<string>",
"priorAddressZip": "<string>",
"ssn": "<string>"
}
],
"author": [
{
"PersonId": 123,
"affiliation": "<string>",
"avatarUploadCare": "<string>",
"bio": "<string>",
"birthPlace": "<string>",
"ContentId": 123,
"isActive": true,
"jobTitle": "<string>",
"nationality": "<string>",
"o_dateOfBirth": "<string>",
"o_gender": "<string>",
"o_nameFirst": "<string>",
"o_nameLast": "<string>",
"override": "<string>",
"slug": "<string>",
"telephone": "<string>",
"url": "<string>",
"worksFor": "<string>"
}
],
"CategoryId": 123,
"city": "<string>",
"dateOfBirth": "<string>",
"email": "<string>",
"gender": "<string>",
"lat": 123,
"lng": 123,
"nameMiddle": "<string>",
"phone": "<string>",
"phoneOffice": "<string>",
"phoneOfficeExt": "<string>",
"Preferred~HsVendorId": 123,
"RandomPoolStatusId": 123,
"staff": [
{
"PersonId": 123,
"CategoryId": 123,
"dateOfHire": "<string>",
"dateOfTermination": "<string>",
"jobTitle": "<string>",
"JobTitleId": 123,
"salary": 123,
"SalaryPeriodId": 123
}
],
"state": "<string>",
"streetPrimary": "<string>",
"streetSecondary": "<string>",
"tagJoin": [
{
"parentEntity": "<string>",
"ParentId": 123,
"TagId": 123
}
],
"user": [
{
"nameFirst": "<string>",
"nameLast": "<string>",
"RoleId": 123,
"avatar": "<string>",
"email": "<string>",
"getInvoiceEmail": true,
"getMarketingEmail": true,
"getMarketingText": true,
"getOrderItemRegistrationEmail": true,
"getOrderItemRegistrationText": true,
"getOrderItemResultEmail": true,
"getOrderItemResultText": true,
"getOrderItemStatusEmail": true,
"getOrderItemStatusText": true,
"getOrgMonthRandomsEmail": true,
"isInvited": true,
"isSuspended": true,
"nickname": "<string>",
"PersonId": 123,
"phone": "<string>",
"UserOverride": [
{
"EntityId": 123,
"UserId": 123,
"add": "<string>",
"blockDrop": true,
"delete": "<string>",
"edit": "<string>",
"get": "<string>"
}
]
}
],
"UserId": 123
}
'import requests
url = "https://api.glass.fm/vLatest/action/glasscore/person"
payload = {
"nameFirst": "<string>",
"nameLast": "<string>",
"OrgId": 123,
"zip": "<string>",
"alias": [
{
"PersonId": 123,
"AliasTypeId": 123,
"nameFirst": "<string>",
"nameLast": "<string>"
}
],
"applicant": [
{
"PersonId": 123,
"aliasNameFirst": "<string>",
"aliasNameLast": "<string>",
"applicationDate": "<string>",
"currentAddressYearStart": "<string>",
"georgia_race": "<string>",
"info": [
{
"OrderItemId": 123,
"descrip": "<string>",
"infoItem": [
{
"FeatureSetId": 123,
"AttributeId": "<string>",
"choice": "<string>",
"featureSetDescrip": "<string>",
"featureSetName": "<string>",
"InfoId": 123,
"PersonId": 123,
"valueDate": "<string>",
"valueFeatureId": 123,
"valueNumber": 123,
"valueText": "<string>"
}
],
"isSubmitted": 123,
"PersonId": 123,
"ProductId": 123
}
],
"priorAddressCity": "<string>",
"priorAddressCounty": "<string>",
"priorAddressState": "<string>",
"priorAddressStreetPrimary": "<string>",
"priorAddressStreetSecondary": "<string>",
"priorAddressYearEnd": "<string>",
"priorAddressYearStart": "<string>",
"priorAddressZip": "<string>",
"ssn": "<string>"
}
],
"author": [
{
"PersonId": 123,
"affiliation": "<string>",
"avatarUploadCare": "<string>",
"bio": "<string>",
"birthPlace": "<string>",
"ContentId": 123,
"isActive": True,
"jobTitle": "<string>",
"nationality": "<string>",
"o_dateOfBirth": "<string>",
"o_gender": "<string>",
"o_nameFirst": "<string>",
"o_nameLast": "<string>",
"override": "<string>",
"slug": "<string>",
"telephone": "<string>",
"url": "<string>",
"worksFor": "<string>"
}
],
"CategoryId": 123,
"city": "<string>",
"dateOfBirth": "<string>",
"email": "<string>",
"gender": "<string>",
"lat": 123,
"lng": 123,
"nameMiddle": "<string>",
"phone": "<string>",
"phoneOffice": "<string>",
"phoneOfficeExt": "<string>",
"Preferred~HsVendorId": 123,
"RandomPoolStatusId": 123,
"staff": [
{
"PersonId": 123,
"CategoryId": 123,
"dateOfHire": "<string>",
"dateOfTermination": "<string>",
"jobTitle": "<string>",
"JobTitleId": 123,
"salary": 123,
"SalaryPeriodId": 123
}
],
"state": "<string>",
"streetPrimary": "<string>",
"streetSecondary": "<string>",
"tagJoin": [
{
"parentEntity": "<string>",
"ParentId": 123,
"TagId": 123
}
],
"user": [
{
"nameFirst": "<string>",
"nameLast": "<string>",
"RoleId": 123,
"avatar": "<string>",
"email": "<string>",
"getInvoiceEmail": True,
"getMarketingEmail": True,
"getMarketingText": True,
"getOrderItemRegistrationEmail": True,
"getOrderItemRegistrationText": True,
"getOrderItemResultEmail": True,
"getOrderItemResultText": True,
"getOrderItemStatusEmail": True,
"getOrderItemStatusText": True,
"getOrgMonthRandomsEmail": True,
"isInvited": True,
"isSuspended": True,
"nickname": "<string>",
"PersonId": 123,
"phone": "<string>",
"UserOverride": [
{
"EntityId": 123,
"UserId": 123,
"add": "<string>",
"blockDrop": True,
"delete": "<string>",
"edit": "<string>",
"get": "<string>"
}
]
}
],
"UserId": 123
}
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({
nameFirst: '<string>',
nameLast: '<string>',
OrgId: 123,
zip: '<string>',
alias: [{PersonId: 123, AliasTypeId: 123, nameFirst: '<string>', nameLast: '<string>'}],
applicant: [
{
PersonId: 123,
aliasNameFirst: '<string>',
aliasNameLast: '<string>',
applicationDate: '<string>',
currentAddressYearStart: '<string>',
georgia_race: '<string>',
info: [
{
OrderItemId: 123,
descrip: '<string>',
infoItem: [
{
FeatureSetId: 123,
AttributeId: '<string>',
choice: '<string>',
featureSetDescrip: '<string>',
featureSetName: '<string>',
InfoId: 123,
PersonId: 123,
valueDate: '<string>',
valueFeatureId: 123,
valueNumber: 123,
valueText: '<string>'
}
],
isSubmitted: 123,
PersonId: 123,
ProductId: 123
}
],
priorAddressCity: '<string>',
priorAddressCounty: '<string>',
priorAddressState: '<string>',
priorAddressStreetPrimary: '<string>',
priorAddressStreetSecondary: '<string>',
priorAddressYearEnd: '<string>',
priorAddressYearStart: '<string>',
priorAddressZip: '<string>',
ssn: '<string>'
}
],
author: [
{
PersonId: 123,
affiliation: '<string>',
avatarUploadCare: '<string>',
bio: '<string>',
birthPlace: '<string>',
ContentId: 123,
isActive: true,
jobTitle: '<string>',
nationality: '<string>',
o_dateOfBirth: '<string>',
o_gender: '<string>',
o_nameFirst: '<string>',
o_nameLast: '<string>',
override: '<string>',
slug: '<string>',
telephone: '<string>',
url: '<string>',
worksFor: '<string>'
}
],
CategoryId: 123,
city: '<string>',
dateOfBirth: '<string>',
email: '<string>',
gender: '<string>',
lat: 123,
lng: 123,
nameMiddle: '<string>',
phone: '<string>',
phoneOffice: '<string>',
phoneOfficeExt: '<string>',
'Preferred~HsVendorId': 123,
RandomPoolStatusId: 123,
staff: [
{
PersonId: 123,
CategoryId: 123,
dateOfHire: '<string>',
dateOfTermination: '<string>',
jobTitle: '<string>',
JobTitleId: 123,
salary: 123,
SalaryPeriodId: 123
}
],
state: '<string>',
streetPrimary: '<string>',
streetSecondary: '<string>',
tagJoin: [{parentEntity: '<string>', ParentId: 123, TagId: 123}],
user: [
{
nameFirst: '<string>',
nameLast: '<string>',
RoleId: 123,
avatar: '<string>',
email: '<string>',
getInvoiceEmail: true,
getMarketingEmail: true,
getMarketingText: true,
getOrderItemRegistrationEmail: true,
getOrderItemRegistrationText: true,
getOrderItemResultEmail: true,
getOrderItemResultText: true,
getOrderItemStatusEmail: true,
getOrderItemStatusText: true,
getOrgMonthRandomsEmail: true,
isInvited: true,
isSuspended: true,
nickname: '<string>',
PersonId: 123,
phone: '<string>',
UserOverride: [
{
EntityId: 123,
UserId: 123,
add: '<string>',
blockDrop: true,
delete: '<string>',
edit: '<string>',
get: '<string>'
}
]
}
],
UserId: 123
})
};
fetch('https://api.glass.fm/vLatest/action/glasscore/person', 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.glass.fm/vLatest/action/glasscore/person",
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([
'nameFirst' => '<string>',
'nameLast' => '<string>',
'OrgId' => 123,
'zip' => '<string>',
'alias' => [
[
'PersonId' => 123,
'AliasTypeId' => 123,
'nameFirst' => '<string>',
'nameLast' => '<string>'
]
],
'applicant' => [
[
'PersonId' => 123,
'aliasNameFirst' => '<string>',
'aliasNameLast' => '<string>',
'applicationDate' => '<string>',
'currentAddressYearStart' => '<string>',
'georgia_race' => '<string>',
'info' => [
[
'OrderItemId' => 123,
'descrip' => '<string>',
'infoItem' => [
[
'FeatureSetId' => 123,
'AttributeId' => '<string>',
'choice' => '<string>',
'featureSetDescrip' => '<string>',
'featureSetName' => '<string>',
'InfoId' => 123,
'PersonId' => 123,
'valueDate' => '<string>',
'valueFeatureId' => 123,
'valueNumber' => 123,
'valueText' => '<string>'
]
],
'isSubmitted' => 123,
'PersonId' => 123,
'ProductId' => 123
]
],
'priorAddressCity' => '<string>',
'priorAddressCounty' => '<string>',
'priorAddressState' => '<string>',
'priorAddressStreetPrimary' => '<string>',
'priorAddressStreetSecondary' => '<string>',
'priorAddressYearEnd' => '<string>',
'priorAddressYearStart' => '<string>',
'priorAddressZip' => '<string>',
'ssn' => '<string>'
]
],
'author' => [
[
'PersonId' => 123,
'affiliation' => '<string>',
'avatarUploadCare' => '<string>',
'bio' => '<string>',
'birthPlace' => '<string>',
'ContentId' => 123,
'isActive' => true,
'jobTitle' => '<string>',
'nationality' => '<string>',
'o_dateOfBirth' => '<string>',
'o_gender' => '<string>',
'o_nameFirst' => '<string>',
'o_nameLast' => '<string>',
'override' => '<string>',
'slug' => '<string>',
'telephone' => '<string>',
'url' => '<string>',
'worksFor' => '<string>'
]
],
'CategoryId' => 123,
'city' => '<string>',
'dateOfBirth' => '<string>',
'email' => '<string>',
'gender' => '<string>',
'lat' => 123,
'lng' => 123,
'nameMiddle' => '<string>',
'phone' => '<string>',
'phoneOffice' => '<string>',
'phoneOfficeExt' => '<string>',
'Preferred~HsVendorId' => 123,
'RandomPoolStatusId' => 123,
'staff' => [
[
'PersonId' => 123,
'CategoryId' => 123,
'dateOfHire' => '<string>',
'dateOfTermination' => '<string>',
'jobTitle' => '<string>',
'JobTitleId' => 123,
'salary' => 123,
'SalaryPeriodId' => 123
]
],
'state' => '<string>',
'streetPrimary' => '<string>',
'streetSecondary' => '<string>',
'tagJoin' => [
[
'parentEntity' => '<string>',
'ParentId' => 123,
'TagId' => 123
]
],
'user' => [
[
'nameFirst' => '<string>',
'nameLast' => '<string>',
'RoleId' => 123,
'avatar' => '<string>',
'email' => '<string>',
'getInvoiceEmail' => true,
'getMarketingEmail' => true,
'getMarketingText' => true,
'getOrderItemRegistrationEmail' => true,
'getOrderItemRegistrationText' => true,
'getOrderItemResultEmail' => true,
'getOrderItemResultText' => true,
'getOrderItemStatusEmail' => true,
'getOrderItemStatusText' => true,
'getOrgMonthRandomsEmail' => true,
'isInvited' => true,
'isSuspended' => true,
'nickname' => '<string>',
'PersonId' => 123,
'phone' => '<string>',
'UserOverride' => [
[
'EntityId' => 123,
'UserId' => 123,
'add' => '<string>',
'blockDrop' => true,
'delete' => '<string>',
'edit' => '<string>',
'get' => '<string>'
]
]
]
],
'UserId' => 123
]),
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 := "https://api.glass.fm/vLatest/action/glasscore/person"
payload := strings.NewReader("{\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\",\n \"OrgId\": 123,\n \"zip\": \"<string>\",\n \"alias\": [\n {\n \"PersonId\": 123,\n \"AliasTypeId\": 123,\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\"\n }\n ],\n \"applicant\": [\n {\n \"PersonId\": 123,\n \"aliasNameFirst\": \"<string>\",\n \"aliasNameLast\": \"<string>\",\n \"applicationDate\": \"<string>\",\n \"currentAddressYearStart\": \"<string>\",\n \"georgia_race\": \"<string>\",\n \"info\": [\n {\n \"OrderItemId\": 123,\n \"descrip\": \"<string>\",\n \"infoItem\": [\n {\n \"FeatureSetId\": 123,\n \"AttributeId\": \"<string>\",\n \"choice\": \"<string>\",\n \"featureSetDescrip\": \"<string>\",\n \"featureSetName\": \"<string>\",\n \"InfoId\": 123,\n \"PersonId\": 123,\n \"valueDate\": \"<string>\",\n \"valueFeatureId\": 123,\n \"valueNumber\": 123,\n \"valueText\": \"<string>\"\n }\n ],\n \"isSubmitted\": 123,\n \"PersonId\": 123,\n \"ProductId\": 123\n }\n ],\n \"priorAddressCity\": \"<string>\",\n \"priorAddressCounty\": \"<string>\",\n \"priorAddressState\": \"<string>\",\n \"priorAddressStreetPrimary\": \"<string>\",\n \"priorAddressStreetSecondary\": \"<string>\",\n \"priorAddressYearEnd\": \"<string>\",\n \"priorAddressYearStart\": \"<string>\",\n \"priorAddressZip\": \"<string>\",\n \"ssn\": \"<string>\"\n }\n ],\n \"author\": [\n {\n \"PersonId\": 123,\n \"affiliation\": \"<string>\",\n \"avatarUploadCare\": \"<string>\",\n \"bio\": \"<string>\",\n \"birthPlace\": \"<string>\",\n \"ContentId\": 123,\n \"isActive\": true,\n \"jobTitle\": \"<string>\",\n \"nationality\": \"<string>\",\n \"o_dateOfBirth\": \"<string>\",\n \"o_gender\": \"<string>\",\n \"o_nameFirst\": \"<string>\",\n \"o_nameLast\": \"<string>\",\n \"override\": \"<string>\",\n \"slug\": \"<string>\",\n \"telephone\": \"<string>\",\n \"url\": \"<string>\",\n \"worksFor\": \"<string>\"\n }\n ],\n \"CategoryId\": 123,\n \"city\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"email\": \"<string>\",\n \"gender\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"nameMiddle\": \"<string>\",\n \"phone\": \"<string>\",\n \"phoneOffice\": \"<string>\",\n \"phoneOfficeExt\": \"<string>\",\n \"Preferred~HsVendorId\": 123,\n \"RandomPoolStatusId\": 123,\n \"staff\": [\n {\n \"PersonId\": 123,\n \"CategoryId\": 123,\n \"dateOfHire\": \"<string>\",\n \"dateOfTermination\": \"<string>\",\n \"jobTitle\": \"<string>\",\n \"JobTitleId\": 123,\n \"salary\": 123,\n \"SalaryPeriodId\": 123\n }\n ],\n \"state\": \"<string>\",\n \"streetPrimary\": \"<string>\",\n \"streetSecondary\": \"<string>\",\n \"tagJoin\": [\n {\n \"parentEntity\": \"<string>\",\n \"ParentId\": 123,\n \"TagId\": 123\n }\n ],\n \"user\": [\n {\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\",\n \"RoleId\": 123,\n \"avatar\": \"<string>\",\n \"email\": \"<string>\",\n \"getInvoiceEmail\": true,\n \"getMarketingEmail\": true,\n \"getMarketingText\": true,\n \"getOrderItemRegistrationEmail\": true,\n \"getOrderItemRegistrationText\": true,\n \"getOrderItemResultEmail\": true,\n \"getOrderItemResultText\": true,\n \"getOrderItemStatusEmail\": true,\n \"getOrderItemStatusText\": true,\n \"getOrgMonthRandomsEmail\": true,\n \"isInvited\": true,\n \"isSuspended\": true,\n \"nickname\": \"<string>\",\n \"PersonId\": 123,\n \"phone\": \"<string>\",\n \"UserOverride\": [\n {\n \"EntityId\": 123,\n \"UserId\": 123,\n \"add\": \"<string>\",\n \"blockDrop\": true,\n \"delete\": \"<string>\",\n \"edit\": \"<string>\",\n \"get\": \"<string>\"\n }\n ]\n }\n ],\n \"UserId\": 123\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("https://api.glass.fm/vLatest/action/glasscore/person")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\",\n \"OrgId\": 123,\n \"zip\": \"<string>\",\n \"alias\": [\n {\n \"PersonId\": 123,\n \"AliasTypeId\": 123,\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\"\n }\n ],\n \"applicant\": [\n {\n \"PersonId\": 123,\n \"aliasNameFirst\": \"<string>\",\n \"aliasNameLast\": \"<string>\",\n \"applicationDate\": \"<string>\",\n \"currentAddressYearStart\": \"<string>\",\n \"georgia_race\": \"<string>\",\n \"info\": [\n {\n \"OrderItemId\": 123,\n \"descrip\": \"<string>\",\n \"infoItem\": [\n {\n \"FeatureSetId\": 123,\n \"AttributeId\": \"<string>\",\n \"choice\": \"<string>\",\n \"featureSetDescrip\": \"<string>\",\n \"featureSetName\": \"<string>\",\n \"InfoId\": 123,\n \"PersonId\": 123,\n \"valueDate\": \"<string>\",\n \"valueFeatureId\": 123,\n \"valueNumber\": 123,\n \"valueText\": \"<string>\"\n }\n ],\n \"isSubmitted\": 123,\n \"PersonId\": 123,\n \"ProductId\": 123\n }\n ],\n \"priorAddressCity\": \"<string>\",\n \"priorAddressCounty\": \"<string>\",\n \"priorAddressState\": \"<string>\",\n \"priorAddressStreetPrimary\": \"<string>\",\n \"priorAddressStreetSecondary\": \"<string>\",\n \"priorAddressYearEnd\": \"<string>\",\n \"priorAddressYearStart\": \"<string>\",\n \"priorAddressZip\": \"<string>\",\n \"ssn\": \"<string>\"\n }\n ],\n \"author\": [\n {\n \"PersonId\": 123,\n \"affiliation\": \"<string>\",\n \"avatarUploadCare\": \"<string>\",\n \"bio\": \"<string>\",\n \"birthPlace\": \"<string>\",\n \"ContentId\": 123,\n \"isActive\": true,\n \"jobTitle\": \"<string>\",\n \"nationality\": \"<string>\",\n \"o_dateOfBirth\": \"<string>\",\n \"o_gender\": \"<string>\",\n \"o_nameFirst\": \"<string>\",\n \"o_nameLast\": \"<string>\",\n \"override\": \"<string>\",\n \"slug\": \"<string>\",\n \"telephone\": \"<string>\",\n \"url\": \"<string>\",\n \"worksFor\": \"<string>\"\n }\n ],\n \"CategoryId\": 123,\n \"city\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"email\": \"<string>\",\n \"gender\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"nameMiddle\": \"<string>\",\n \"phone\": \"<string>\",\n \"phoneOffice\": \"<string>\",\n \"phoneOfficeExt\": \"<string>\",\n \"Preferred~HsVendorId\": 123,\n \"RandomPoolStatusId\": 123,\n \"staff\": [\n {\n \"PersonId\": 123,\n \"CategoryId\": 123,\n \"dateOfHire\": \"<string>\",\n \"dateOfTermination\": \"<string>\",\n \"jobTitle\": \"<string>\",\n \"JobTitleId\": 123,\n \"salary\": 123,\n \"SalaryPeriodId\": 123\n }\n ],\n \"state\": \"<string>\",\n \"streetPrimary\": \"<string>\",\n \"streetSecondary\": \"<string>\",\n \"tagJoin\": [\n {\n \"parentEntity\": \"<string>\",\n \"ParentId\": 123,\n \"TagId\": 123\n }\n ],\n \"user\": [\n {\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\",\n \"RoleId\": 123,\n \"avatar\": \"<string>\",\n \"email\": \"<string>\",\n \"getInvoiceEmail\": true,\n \"getMarketingEmail\": true,\n \"getMarketingText\": true,\n \"getOrderItemRegistrationEmail\": true,\n \"getOrderItemRegistrationText\": true,\n \"getOrderItemResultEmail\": true,\n \"getOrderItemResultText\": true,\n \"getOrderItemStatusEmail\": true,\n \"getOrderItemStatusText\": true,\n \"getOrgMonthRandomsEmail\": true,\n \"isInvited\": true,\n \"isSuspended\": true,\n \"nickname\": \"<string>\",\n \"PersonId\": 123,\n \"phone\": \"<string>\",\n \"UserOverride\": [\n {\n \"EntityId\": 123,\n \"UserId\": 123,\n \"add\": \"<string>\",\n \"blockDrop\": true,\n \"delete\": \"<string>\",\n \"edit\": \"<string>\",\n \"get\": \"<string>\"\n }\n ]\n }\n ],\n \"UserId\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.glass.fm/vLatest/action/glasscore/person")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\",\n \"OrgId\": 123,\n \"zip\": \"<string>\",\n \"alias\": [\n {\n \"PersonId\": 123,\n \"AliasTypeId\": 123,\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\"\n }\n ],\n \"applicant\": [\n {\n \"PersonId\": 123,\n \"aliasNameFirst\": \"<string>\",\n \"aliasNameLast\": \"<string>\",\n \"applicationDate\": \"<string>\",\n \"currentAddressYearStart\": \"<string>\",\n \"georgia_race\": \"<string>\",\n \"info\": [\n {\n \"OrderItemId\": 123,\n \"descrip\": \"<string>\",\n \"infoItem\": [\n {\n \"FeatureSetId\": 123,\n \"AttributeId\": \"<string>\",\n \"choice\": \"<string>\",\n \"featureSetDescrip\": \"<string>\",\n \"featureSetName\": \"<string>\",\n \"InfoId\": 123,\n \"PersonId\": 123,\n \"valueDate\": \"<string>\",\n \"valueFeatureId\": 123,\n \"valueNumber\": 123,\n \"valueText\": \"<string>\"\n }\n ],\n \"isSubmitted\": 123,\n \"PersonId\": 123,\n \"ProductId\": 123\n }\n ],\n \"priorAddressCity\": \"<string>\",\n \"priorAddressCounty\": \"<string>\",\n \"priorAddressState\": \"<string>\",\n \"priorAddressStreetPrimary\": \"<string>\",\n \"priorAddressStreetSecondary\": \"<string>\",\n \"priorAddressYearEnd\": \"<string>\",\n \"priorAddressYearStart\": \"<string>\",\n \"priorAddressZip\": \"<string>\",\n \"ssn\": \"<string>\"\n }\n ],\n \"author\": [\n {\n \"PersonId\": 123,\n \"affiliation\": \"<string>\",\n \"avatarUploadCare\": \"<string>\",\n \"bio\": \"<string>\",\n \"birthPlace\": \"<string>\",\n \"ContentId\": 123,\n \"isActive\": true,\n \"jobTitle\": \"<string>\",\n \"nationality\": \"<string>\",\n \"o_dateOfBirth\": \"<string>\",\n \"o_gender\": \"<string>\",\n \"o_nameFirst\": \"<string>\",\n \"o_nameLast\": \"<string>\",\n \"override\": \"<string>\",\n \"slug\": \"<string>\",\n \"telephone\": \"<string>\",\n \"url\": \"<string>\",\n \"worksFor\": \"<string>\"\n }\n ],\n \"CategoryId\": 123,\n \"city\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"email\": \"<string>\",\n \"gender\": \"<string>\",\n \"lat\": 123,\n \"lng\": 123,\n \"nameMiddle\": \"<string>\",\n \"phone\": \"<string>\",\n \"phoneOffice\": \"<string>\",\n \"phoneOfficeExt\": \"<string>\",\n \"Preferred~HsVendorId\": 123,\n \"RandomPoolStatusId\": 123,\n \"staff\": [\n {\n \"PersonId\": 123,\n \"CategoryId\": 123,\n \"dateOfHire\": \"<string>\",\n \"dateOfTermination\": \"<string>\",\n \"jobTitle\": \"<string>\",\n \"JobTitleId\": 123,\n \"salary\": 123,\n \"SalaryPeriodId\": 123\n }\n ],\n \"state\": \"<string>\",\n \"streetPrimary\": \"<string>\",\n \"streetSecondary\": \"<string>\",\n \"tagJoin\": [\n {\n \"parentEntity\": \"<string>\",\n \"ParentId\": 123,\n \"TagId\": 123\n }\n ],\n \"user\": [\n {\n \"nameFirst\": \"<string>\",\n \"nameLast\": \"<string>\",\n \"RoleId\": 123,\n \"avatar\": \"<string>\",\n \"email\": \"<string>\",\n \"getInvoiceEmail\": true,\n \"getMarketingEmail\": true,\n \"getMarketingText\": true,\n \"getOrderItemRegistrationEmail\": true,\n \"getOrderItemRegistrationText\": true,\n \"getOrderItemResultEmail\": true,\n \"getOrderItemResultText\": true,\n \"getOrderItemStatusEmail\": true,\n \"getOrderItemStatusText\": true,\n \"getOrgMonthRandomsEmail\": true,\n \"isInvited\": true,\n \"isSuspended\": true,\n \"nickname\": \"<string>\",\n \"PersonId\": 123,\n \"phone\": \"<string>\",\n \"UserOverride\": [\n {\n \"EntityId\": 123,\n \"UserId\": 123,\n \"add\": \"<string>\",\n \"blockDrop\": true,\n \"delete\": \"<string>\",\n \"edit\": \"<string>\",\n \"get\": \"<string>\"\n }\n ]\n }\n ],\n \"UserId\": 123\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Contains the first name of the individual in the Person table.
1Stores the surname of the individual.
1Represents the unique identifier for the organization to which the individual belongs.
Stores the postal code associated with each individual's residential address.
1Stores an alternate name or nickname that the individual goes by.
Show child attributes
Show child attributes
Refers to the individual who has submitted an application or request.
Show child attributes
Show child attributes
Indicates the individual who has written a book or a publication.
Show child attributes
Show child attributes
Represents the unique identifier for the category to which a person belongs.
Represents the urban area or municipality where the individual resides.
Records the day, month, and year when the individual was born.
Stores the electronic mail address of the individual.
Indicates the sex of the individual as male, female, or other.
Stores the latitude coordinate of a person's location.
Stores the longitude coordinate of a person's location.
Stores the middle name of an individual.
Stores the contact number of the individual.
Contains the office contact number of the individual.
Represents the extension number for the individual's office telephone.
Indicates the ID of the preferred home services vendor for the individual.
Indicates the status of a person's association with a random pool in a system, typically represented by a unique identifier.
Indicates whether the person is an employee of the organization or not.
Show child attributes
Show child attributes
Indicates the U.S. state or territory where the individual resides.
Contains the main street address for an individual.
Contains additional information about the person's street address such as apartment or suite number.
Associates a person with specific labels or categories for easier search and organization.
Show child attributes
Show child attributes
Contains the unique identifier or username associated with each individual in the Person table.
Show child attributes
Show child attributes
A unique identifier assigned to each individual in the Person table.
Response
Person

