You can retrieve Person data either by calling GET /v1/identities/:id/person or by populating person field of Identity object using GET /v1/identities/:id?populate=person.
in response is person Identity.
Create Person for existing Identity
Use endpoint POST /v1/identities/:id/person to create new Person and assign it to existing identity.
in response is new person Identity.
Assign existing Person to existing Identity
Use endpoint PATCH /v1/identities/:id/person/:person/assign to map existing Person from Infobip CDP to existing Orangepill Identity.
in response is person Identity.
Unassign Person of Identity
Use endpoint PATCH /v1/identities/:id/person/unassign to unmap Infobip Person of Orangepill Identity.
in response is person Identity.
Update Person
Use endpoint PATCH /v1/identities/:id/person to update Person profile.
in response is person Identity.
Delete Person
Use endpoint DELETE /v1/identities/:id/person to delete Person profile from Infobip People CDP.
in response is person Identity.
List Infobip CDP Companies
Use endpoint GET /v1/identities/companies?parameters to retrieve list of Infobip CDP companies.
Use Infobip Portal to create additional custom attributes and tags for Company profiles.
Use endpoint POST /v1/identities/company to create new Company.
in response is Company.
Assign Company to Identity
Use endpoint PATCH /v1/identities/:id to assign Company to Orangepill Identity.
in response is person Identity.
Unassign Person of Identity
Use endpoint PATCH /v1/identities/:id with null value in company field to unassign Company to Orangepill Identity.
in response is person Identity.
Get Company
You can retrieve Company data either by calling GET /v1/identities/:id/company or by populating company field of Identity object using GET /v1/identities/:id?populate=company.
in response is person Identity.
Update Company
Use endpoint PATCH /v1/identities/companies/:id to update Company profile.
in response is updated Company.
Delete Company
Use endpoint DELETE /v1/identitites/companies/:id to delete Company profile from Infobip People CDP.
in response is empty array.
Send Custom Person Events
Use endpoint POST /v1/identitites/:id/person/event/:event to send custom event to Infobip People CDP.