Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note

This endpoint should only be used to create a person. The ability to update a person via this endpoint has been deprecated.  If you need to update a person, please refer to the Update a Person endpoint.

Info

This Example Project demonstrates how to consume this API endpoint within a Java project.

Info

This Example Project demonstrates how to consume this API endpoint within a C# project.

URI: https https://api.onlinephotosubmissioncloudcard.com/api/people us/person 

HTTP Method: POST

Required Headers: X-Auth-Token (see: Authentication)

...

Code Block
languagejson
{
  "email": "jon.doe@foo.edu",
  "identifier":"ABC123",
  "emailGroupNamecardholderGroupName":"Online Students",
  "additionalPhotoRequired":"true",
  "enabled":true,
  "customFields":{ 
    "Last_Name":"Card",
    "First Name":"Carry A",
    "Upload Date":"2017 - 06 - 22 11:17AM",
    "Batch":"1"
  }
}
Field Descriptions

...

Description

...

email

...

The cardholders' email address. Also used as the username

...

identifier

...

The organization's unique identifier for the cardholder, i.e. student ID or employee ID.

...

emailGroupName

...

The email recipient group into which the cardholder should be place

...

additionalPhotoRequired

...

If true, the cardholder is required to submit all supplemental documents defined for that organization, i.e. government issued ID, signature, etc.

...

custom fields

...

A map of key value pairs. The keys are the names of the custom fields.  The values are the custom field values for this cardholder.

...

enabled

...

(default: true), Must be true for the user to access CloudCard

Example Response
Code Block
202 ACCEPTED
Headers: 
  Location: https://api.onlinephotosubmission.com/api/people/{id}
Example Response (with ?renderResource=true)

...

