mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
37 lines
2.6 KiB
Markdown
37 lines
2.6 KiB
Markdown
# GetButlerTasksResponse
|
|
|
|
## Example Usage
|
|
|
|
```typescript
|
|
import { GetButlerTasksResponse } from "@lukehagar/plexjs";
|
|
|
|
let value: GetButlerTasksResponse = {
|
|
contentType: "<value>",
|
|
statusCode: 791725,
|
|
rawResponse: new Response('{"message": "hello world"}', {
|
|
headers: { "Content-Type": "application/json" },
|
|
}),
|
|
object: {
|
|
butlerTasks: {
|
|
butlerTask: [
|
|
{
|
|
name: "BackupDatabase",
|
|
interval: 3,
|
|
title: "Backup Database",
|
|
description:
|
|
"Create a backup copy of the server's database in the configured backup directory",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
};
|
|
```
|
|
|
|
## Fields
|
|
|
|
| Field | Type | Required | Description |
|
|
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
|
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
| `object` | [models.GetButlerTasksResponseBody](../models/getbutlertasksresponsebody.md) | :heavy_minus_sign: | All butler tasks | |