InfoboardPostSeenUsers

When a User has seen the content of a InfoboardPost, intratool will track this as a InfoboardPostSeenUser.

Model Definition

Relations

List

Get a list of InfoboardPostSeenUsers by InfoboardPost.

Definition

GET /api/infoboard/posts/{postId}/seen-users

Example Request

$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('GET', '/api/infoboard/posts/1/seen-users', [
    'headers' => ['Authorization' => "Bearer {accessToken}"]
]);

Example Response

[
  {
    "id": 1,
    "user_id": 4,
    "post_id": 1,
    "created_at": "2018-11-20 16:23:45"
  },
  {
    "id": 2,
    "user_id": 5,
    "post_id": 1,
    "created_at": "2018-12-05 16:31:29"
  }
]

Create

Create a new InfoboardPostSeenUser by InfoboardPost.

Definition

POST /api/infoboard/posts/{postId}/seen-users

Request Keys

Keys with * are required. Keys with ** are normalized to the information given by the route.

Example Request

$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('POST', '/api/infoboard/posts/1/seen-users', [
    'headers' => ['Authorization' => "Bearer {accessToken}"],
    'json' => [
        'user_id' => 6
    ]
]);

Example Response

{
  "status": "success",
  "data": {
    "id": 3,
    "user_id": 6,
    "post_id": 1,
    "created_at": "2018-11-20 16:35:25"
  }
}

Last updated