This document explains the methods you may use to work with the PERSON endpoints in the Federated Authority Document database.
GET Person Endpoints
Quick-start Knowledge
The full JSON-LD Person object is defined at .
Getting a list of Person object stubs from the Federated Authority Document Database is accomplished by querying the endpoint using a REST GET. Optional parameters may be provided to filter and paginate the result.
Getting a single Person object from the Federated Authority Document Database is accomplished by querying the endpoint using a REST GET.
Get Person (basic)
Getting a list of Person object stubs from the Federated Authority Document Database is accomplished by querying the endpoint using a REST GET with no optional parameters.
Provides a list of all Person objects as stubs. Stubs show the property_name and property_value targeted by the stub.
Pagination is provided for the list where count is the total quantity of objects in the data-set, limit is how many objects are returned in the current list, and offset is the first object in the set from that offset point. This is configurable in the request, but the default is a limit of 50 objects starting from offset 0.
In the below example, with a limit of 2, page 1 starts from offset 0 with two values (limit). Page 2 starts from offset= 2. Page 3 from offset= 4, etc. There would be 5 pages to display the data - two objects at a time. This is illustrative only, and the actual local pages will depend on your limit and count.
These are the parameters you can optionally supply to the filter. These fields work as a logical AND.
Field
Description
first_name
Searches all or a portion of a person's first name.
last_name
Searches all or a portion of a person's last name.
email
Searches all or a portion of a person's email address.
sort_dir
0 = descending, 1 = ascending
search
Searches across all searchable fields.
limit
Combined with offset, provides pagination by limiting results.
offset
Combined with limit, provides pagination by shifting the first record.
Get Person By ID
POST Person Endpoint
Quick-start Knowledge
Duplicate email addresses are not allowed in the Person's data or in the system as whole.
When posting an object, all ID fields are ignored and can be set to null. Any parameter (key) or sub-object not provided is considered null.
When the Person object is created, Social Address information (facebook, linkedin, etc) is pulled automatically using Clearbit:tm: if available.
A local_reference_id may be supplied to any core object or sub-object which will be echoed within the object response. This allows tagging of any object to ensure accurate processing is maintained in some systems. (See the local_reference_id section for more detail.)
All new objects require a person id performing the update which is accomplished via the x-requester-person header value.
Created_by Audit Record and Person 0
When you send a POST to create an object, you must supply an x-requester-person in the header as the person id making the request. This sets the created_by field in the audit record to the person who added the object.
In the case where a Person (as a user of your application) is adding themselves, x-requester-person may be set to 0 for the POST. This will create the Person and assign the change to the newly created Person. Any subsequent calls from that Person should use their ID.
Minimum Required Object
Only one primary name (first_name and last_name) or one freeform_name are required to create a Person object, however you may supply any other data that complies with the full schema object.
The primary name (where primary is true) is used to populate the Person.fullname read only property. This value is used in the stub list.
When a structured name is added, firstname and lastname are required.
A Person may be added with only a Name object, but only one Person of any given name may exist like this. You cannot add two John Smith Persons with only a Person.Names.Name
A name can duplicate when an email address is provided that differs from any email address in the system for a Person. (e.g. John Smith with jsmith@abc.com is considered a different Person than jsmith@xyz.com)
Response Object
The response object that is returned is the FULL Person JSON object as defined by grcschema.
Where an array of objects exists with no records, the default example object is returned. This can be determined by the response having an "id": null key/value pair. The other parameters for that object will also be null as seen in the following example.
This is the full JSON object for the John Smith example above. Please note how the arrays have "example" sub-objects. These are provided for easier understanding of the overall object structure and allows the full object to be further modified through the patch endpoint.
These values are integers based on IDs found in the Prefix and Suffix endpoints.
PATCH Person Endpoint
Quick-start Knowledge
Duplicate email addresses are not allowed in the Person's data or in the system as whole.
When updating any object or sub-object, ID and FK fields cannot be changed.
Example sub-objects in @set arrays are ignored in the update. (where all properties are null)
Some properties cannot be changed and are ignored. (e.g. fullname or any id or fk)
A local_reference_id may be supplied to any core object or sub-object which will be echoed within the object response. This allows tagging of any object to ensure accurate processing required by some systems. (See the local_reference_id section for more detail.)
Modified_by Audit Record
When you send a PATCH to modify an object, you must supply an x-requester-person in the header as the person id making the request. This sets the modified_by field in the audit record to the person who modified the object.
Performing a Property (Key) Value Update
Container objects like PostalAddress, SocialAddresses, and PersonName are part of the core person record and are displayed as objects for data organization purposes only.
Here is an example with John - adding an email, telephone, a role, and an address.
In this example, jsmith@compliance-noreply.com is changed to jsmithCHANGED@compliance-noreply.com and the full Person object is returned with the requested change.
Note it is possible to add, change, and delete all at the same time and in any order and the full Person object is returned with the requested changes.
In this example id 613 is changed, id 612 is deleted, and a new record is added.
These values are integers based on IDs found in the Prefix and Suffix endpoints.
How to Use local_reference_id
Quick-start Knowledge
For POST and PATCH operations, you may send an optional local_reference_id for the core object and any sub-objects in unordered lists (@set arrays). This local_reference_id will be returned (like an echo) for that object.
It is recommended you use a Type 4 UUID which is unique for that object in your system and tie the federated ID to your record for later use in querying the federated system for that object.
POST Operation Example
For the core object, you may place a local_reference_id at the object root level, and it will be returned in the response. Do not add local_reference_id to the container objects like PersonName. For sub-object, unordered lists (@set arrays), you may place a local_reference_id in each object, and it will be returned to you in the response.
For the core object, you may place a local_reference_id at the object root level, and it will be returned in the response. Do not add local_reference_id to the container objects like PersonName.
For sub-object, unordered lists (@set arrays), you may place a local_reference_id in each object, and it will be returned to you in the response.
Note: When a local_reference_id is used during delete operation, the object will be returned with no properties but with your local_reference_id denoting the object was deleted. If you do not require a returned object denoting the deletion, do not send the local_reference_id key and value.
Getting a filtered list of Person objects from the Federated Authority Document Database is accomplished by querying the endpoint using a REST GET with url parameters.
Getting an existing Person object from the Federated Authority Document Database is accomplished by querying the endpoint using a REST GET.
Adding a new Person object is accomplished by sending an application/json content type object to the endpoint as a REST POST.
The full JSON-LD object is defined at , and the endpoint will accept the the entire object for processing. This includes array items (@set).
Updating a Person object is accomplished by sending an application/json content type object to the endpoint as a REST PATCH.
The full JSON-LD object is defined at , and the endpoint will accept an existing Person object (with applicable changes) for processing.
Change the properties of the object pulled from GET /Person/:id by sending an application/json PATCH to the endpoint and the full Person object will be returned with the requested changes.