LayoutRows
Last updated
$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('GET', '/api/layouts/rows', [
'headers' => ['Authorization' => "Bearer {accessToken}"]
]);[
{
"id": 61,
"title": "Primary information",
"layout_id": 41,
"lang_id": "en-US",
"top_separator": false,
"bottom_separator": true,
"sort_number": 1
},
{
"id": 62,
"title": "Additional details",
"layout_id": 41,
"lang_id": "en-US",
"top_separator": true,
"bottom_separator": false,
"sort_number": 2
}
]$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('GET', '/api/layouts/rows/61', [
'headers' => ['Authorization' => "Bearer {accessToken}"]
]);{
"id": 61,
"title": "Primary information",
"layout_id": 41,
"lang_id": "en-US",
"top_separator": false,
"bottom_separator": true,
"sort_number": 1
}$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('POST', '/api/layouts/rows', [
'headers' => ['Authorization' => "Bearer {accessToken}"],
'json' => [
'title' => 'Additional details',
'layout_id' => 41,
'lang_id' => 'en-US',
'top_separator' => true,
'bottom_separator' => false,
'sort_number' => 2
]
]);{
"status": "success",
"data": {
"id": 62,
"title": "Additional details",
"layout_id": 41,
"lang_id": "en-US",
"top_separator": true,
"bottom_separator": false,
"sort_number": 2
}
}$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('PUT', '/api/layouts/rows/62', [
'headers' => ['Authorization' => "Bearer {accessToken}"],
'json' => [
'title' => 'Supporting details',
'lang_id' => 'en-US',
'top_separator' => false,
'sort_number' => 2
]
]);{
"status": "success",
"data": {
"id": 62,
"title": "Supporting details",
"layout_id": 41,
"lang_id": "en-US",
"top_separator": false,
"bottom_separator": false,
"sort_number": 2
}
}$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('DELETE', '/api/layouts/rows/62', [
'headers' => ['Authorization' => "Bearer {accessToken}"]
]);{
"status": "success",
"data": null
}