Playbook Test Documents
Retrieves a paginated list of all test documents for the specified playbook, with optional search and sorting.
Bearer authentication with JWT
The page number for paginated results.
Optional parent folder object identifier.
Whether to flatten the folder structure.
The number of items per page.
Optional search text to filter results.
The sorting option for the results.
Whether to sort in descending order.
trueOK
Forbidden
GET /playbooks/{playbookIdentifier}/test-documents HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T04:07:51.949Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}
]Creates and uploads a new test document for the specified playbook.
Bearer authentication with JWT
Optional parent folder object identifier.
The identifier for the document upload session.
The file to upload.
Created
Bad Request
Forbidden
Not Found
POST /playbooks/{playbookIdentifier}/test-documents?documentUploadIdentifier=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17
{
"file": "binary"
}{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T04:07:51.949Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}Creates an empty test document for the specified playbook.
Bearer authentication with JWT
Optional parent folder object identifier.
The name of the file to create.
The content type of the file.
The identifier for the document upload session.
Created
Bad Request
Forbidden
Not Found
POST /playbooks/{playbookIdentifier}/test-documents/empty?fileName=text&contentType=text&documentUploadIdentifier=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T04:07:51.949Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}Appends a file chunk to a test document being uploaded in parts.
Bearer authentication with JWT
The object identifier of the document being uploaded.
The index of the chunk.
Indicates if this is the last chunk.
falseThe file chunk to append.
OK
Bad Request
Forbidden
Not Found
POST /playbooks/{playbookIdentifier}/test-documents/{objectIdentifier}/append-chunk HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17
{
"file": "binary"
}{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T04:07:51.949Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}Retrieves the details of a test document for the specified playbook using its object identifier.
Bearer authentication with JWT
The object identifier of the test document.
OK
Forbidden
Not Found
GET /playbooks/{playbookIdentifier}/test-documents/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T04:07:51.949Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}Updates the details of an existing test document for the specified playbook using its object identifier.
Bearer authentication with JWT
The object identifier of the document to update.
OK
Bad Request
Forbidden
Not Found
PUT /playbooks/{playbookIdentifier}/test-documents/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 170
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000"
}{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T04:07:51.949Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}Deletes a test document from the specified playbook using its object identifier.
Bearer authentication with JWT
The object identifier of the document to delete.
No Content
Forbidden
Not Found
DELETE /playbooks/{playbookIdentifier}/test-documents/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Creates a new folder within the test documents of the specified playbook.
Bearer authentication with JWT
Created
Bad Request
Forbidden
POST /playbooks/{playbookIdentifier}/test-documents/folder HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 79
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000"
}{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T04:07:51.949Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}Downloads the file for a test document in the specified playbook using its object identifier.
Bearer authentication with JWT
The object identifier of the document to download.
OK
Forbidden
Not Found
GET /playbooks/{playbookIdentifier}/test-documents/{objectIdentifier}/download HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
binaryUpdates the details of an existing folder within the test documents of the specified playbook.
Bearer authentication with JWT
The object identifier of the folder to update.
OK
Bad Request
Forbidden
Not Found
PUT /playbooks/{playbookIdentifier}/test-documents/folder/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 79
{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000"
}{
"name": "text",
"parentObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"isDirectory": true,
"documentUploadObjectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"contentType": "text",
"size": 1,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"dateAdded": "2025-12-06T04:07:51.949Z",
"uploadSuccessful": true,
"tokenCount": 1,
"metadataTokenCount": 1,
"unsupportedFileType": true,
"unPackingComplete": true,
"unPackingFailed": true,
"uploadInProgress": true,
"url": "text",
"hasChildren": true,
"resourceOwner": {
"email": "text",
"name": "text",
"id": "text"
}
}Last updated