Environments-22
For instructions on how to authenticate to use this endpoint, see API overview.
This endpoint is meant for reading and deleting persons. To create or update persons, we recommend using the capture API, the $set and $unset properties, or one of our SDKs.
Endpoints
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
POST | |
POST | |
GET | |
POST | 
Retrieve environments persons
Required API key scopes
person:readPath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- formatstringOne of:
"csv""json" 
Response
Example request
GET  /api /environments /:project_id /persons /:idExample response
Status 200
Retrieve environments persons
Required API key scopes
person:readPath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- formatstringOne of:
"csv""json" 
Response
Example request
GET  /api /environments /:project_id /persons /:idExample response
Status 200
Update environments persons
Required API key scopes
person:writePath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- formatstringOne of:
"csv""json" 
Request parameters
- properties
 
Response
Example request
PATCH  /api /environments /:project_id /persons /:idExample response
Status 200
Update environments persons
Required API key scopes
person:writePath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- formatstringOne of:
"csv""json" 
Request parameters
- properties
 
Response
Example request
PATCH  /api /environments /:project_id /persons /:idExample response
Status 200
Delete environments persons
Use this endpoint to delete individual persons. For bulk deletion, use the bulk_delete endpoint instead.
Required API key scopes
person:writePath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- delete_eventsbooleanDefault:
falseIf true, a task to delete all events associated with this person will be created and queued. The task does not run immediately and instead is batched together and at 5AM UTC every Sunday
 - formatstringOne of:
"csv""json" 
Example request
DELETE  /api /environments /:project_id /persons /:idExample response
Status 204 No response body
Delete environments persons
Use this endpoint to delete individual persons. For bulk deletion, use the bulk_delete endpoint instead.
Required API key scopes
person:writePath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- delete_eventsbooleanDefault:
falseIf true, a task to delete all events associated with this person will be created and queued. The task does not run immediately and instead is batched together and at 5AM UTC every Sunday
 - formatstringOne of:
"csv""json" 
Example request
DELETE  /api /environments /:project_id /persons /:idExample response
Status 204 No response body
Retrieve environments persons activity retrieve
Required API key scopes
activity_log:readPath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- formatstringOne of:
"csv""json" 
Example request
GET  /api /environments /:project_id /persons /:id /activityExample response
Status 200 No response body
Retrieve environments persons activity retrieve
Required API key scopes
activity_log:readPath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- formatstringOne of:
"csv""json" 
Example request
GET  /api /environments /:project_id /persons /:id /activityExample response
Status 200 No response body
Create environments persons delete events
Queue deletion of all events associated with this person. The task runs during non-peak hours.
Required API key scopes
person:writePath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- formatstringOne of:
"csv""json" 
Request parameters
- properties
 
Example request
POST  /api /environments /:project_id /persons /:id /delete_eventsExample response
Status 200 No response body
Create environments persons delete events
Queue deletion of all events associated with this person. The task runs during non-peak hours.
Required API key scopes
person:writePath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- formatstringOne of:
"csv""json" 
Request parameters
- properties
 
Example request
POST  /api /environments /:project_id /persons /:id /delete_eventsExample response
Status 200 No response body
Create environments persons delete property
Required API key scopes
person:writePath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- $unsetstring
Specify the property key to delete
 - formatstringOne of:
"csv""json" 
Request parameters
- properties
 
Example request
POST  /api /environments /:project_id /persons /:id /delete_propertyExample response
Status 200 No response body
Create environments persons delete property
Required API key scopes
person:writePath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- $unsetstring
Specify the property key to delete
 - formatstringOne of:
"csv""json" 
Request parameters
- properties
 
Example request
POST  /api /environments /:project_id /persons /:id /delete_propertyExample response
Status 200 No response body
Create environments persons delete recordings
Queue deletion of all recordings associated with this person.
Required API key scopes
person:writePath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- formatstringOne of:
"csv""json" 
Request parameters
- properties
 
Example request
POST  /api /environments /:project_id /persons /:id /delete_recordingsExample response
Status 200 No response body
Create environments persons delete recordings
Queue deletion of all recordings associated with this person.
Required API key scopes
person:writePath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- formatstringOne of:
"csv""json" 
Request parameters
- properties
 
Example request
POST  /api /environments /:project_id /persons /:id /delete_recordingsExample response
Status 200 No response body
Retrieve environments persons properties timeline
Path parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- formatstringOne of:
"csv""json" 
Example request
GET  /api /environments /:project_id /persons /:id /properties_timelineExample response
Status 200 No response body
Retrieve environments persons properties timeline
Path parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- formatstringOne of:
"csv""json" 
Example request
GET  /api /environments /:project_id /persons /:id /properties_timelineExample response
Status 200 No response body
Create environments persons split
Required API key scopes
person:writePath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- formatstringOne of:
"csv""json" 
Request parameters
- properties
 
Example request
POST  /api /environments /:project_id /persons /:id /splitExample response
Status 200 No response body
Create environments persons split
Required API key scopes
person:writePath parameters
- idinteger
A unique integer value identifying this person.
 - project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 
Query parameters
- formatstringOne of:
"csv""json" 
Request parameters
- properties
 
Example request
POST  /api /environments /:project_id /persons /:id /split