Opposing counsel approves a data provider's data (all of it, or a subset of items) so the case owner can see it. Approvals add to earlier ones.
Body
Required
-
Type of data provider the approval applies to
Values are
Device,UserEmailDataProvider,CaseFileProvider,FinancialAccountProvider,LegalDocumentProvider,DiscordUserProvider,RedditUserProvider,LinkedInUserProvider, orAiChatProvider. -
Id of the specific data provider document
-
Ids of individual data items. Empty/omitted means "all" for approve, or "deny all" for reject.
POST
/case/{caseId}/oc-approvals/approve
curl \
--request POST 'http://api.example.com/case/{caseId}/oc-approvals/approve' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "organization: string" \
--data '{
"dataProviderType": "Device",
"dataProviderId": "string",
"individualIds": [
"string"
]
}'
Request examples
# Headers
organization: string
# Payload
{
"dataProviderType": "Device",
"dataProviderId": "string",
"individualIds": [
"string"
]
}
Response examples (200)
{
"data": {
"createdAt": "2026-01-15T14:30:00.000Z",
"updatedAt": "2026-01-15T14:30:00.000Z",
"id": "507f1f77bcf86cd799439011",
"dataProviderType": "Device",
"dataProvider": "507f1f77bcf86cd799439014",
"mode": "approve_all",
"individualDataIds": [
"string"
],
"case": "507f1f77bcf86cd799439011",
"originatingOrg": "507f1f77bcf86cd799439016",
"opposingCouncilOrg": "507f1f77bcf86cd799439015",
"approvedBy": "507f1f77bcf86cd799439013",
"approvedAt": "2026-01-16T10:00:00.000Z"
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}