
### delete <a name="delete"></a>
Delete Asset

Delete a media asset in your organization

**API Endpoint**: `DELETE /organization/asset/{id}`

#### 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
    .asset()
    .delete(sideko_rest_api::resources::asset::DeleteRequest {
        id: "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
    })
    .await;
```

### list <a name="list"></a>
List Assets

Get all media assets for an organization

**API Endpoint**: `GET /organization/asset`

#### 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
    .asset()
    .list(sideko_rest_api::resources::asset::ListRequest {
        ..Default::default()
    })
    .await;
```

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

Update a media asset in your organization

**API Endpoint**: `PATCH /organization/asset/{id}`

#### 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
    .asset()
    .patch(sideko_rest_api::resources::asset::PatchRequest {
        id: "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
        ..Default::default()
    })
    .await;
```

### create <a name="create"></a>
Upload Assets

Add a media asset like logos or other media to an organization

**API Endpoint**: `POST /organization/asset`

#### 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
    .asset()
    .create(sideko_rest_api::resources::asset::CreateRequest {
        file: sideko_rest_api::UploadFile::from_path("uploads/image.png").unwrap(),
    })
    .await;
```
