Skip to main content
POST
/
v3
/
sites
/
{site}
/
teams
/
{team}
/
grant-sensitive-data
Grant Sensitive Access
curl --request POST \
  --url https://app.plugchoice.com/api/v3/sites/{site}/teams/{team}/grant-sensitive-data \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "expires_never": true,
  "data_access_expires_at": "<string>"
}
'
{
  "message": "<string>"
}
Grants a team access to sensitive data for the specified location, with an optional expiration date.
site
string
required
The UUID of the location.
team
string
required
The UUID of the team.
expires_never
boolean
required
Whether the sensitive data access should never expire. Set to true for permanent access.
data_access_expires_at
string
ISO 8601 date for when the access expires. Required when expires_never is false. Must be a future date.

Response

message
string
A confirmation message indicating sensitive data access was granted successfully.