Include Page
Person Field Descriptions
Person Field Descriptions
Example Response (with ?renderResource=true)
Code Block
201 created
{
    "id": 577784,
    "dateCreated": "2022-01-31T18:34:57Z",
    "passwordResetRequired": false,
    "customFieldValues": [],
    "organization": {
        "id": 100133,
        "isPaid": true,
        "downloadLabel": "Download Photos",
        "allowAutoCrop": false,
        "logoutUrl": "",
        "allowAutoRotate": false,
        "allowAutoDenial": false,
        "allowDeprecatedEndpoints": false,
        "maxNumberOfInvitations": 0,
        "photoDimensions": {
            "id": 6,
            "width": 300,
            {"height": 300,
            "authoritydescription": "ROLE_CARDHOLDER300:300 (1:1)",
            "iddomainClass": 3"us.cloudcard.api.PhotoDimensions",
            "version": 0,
            "value": 1.0,
            "longSide": 300,
            "shortSide": 300
        },
        "name": "Postman Test",
        "badPhotoThreshold": 0.4,
        "helpScoutBeacons": [],
        "canSwitchOrganizationsallowAutoBackgroundReplacement": false,
        "sendEmailFrom": "Online Photo Submission <sent.from.customer@onlinephotosubmission.com>",
        "identifier": null,
        "emailReplyTo": null,
      "canViewOrganizationList  "approvalsPerDay": 10,
        "expirationDate": null,
        "backgroundColor": null,
        "parent": null,
        "allowAutoApproval": false,
        "currentPhototermsOfService": null,
        "customFieldssiteURL": {"",
        "NotesautoArchiveAction": null,
    }     "daysBetweenInvitations": 14,
        "lastUpdated": "2022-01-31T18:17:29Z",
        "dateTermsAcceptedbackgroundImage": null,
        "domainClasssendAutomaticFeedback": false,
        "usePersonIdentifier": "com.campuscardtools.myphotoid.Person"true,
        "emailDomains": [],
        "emailautoArchiveStatus": "black.beard@pirates.com",null,
        "additionalPhotoTypes": [],
        "emailGroupdefaultGroup": {
            "id": 23108,
            "nameorganization": {
"Default",                "id": 100133
            },
            "receivableEmails": "login,approval,denial,BAD,GOOD,MAYBE,welcome",empty",
            "name": "Default",
            "domainClass": "us.cloudcard.api.EmailGroup",
            "version": 0
        },
        "goodPhotoThreshold": 0.8,
        "personIdentifierLabel": "ID Number",
        "preventMultiplePhotos": false,
        }"customCssUrl": "",
        "enableduseEmailAsUsername": true,
        "helperBotDelay": 600000,
        "homeOrganizationdownloadStrategy": {
            "id": "ZIP",
            "name": "Zip File"
        },
        "approvalsMadeToday": 920,
        "hasDescendentsbackgroundReplacementEnabled": false,
        "canApproveMorePhotosToday": true,
        "descendentscustomFields": [],
        "photoRequirements": [
            {
       },         "id": 100851,
                "idlistIndex": 3858280,
     "identifier           "lastUpdated": "K00012019-04-26T20:30:09Z",
      "links          "organization": {
                    "id": 100133
                },
                "uniqueName": "Crop",
                "loginclassifierUrl": null,
                "hidden": false,
                "requirement": "Should be cropped slightly above head to middle of chest",
                "version": 0,
                "domainClass": "us.cloudcard.api.PhotoRequirement"
            },
            {
                "id": 100852,
                "listIndex": 1,
                "lastUpdated": "2019-04-26T20:30:09Z",
                "organization": {
                    "id": 92,": 100133
                },
                "uniqueName": "Plain Background",
                "classifierUrl": null,
                "hidden": false,
                "requirement": "Should be taken against a plain, light background",
                "version": 0,
                "domainClass": "comus.campuscardtoolscloudcard.myphotoidapi.Organization",PhotoRequirement"
            },
           "name": "Test Org.",
        "isPaid": true, {
                "id": 100853,
                "listIndex": 2,
                "lastUpdated": "2019-04-26T20:30:09Z",
                "organization": {
                    "id": 100133
                },
                "termsOfServiceuniqueName": "Color Photo",
                "classifierUrl": null,
                "hidden": false,
                "requirement": "Must be a color photo",
                "version": 0,
                "photoRequirementsdomainClass": ["us.cloudcard..],api.PhotoRequirement"
            },
            {
                "id": 100854,
                "listIndex": 3,
                "customFieldslastUpdated": ["2019-04-26T20:30:09Z",
                "organization": {
                    "id": 100133
                },
      "name          "uniqueName": "NotesNo Accessories",
                "promptclassifierUrl": null,
                "hidden": false,
                "requirement": "Must not include sunglasses or hat",
                "sortOrderversion": 10,
                "showInListdomainClass": true,"us.cloudcard.api.PhotoRequirement"
            },
            {
          "allowUserInput      "id": false100855,
                "requireUserInputlistIndex": false4,
                "lastUpdated": "20182019-1204-18T2126T20:0530:18Z09Z",
                "organization": {
                    "id": 100133
                },
                "uniqueName": "Face Camera",
                "classifierUrl": null,
                "hidden": false,
                "requirement": 100067 "Must be positioned directly facing the camera",
                "version": 0,
                "domainClass": "us.cloudcard.api.PhotoRequirement"
            },
            {
        ],        "id": 100856,
                "customCssUrllistIndex": 5,
"https://sharptopco.github.io/cloudcard-custom-assets/blankcssfile.css",                "lastUpdated": "2019-04-26T20:30:09Z",
                "organization": {
                    "id": 100133
                },
                "logoutUrluniqueName": null,"Look At Camera",
                "useEmailAsUsernameclassifierUrl": true,null,
                "usePersonIdentifierhidden": true,false,
                "personIdentifierLabelrequirement": "ID Number"Eyes should be open and looking at the camera",
                "version": 0,
        "downloadStrategy": {        "domainClass": "us.cloudcard.api.PhotoRequirement"
            },
            {
                "id": 100857,
"EXTERNAL",                "listIndex": 6,
                "namelastUpdated": "2019-04-26T20:30:09Z",
                "External Application""organization": {
                    "id": 100133
                },
                "uniqueName": "Generic",
        "downloadLabel        "classifierUrl": "https://helper-bot.onlinephotosubmission.com/generic",
                "hidden": true,
                "requirement": "Download PhotosMust be a good photo",
        "photoDimensions": {        "version": 0,
                "widthdomainClass": 200 "us.cloudcard.api.PhotoRequirement"
            }
        ]
    },
    "preArchiveEmail": null,
    "accountExpired": false,
    "heightroles": 200null,
    "dateArchived": null,
    "photos": null,
    "descriptionunsubscribe": false,
    "200:200 (1:1)",identifier": null,
    "emailGroup": {
        "id": 108,
        "organization": {
            "id": 100133
        },
        "receivableEmails": ",empty",
        "name": 3"Default",
        "domainClass": "us.cloudcard.api.EmailGroup",
        "version": 0
    },
    "preArchiveIdentifier": }null,
    "dateTermsAccepted": null,
    "preventMultiplePhotospasswordExpired": false,
    "lastUpdated": "2022-01-31T18:34:57Z",
    "additionalPhotos": null,
    "additionalPhotoRequired": true,
    "approvalsPerDayquicksightArn": 0null,
    "preArchiveUsername": null,
    "approvalsMadeTodayusername": 0"jonathan+apiexample@cloudcard.us",
    "accountLocked": false,
    "canApproveMorePhotosTodayactivatedDate": truenull,
    "enabled": true,
    "emailReplyToemail": "Hello From CloudCard <hello@cloudcardtools.com>","jonathan+apiexample@cloudcard.us",
    "domainClass": "us.cloudcard.api.Person",
    "authorities": [
        {
            "helperBotDelayauthority": 1000"ROLE_CARDHOLDER"
        }
    ],
    "passwordExpiredcanViewOrganizationList": false,
    "passwordResetRequiredcanSwitchOrganizations": false,
    "customFields": {},
    "homeOrganization": {
        "id": 100133,
        "readOnlyhasDescendents": false,
        "unsubscribedescendents": false []
    },
    "usernamelinks": {
        "login": "black.beard@pirates.com"https://test-app.onlinephotosubmission.com/#/login?auth_token=bfki4g6mod5t9ff93sl83jokn06jnmddm6obnpb6vbittg7dfjv1dsscki6v1jjn"
    },
    "email": "jonathan+apiexample@cloudcard.us",
    "identifier": null,
    "username": "jonathan+apiexample@cloudcard.us",
    "readOnly": false,
    "restorable": false,
    "status": "ACTIVE",
    "additionalPhotos": {},
    "currentPhoto": null,
    "previouslyApprovedPhoto": null
}