This endpoint allows you to upsert custom data records individually or in bulk.
* If a record with a matching identifier is found, it will be updated (upserted).
* If no matching record is found, a new record will be created with a generated ID.
**Session Management (Optional):**
* `X-Session-ID`: Unique identifier for session upload
* `X-Session-Complete: true`: Mark session as complete (activates data for evidence generation)
* `X-Session-Abort: true`: Abort session and mark for cleanup
When using session management, only data from ACTIVE sessions is used for compliance evaluations.
🔒 Requires Custom Connections Data: Create Custom Connection Data permission.
💎 Requires your account have the Custom Connections and Tests feature. Contact your CSM for help upgrading.
Successful
Created
Invalid Authorization
You must upgrade your plan to use this feature
You are not allowed to perform this action
You must accept the Drata terms and conditions to use the API
The file was too large to upload
Internal server error
{- "data": {
- "id": "some-id-here-uuid4",
- "name": "John",
- "last_name": "Wick",
- "age": 5,
- "data": {
- "foo": "bar"
}
}
}{- "id": "fd52f04f-a030-44ea-a5af-40919194ab7e",
- "createdAt": "2020-07-06 12:00:00.000000",
- "updatedAt": "2020-07-06 13:00:00.000000",
- "statusCode": 200,
- "data": {
- "YOUR": "DATA",
- "PROPERTIES": {
- "WILL": "BE_HERE"
}
}
}If a record with the id exists it will be updated.
🔒 Requires Custom Connections Data: Create and Update Custom Connection Data permission.
💎 Requires your account have the Custom Connections and Tests feature. Contact your CSM for help upgrading.
Successful
Invalid Authorization
You must upgrade your plan to use this feature
You are not allowed to perform this action
You must accept the Drata terms and conditions to use the API
The file was too large to upload
Internal server error
{- "data": {
- "type": "object",
- "required": [
- "comment_id",
- "user",
- "text"
], - "properties": {
- "comment_id": {
- "type": "number"
}, - "user": {
- "type": "object",
- "required": [
- "id",
- "name",
- "email",
- "has_bought"
], - "properties": {
- "id": {
- "type": "number"
}, - "name": {
- "type": "string"
}, - "email": {
- "type": "string"
}, - "has_bought": {
- "type": "boolean"
}
}
}, - "text": {
- "type": "string"
}
}
}
}{- "id": 1
}If a record with the id exists it will be deleted
🔒 Requires Custom Connections Data: Delete Custom Connection Data permission.
💎 Requires your account have the Custom Connections and Tests feature. Contact your CSM for help upgrading.
Successful
Malformed data and/or validation errors
Invalid Authorization
You must upgrade your plan to use this feature
You are not allowed to perform this action
Not Found
You must accept the Drata terms and conditions to use the API
Internal server error
{- "statusCode": 0,
- "message": "string",
- "code": 0,
- "debugInfo": {
- "name": "string",
- "message": "string",
- "stack": "string"
}
}Get all custom data sessions for the account with pagination support
🔒 Requires Custom Connections Data: List Custom Connections permission.
💎 Requires your account have the Custom Connections and Tests feature. Contact your CSM for help upgrading.
Successful
Malformed data and/or validation errors
Invalid Authorization
You must upgrade your plan to use this feature
You are not allowed to perform this action
You must accept the Drata terms and conditions to use the API
Internal server error
{- "data": [
- {
- "id": "session-123",
- "connectionId": 1,
- "customResourceId": 1,
- "status": "ACTIVE"
}
], - "page": 1,
- "limit": 10,
- "total": 100
}Get paginated evidence data for a specific session by session ID
🔒 Requires Custom Connections Data: List Custom Connections permission.
💎 Requires your account have the Custom Connections and Tests feature. Contact your CSM for help upgrading.
Successful
Malformed data and/or validation errors
Invalid Authorization
You must upgrade your plan to use this feature
You are not allowed to perform this action
Not Found
You must accept the Drata terms and conditions to use the API
Internal server error
{- "data": [
], - "page": 1,
- "limit": 10,
- "total": 100,
- "sessionId": "session-abc-123",
- "connectionId": 123,
- "customResourceId": 456
}