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

# Get Root Settings With Warehouse Remarks

POST http://localhost:9000/api/v1/root-mini
Content-Type: application/json

Returns root settings. Optional body field `warehouse` adds `shipmentRemarks` for the selected warehouse.

Body fields: `warehouse` optional Mongo ObjectId of a warehouse.

Response fields: same as Get Root Settings, plus `shipmentRemarks` when a valid warehouse is supplied.

Possible errors:
- 404: Root not found - root configuration document is missing.
- 404: Warehouse not found - supplied warehouse id does not exist.
- 400: Missing One or More Required Parameters - required body/query fields were not supplied.
- 403: Access denied - gateway traffic guard/rate policy blocked the request.
- 429: Too many requests - gateway rate limit exceeded.
- 500: Unexpected Error - unhandled gateway or downstream service failure.

Reference: https://docs.mycargoextra.com/cargo-extra-gateway-api-copy/root-mini/get-root-settings-with-warehouse-remarks

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/v1/root-mini:
    post:
      operationId: get-root-settings-with-warehouse-remarks
      summary: Get Root Settings With Warehouse Remarks
      description: >-
        Returns root settings. Optional body field `warehouse` adds
        `shipmentRemarks` for the selected warehouse.


        Body fields: `warehouse` optional Mongo ObjectId of a warehouse.


        Response fields: same as Get Root Settings, plus `shipmentRemarks` when
        a valid warehouse is supplied.


        Possible errors:

        - 404: Root not found - root configuration document is missing.

        - 404: Warehouse not found - supplied warehouse id does not exist.

        - 400: Missing One or More Required Parameters - required body/query
        fields were not supplied.

        - 403: Access denied - gateway traffic guard/rate policy blocked the
        request.

        - 429: Too many requests - gateway rate limit exceeded.

        - 500: Unexpected Error - unhandled gateway or downstream service
        failure.
      tags:
        - subpackage_rootMini
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/root-mini_Get Root Settings With
                  Warehouse Remarks_Response_200
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1Root-miniRequestBadRequestError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1Root-miniRequestForbiddenError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1Root-miniRequestNotFoundError'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostApiV1Root-miniRequestTooManyRequestsError
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PostApiV1Root-miniRequestInternalServerError
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                warehouse:
                  type: string
              required:
                - warehouse
servers:
  - url: http://localhost:9000
    description: http://localhost:9000
components:
  schemas:
    root-mini_Get Root Settings With Warehouse Remarks_Response_200:
      type: object
      properties:
        key_0:
          type: integer
        key_1:
          type: string
        key_2:
          type: number
          format: double
        key_3:
          type: string
        key_4:
          type: boolean
      required:
        - key_0
        - key_1
        - key_2
        - key_3
        - key_4
      title: root-mini_Get Root Settings With Warehouse Remarks_Response_200
    PostApiV1Root-miniRequestBadRequestError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: PostApiV1Root-miniRequestBadRequestError
    PostApiV1Root-miniRequestForbiddenError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: PostApiV1Root-miniRequestForbiddenError
    PostApiV1Root-miniRequestNotFoundError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: PostApiV1Root-miniRequestNotFoundError
    PostApiV1Root-miniRequestTooManyRequestsError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: PostApiV1Root-miniRequestTooManyRequestsError
    PostApiV1Root-miniRequestInternalServerError:
      type: object
      properties:
        message:
          type: string
      required:
        - message
      title: PostApiV1Root-miniRequestInternalServerError

```

## Examples



**Request**

```json
{
  "warehouse": "64f1a2b3c4d5e6f7890abcde"
}
```

**Response**

```json
{
  "key_0": 12345,
  "key_1": "RootConfigAlpha",
  "key_2": 9876.54321,
  "key_3": "Shipment remarks for warehouse 64f1a2b3c4d5e6f7890abcde: Handle with care, fragile items included.",
  "key_4": true
}
```

**SDK Code**

```python root-mini_Get Root Settings With Warehouse Remarks_example
import requests

url = "http://localhost:9000/api/v1/root-mini"

payload = { "warehouse": "64f1a2b3c4d5e6f7890abcde" }
headers = {"Content-Type": "application/json"}

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

print(response.json())
```

```javascript root-mini_Get Root Settings With Warehouse Remarks_example
const url = 'http://localhost:9000/api/v1/root-mini';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"warehouse":"64f1a2b3c4d5e6f7890abcde"}'
};

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

```go root-mini_Get Root Settings With Warehouse Remarks_example
package main

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

func main() {

	url := "http://localhost:9000/api/v1/root-mini"

	payload := strings.NewReader("{\n  \"warehouse\": \"64f1a2b3c4d5e6f7890abcde\"\n}")

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

	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 root-mini_Get Root Settings With Warehouse Remarks_example
require 'uri'
require 'net/http'

url = URI("http://localhost:9000/api/v1/root-mini")

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

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"warehouse\": \"64f1a2b3c4d5e6f7890abcde\"\n}"

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

```java root-mini_Get Root Settings With Warehouse Remarks_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("http://localhost:9000/api/v1/root-mini")
  .header("Content-Type", "application/json")
  .body("{\n  \"warehouse\": \"64f1a2b3c4d5e6f7890abcde\"\n}")
  .asString();
```

```php root-mini_Get Root Settings With Warehouse Remarks_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'http://localhost:9000/api/v1/root-mini', [
  'body' => '{
  "warehouse": "64f1a2b3c4d5e6f7890abcde"
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp root-mini_Get Root Settings With Warehouse Remarks_example
using RestSharp;

var client = new RestClient("http://localhost:9000/api/v1/root-mini");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"warehouse\": \"64f1a2b3c4d5e6f7890abcde\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift root-mini_Get Root Settings With Warehouse Remarks_example
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = ["warehouse": "64f1a2b3c4d5e6f7890abcde"] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:9000/api/v1/root-mini")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```