> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kasoftware.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API 操作

> 使用 API 端口上的自定義操作擴充套件 API 操作。

使用操作可以擴充套件資源上的操作集，並在伺服器上執行不相關的操作。操作必須作為 [HTTP POST](./api-resources#post) 請求執行。以下是一個操作呼叫範例：

```
POST http://MyServer:MyPort/connector/MyAPIPortName/api.rsc/WashCar/
{
  Wax: "Wax_1"
}
```

這是相應的回應：

```json theme={null}
{"Complete": "Complete_1"} 
```

### 使用 URL 參數作為輸入

如果用戶端不支援 HTTP POST 方法，可以使用 URL 參數 `@x-http-method` 呼叫操作。然後可以將操作的輸入指定為附加 URL 參數。例如：

`http://MyServer:MyPort/connector/MyAPIPortName/api.rsc/WashCar?@x-http-method=POST&URLparam1=my_url_parameter1&urlparam2=my_url_param2`
