> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.movieknight.site/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.movieknight.site/_mcp/server.

# Save wheel

PUT {{baseUrl}}/api/collections/{{collectionId}}/wheel
Content-Type: application/json

**What:** Owner-only. Replace the saved wheel config. Entries are trimmed, empties dropped, capped at 100.

**Auth:** Bearer token required.

**Body (JSON):**

| Field | Type | Required | Description | Example |
| --- | --- | --- | --- | --- |
| wheelConfig | array | yes | Array of strings | `["Fight Club","Inception"]` |

**Returns:** `data = { saved: true, wheelConfig }`.

Reference: https://apidocs.movieknight.site/movie-knight-api/collections/wheel/save-wheel

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/collections/{{collectionId}}/wheel:
    put:
      operationId: save-wheel
      summary: Save wheel
      description: >-
        **What:** Owner-only. Replace the saved wheel config. Entries are
        trimmed, empties dropped, capped at 100.


        **Auth:** Bearer token required.


        **Body (JSON):**


        | Field | Type | Required | Description | Example |

        | --- | --- | --- | --- | --- |

        | wheelConfig | array | yes | Array of strings | `["Fight
        Club","Inception"]` |


        **Returns:** `data = { saved: true, wheelConfig }`.
      tags:
        - subpackage_collections.subpackage_collections/wheel
      parameters:
        - name: '{collectionId'
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Collections_Wheel_Save wheel_Response_200'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PutApiCollections66b0c1d2e3f4a5b6c7d8e9f0WheelRequestBadRequestError
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PutApiCollections66b0c1d2e3f4a5b6c7d8e9f0WheelRequestNotFoundError
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                wheelConfig:
                  type: array
                  items:
                    type: string
              required:
                - wheelConfig
servers:
  - url: '{{baseUrl}}'
    description: '{{baseUrl}}'
components:
  schemas:
    ApiCollectionsCollectionIdWheelPutResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        saved:
          type: boolean
        wheelConfig:
          type: array
          items:
            type: string
      required:
        - saved
        - wheelConfig
      title: >-
        ApiCollectionsCollectionIdWheelPutResponsesContentApplicationJsonSchemaData
    Collections_Wheel_Save wheel_Response_200:
      type: object
      properties:
        ok:
          type: boolean
        data:
          $ref: >-
            #/components/schemas/ApiCollectionsCollectionIdWheelPutResponsesContentApplicationJsonSchemaData
      required:
        - ok
        - data
      title: Collections_Wheel_Save wheel_Response_200
    PutApiCollections66b0c1d2e3f4a5b6c7d8e9f0WheelRequestBadRequestError:
      type: object
      properties:
        ok:
          type: boolean
        error:
          type: string
      required:
        - ok
        - error
      title: PutApiCollections66b0c1d2e3f4a5b6c7d8e9f0WheelRequestBadRequestError
    PutApiCollections66b0c1d2e3f4a5b6c7d8e9f0WheelRequestNotFoundError:
      type: object
      properties:
        ok:
          type: boolean
        error:
          type: string
      required:
        - ok
        - error
      title: PutApiCollections66b0c1d2e3f4a5b6c7d8e9f0WheelRequestNotFoundError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples



**Request**

```json
{
  "wheelConfig": [
    "Fight Club",
    "Inception",
    "The Matrix"
  ]
}
```

**Response**

```json
{
  "ok": true,
  "data": {
    "saved": true,
    "wheelConfig": [
      "Fight Club",
      "Inception",
      "The Matrix"
    ]
  }
}
```

**SDK Code**

```python Collections_Wheel_Save wheel_example
import requests

url = "https://{{baseurl}}/api/collections/%7BcollectionId%7D/wheel"

payload = { "wheelConfig": ["Fight Club", "Inception", "The Matrix"] }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
```

```javascript Collections_Wheel_Save wheel_example
const url = 'https://{{baseurl}}/api/collections/%7BcollectionId%7D/wheel';
const options = {
  method: 'PUT',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"wheelConfig":["Fight Club","Inception","The Matrix"]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Collections_Wheel_Save wheel_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://{{baseurl}}/api/collections/%7BcollectionId%7D/wheel"

	payload := strings.NewReader("{\n  \"wheelConfig\": [\n    \"Fight Club\",\n    \"Inception\",\n    \"The Matrix\"\n  ]\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Collections_Wheel_Save wheel_example
require 'uri'
require 'net/http'

url = URI("https://{{baseurl}}/api/collections/%7BcollectionId%7D/wheel")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"wheelConfig\": [\n    \"Fight Club\",\n    \"Inception\",\n    \"The Matrix\"\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```java Collections_Wheel_Save wheel_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://{{baseurl}}/api/collections/%7BcollectionId%7D/wheel")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"wheelConfig\": [\n    \"Fight Club\",\n    \"Inception\",\n    \"The Matrix\"\n  ]\n}")
  .asString();
```

```php Collections_Wheel_Save wheel_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://{{baseurl}}/api/collections/%7BcollectionId%7D/wheel', [
  'body' => '{
  "wheelConfig": [
    "Fight Club",
    "Inception",
    "The Matrix"
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Collections_Wheel_Save wheel_example
using RestSharp;

var client = new RestClient("https://{{baseurl}}/api/collections/%7BcollectionId%7D/wheel");
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"wheelConfig\": [\n    \"Fight Club\",\n    \"Inception\",\n    \"The Matrix\"\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Collections_Wheel_Save wheel_example
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["wheelConfig": ["Fight Club", "Inception", "The Matrix"]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://{{baseurl}}/api/collections/%7BcollectionId%7D/wheel")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```