Get job views by period(admin)
Jobs
GET job views(admin)
Endpoint
GET /api/v1/jobs/:id/views
Parameters
Name | Description | In |
---|---|---|
period required | Period | ["hour", "day"] |
Request
Route
GET /api/v1/jobs/530/views?period=hour
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNDQ0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQxLCJleHAiOjE3NDUwNTY5NDEsImp0aSI6IjIwZTA3N2VhLTkxMmYtNDBiNS05M2M5LWYzMTIwODM0NTI5MiJ9.Mb_h3Py2LRU65HsNGHua1jqwrpawyrRZGqgby-9rXrQ
Host: example.org
Cookie:
Query Parameters
period=hour
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"1e0f675f058561c67a427ca9a9ee50f7"
cache-control: max-age=0, private, must-revalidate
x-request-id: ee843929-2675-4ba5-be7c-d2882aa0bd4a
x-runtime: 0.006895
content-length: 39
Body
{
"views": {
"2025-03-20 10:00:00 UTC": 1
}
}