Updating Subject Data in ProviderTrust
PUT and PATCH Update Subject usage
ProviderTrust Ongoing Monitoring services allow Clients to update Subject data on an ongoing basis. Clients can add Subject name, address, credentials, and other information to an existing record using these update methods.
PUT Update Subject
PT API PUT Update Subject by ID follows the same request schema as the POST Create Subject request. All data elements present in the POST must be present in the PUT. Any data elements removed from a PUT Update Subject request, will be read into PT API as null/blank.
Why this matters: because PUT expects the full record every time, an incomplete PUT can silently blank out data you didn't mean to touch.
The same integration logic and data mapping to populate the POST Create Subject request, can be reused with minimal adjustments, to populate the PUT Update Subject request. This ensures consistent mapping of source data to PT API.
Credentials and License data handlingCredentials and License data requires a unique
idvalue in the PUT request, to maintain existing License records.New credentials objects, entered in either the POST or the PUT, require
body.credentials[].licenseType,body.credentials[].licenseIssuer, andbody.credentials[].licenseNumber.Existing credentials objects require
body.credentials[].id, in addition tocredentials[].licenseType,credentials[].licenseIssuer, andcredentials[].licenseNumberin the request object.Failure to include all four preexisting Credential values in a PUT will delete the Credential record.
PATCH Update Subject
PT API PATCH Partial Update Subject by ID allows Client users to update specific Subject record values individually.
Unlike PUT, this request schema only requires the Subject record data elements being modified. All other values can be excluded from the request.
Nested objects still require the surrounding request structure to perform a successful PATCH.
DynamicNPI Limited PUTUpdate methods are primarily focused on PUT Update Subject (INDIVIDUALREQUESTDTO and ORGANIZATIONREQUESTDTO) API request models.
PUT Update Subject (NPIONLYSUBJECTREQUEST) does not allow modification of any DynamicNPI profile information. This request enrolls Subjects to DynamicNPI if they were not originally enrolled via POST Create Subject (NPIONLYSUBJECTREQUEST).
Updated about 8 hours ago