unlink()
Unlink an existing record to a destinated related record on other service.
- Javascript
- Go
- PHP
- API
const { data, error } = await kontenbase.service('posts').unlink('605a251d7b8678bf6811k3b1', {
categories: '61d26e8e2adb12b85c33029c',
})
Response
Name | Type | Description |
---|---|---|
res.data | object | Response for data |
res.status | number | Response for status code |
res.statusText | string | Response for status message |
res.error | object | Response for error occurred |
resp, err := client.Service("posts").Unlink("605a251d7b8678bf6811k3b1", map[string]interface{}{
"categories": "61d26e8e2adb12b85c33029c",
})
Response
Name | Type | Description |
---|---|---|
resp.Data | map[string]interface{} | Response for data |
resp.Status | int | Response for status code |
resp.StatusText | string | Response for status message |
$res = $kontenbase->service('posts')->unlink('605a251d7b8678bf6811k3b1', [
'categories' => '61d26e8e2adb12b85c33029c'
]);
Response
Name | Type | Description |
---|---|---|
$res['data'] | object | Response for data |
$res['status'] | integer | Response for status code |
$res['statusText'] | string | Response for status message |
$res['error'] | object | Response for error occurred |
[UNLINK]
https://api.kontenbase.com/query/api/v1/API_KEY/posts/605a251d7b8678bf6811k3b1