v1

latestOpenAPI 3.0.0Apache 2.02026-07-2410185524.2 KB
Profiles

update profile

Updates a specific profile

For custom components:

RaiselyComponents.api.one('profiles', '{path}').patch(data = {}, params = {}, headers = {}) => Promise<{result}>

:fa-gears: See Restie Response Data for a more detailed overview of responses through the client wrapper

patch/profiles/{path}

Path parameters

pathstring required

The uuid or path of the record

Query parameters

campaignstring

The uuid, path or domain of the campaign to associate with the request

privateboolean

Returns the full record when authenticated

partialboolean

Determines if a record updates public/private values in a merge verses an overwrite

Headers

Authorizationstring

A valid HTTP Bearer token, required to access private records.

Request body

overwriteCustomFieldsboolean

If passed, replace the existing public and private values on the record with the values provided with this payload

Example request

{
  "data": {
    "currency": "AUD",
    "description": "I believe in a better world",
    "exerciseGoal": 12345,
    "exerciseGoalTime": 12345,
    "fundraiserTheme": "birthday",
    "goal": 100050,
    "name": "Bob D.",
    "path": "bobd",
    "photoUrl": "https://raisely-images.imgix.net/www/uploads/t-03-arl-8-es-uhhqua-4-pr-f-4865431-df-58-512-png-08e3f5.png",
    "private": {
      "fieldA": "one",
      "fieldB": "yes"
    },
    "public": {
      "fieldA": "one",
      "fieldB": "yes"
    },
    "type": "INDIVIDUAL"
  }
}

Response

The updated Profile record

Example response

