sideko_rest_api 0.9.2

Rust API Client
Documentation
# doc.version.dropdown

## Module Functions

### Update Dropdown <a name="patch"></a>

**API Endpoint**: `PATCH /doc_project/{doc_name}/version/{doc_version}/dropdown/{dropdown_id}`

#### Parameters

| Parameter      | Required | Description | Example                                                            |
| -------------- | :------: | ----------- | ------------------------------------------------------------------ |
| `doc_name`     ||             | `"my-project".to_string()`                                         |
| `doc_version`  ||             | `IdOrInt::Str("3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string())` |
| `dropdown_id`  ||             | `"3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string()`               |
| `default_open` ||             | `true`                                                             |
| `icon`         ||             | `"House".to_string()`                                              |
| `label`        ||             | `"string".to_string()`                                             |

#### Example Snippet

```rust
let client = sideko_rest_api::SidekoClient::default()
    .with_api_key_auth(&std::env::var("API_KEY").unwrap())
    .with_cookie_auth(&std::env::var("API_KEY").unwrap());
let res = client
    .doc()
    .version()
    .dropdown()
    .patch(sideko_rest_api::resources::doc::version::dropdown::PatchRequest {
        doc_name: "my-project".to_string(),
        doc_version: sideko_rest_api::models::IdOrInt::Str(
            "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
        ),
        dropdown_id: "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
        ..Default::default()
    })
    .await;
```

#### Response

##### Type

[DropdownComponent](/src/models/dropdown_component.rs)

##### Example

```rust
DropdownComponent {created_at: "1970-01-01T00:00:00".to_string(), default_open: true, icon: Some("House".to_string()), id: "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(), label: "string".to_string(), type_: ComponentTypeDropdownEnum::Dropdown}
```