
### delete <a name="delete"></a>
Removes an API link



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

### list <a name="list"></a>
List API links for doc version



**API Endpoint**: `GET /api_link`

#### 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
    .api_link()
    .list(sideko_rest_api::resources::api_link::ListRequest {
        doc_name: "my-project".to_string(),
        doc_version: sideko_rest_api::models::IdOrInt::Str(
            "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
        ),
    })
    .await;
```

### get <a name="get"></a>
Retrieve single API link



**API Endpoint**: `GET /api_link/{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
    .api_link()
    .get(sideko_rest_api::resources::api_link::GetRequest {
        id: "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
    })
    .await;
```

### patch <a name="patch"></a>
Updates an API link



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

### create <a name="create"></a>
Links API Version to Documentation project version with a specified update policy



**API Endpoint**: `POST /api_link`

#### 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
    .api_link()
    .create(sideko_rest_api::resources::api_link::CreateRequest {
        doc_version_id: "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
        group_id: "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
        nav_label: "string".to_string(),
        policy: sideko_rest_api::models::NewApiLinkPolicy::LatestApiLinkPolicy(sideko_rest_api::models::LatestApiLinkPolicy {
            api_id: "my-api".to_string(),
            type_field: sideko_rest_api::models::LatestApiLinkPolicyTypeEnum::Latest,
        }),
        slug: "string".to_string(),
        ..Default::default()
    })
    .await;
```

### reorder <a name="reorder"></a>
Reorder API links and groups



**API Endpoint**: `POST /api_link/reorder`

#### 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
    .api_link()
    .reorder(sideko_rest_api::resources::api_link::ReorderRequest {
        doc_version_id: "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
        groups: vec![
            sideko_rest_api::models::ApiLinkGroupReorder { id :
            "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(), order : 123 }
        ],
        links: vec![
            sideko_rest_api::models::ApiLinkReorder { group_id :
            "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(), id :
            "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(), order : 123 }
        ],
    })
    .await;
```