{
  "data": {
    "activityTotal": 2625,
    "activityTotalPercent": 2625,
    "badges": [
      {
        "description": "Make a donation to start your fundraising",
        "hidden": true,
        "icon": "star",
        "imageUrl": "https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/apple/237/sparkles_2728.png",
        "incompleteImageUrl": "https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/apple/237/sparkles_2728.png",
        "name": "Kickstart your Fundraising",
        "path": "self_donate",
        "private": {
          "fieldA": "one",
          "fieldB": "yes"
        },
        "profileCount": 12345,
        "public": {
          "fieldA": "one",
          "fieldB": "yes"
        },
        "rules": [
          {
            "property": "public.fieldA"
          }
        ],
        "sortOrder": 1,
        "uuid": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
      }
    ],
    "campaignDisplayTotal": 2625,
    "campaignTotal": 2625,
    "campaignUuid": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
    "createdAt": "2020-12-03T06:52:46.330Z",
    "currency": "AUD",
    "description": "I believe in a better world",
    "donationCount": 12345,
    "donationRecordCount": 12345,
    "exerciseGoal": 12345,
    "exerciseGoalTime": 12345,
    "exerciseTotal": 2625,
    "exerciseTotalTime": 2625,
    "fundraiserTheme": "birthday",
    "goal": 100050,
    "grandTotal": 2625,
    "individualProfileCount": 12345,
    "isCampaignProfile": true,
    "name": "Bob D.",
    "nonSelfDonationTotal": 2625,
    "organisationProfileCount": 12345,
    "paid": true,
    "path": "bobd",
    "photoUrl": "https://raisely-images.imgix.net/www/uploads/t-03-arl-8-es-uhhqua-4-pr-f-4865431-df-58-512-png-08e3f5.png",
    "private": {
      "fieldA": "one",
      "fieldB": "yes"
    },
    "public": {
      "fieldA": "one",
      "fieldB": "yes"
    },
    "selfDonationTotal": 2625,
    "shared": true,
    "status": "ACTIVE",
    "subscriptionCount": 12345,
    "teamProfileCount": 12345,
    "total": 2625,
    "type": "INDIVIDUAL",
    "uniqueDonors": 12345,
    "updatedAt": "2020-12-03T06:52:46.330Z",
    "user": {
      "accessToken": "aaabbbccc",
      "address1": "31 Sunset Boulevard",
      "address2": "Unit 31b",
      "adminSettings": {
        "v4BetaOptin": true,
        "starredCampaigns": [
          "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
          "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj"
        ]
      },
      "country": "AU",
      "createdAt": "2020-12-03T06:52:46.330Z",
      "email": "harveymilk@example.com",
      "facebookId": "fb_someurl",
      "firstName": "Leila",
      "fullName": "Leila Norma de Lima",
      "internal": {},
      "isAdmin": true,
      "isSamlLogin": true,
      "lastName": "de Lima",
      "permission": "PARTICIPANT",
      "phoneNumber": "+1 123-456-7890",
      "photoUrl": "https://raisely-images.imgix.net/www/uploads/t-03-arl-8-es-uhhqua-4-pr-f-4865431-df-58-512-png-08e3f5.png",
      "postcode": "AAA BBBB",
      "preferredName": "Norma",
      "private": {
        "fieldA": "one",
        "fieldB": "yes"
      },
      "public": {
        "fieldA": "one",
        "fieldB": "yes"
      },
      "state": "Victoria",
      "status": "ACTIVE",
      "suburb": "Melbourne",
      "unsubscribedAt": "2020-12-03T06:52:46.330Z",
      "updatedAt": "2020-12-03T06:52:46.330Z",
      "username": "harveymilk@example.com",
      "uuid": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
    },
    "userUuid": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
    "uuid": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
    "teamProfile": {
      "activityTotal": 2625,
      "activityTotalPercent": 2625,
      "campaignDisplayTotal": 2625,
      "createdAt": "2020-12-03T06:52:46.330Z",
      "currency": "AUD",
      "description": "I believe in a better world",
      "donationCount": 12345,
      "donationRecordCount": 12345,
      "exerciseGoal": 12345,
      "exerciseGoalTime": 12345,
      "exerciseTotal": 2625,
      "exerciseTotalTime": 2625,
      "fundraiserTheme": "birthday",
      "goal": 100050,
      "individualProfileCount": 12345,
      "isCampaignProfile": true,
      "name": "Bob D.",
      "nonSelfDonationTotal": 2625,
      "organisationProfileCount": 12345,
      "paid": true,
      "path": "bobd",
      "photoUrl": "https://raisely-images.imgix.net/www/uploads/t-03-arl-8-es-uhhqua-4-pr-f-4865431-df-58-512-png-08e3f5.png",
      "private": {
        "fieldA": "one",
        "fieldB": "yes"
      },
      "public": {
        "fieldA": "one",
        "fieldB": "yes"
      },
      "selfDonationTotal": 2625,
      "shared": true,
      "status": "ACTIVE",
      "subscriptionCount": 12345,
      "teamProfileCount": 12345,
      "type": "INDIVIDUAL",
      "uniqueDonors": 12345,
      "updatedAt": "2020-12-03T06:52:46.330Z",
      "uuid": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
    },
    "organisationProfile": {
      "activityTotal": 2625,
      "activityTotalPercent": 2625,
      "campaignDisplayTotal": 2625,
      "createdAt": "2020-12-03T06:52:46.330Z",
      "currency": "AUD",
      "description": "I believe in a better world",
      "donationCount": 12345,
      "donationRecordCount": 12345,
      "exerciseGoal": 12345,
      "exerciseGoalTime": 12345,
      "exerciseTotal": 2625,
      "exerciseTotalTime": 2625,
      "fundraiserTheme": "birthday",
      "goal": 100050,
      "individualProfileCount": 12345,
      "isCampaignProfile": true,
      "name": "Bob D.",
      "nonSelfDonationTotal": 2625,
      "organisationProfileCount": 12345,
      "paid": true,
      "path": "bobd",
      "photoUrl": "https://raisely-images.imgix.net/www/uploads/t-03-arl-8-es-uhhqua-4-pr-f-4865431-df-58-512-png-08e3f5.png",
      "private": {
        "fieldA": "one",
        "fieldB": "yes"
      },
      "public": {
        "fieldA": "one",
        "fieldB": "yes"
      },
      "selfDonationTotal": 2625,
      "shared": true,
      "status": "ACTIVE",
      "subscriptionCount": 12345,
      "teamProfileCount": 12345,
      "type": "INDIVIDUAL",
      "uniqueDonors": 12345,
      "updatedAt": "2020-12-03T06:52:46.330Z",
      "uuid": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
    }
  }
}