Login | Sign Up
  • FA
  • EN

API Docs

POST /api/v1/tracker/sleeps

Record a new sleep in the tracker system.


Permissions

PermissionDescription
tracker_sleeps.createCreate tracker sleep

Request Body Parameters

NameTypeRequiredDescription
tracked_atstringYesDatetime for the sleep record
notesstringNoOptional notes

Response

200 OK

{
  "data": { /* tracker sleep resource */ }
}

Error Responses

StatusError TypeReference
422Validation ErrorValidation error
401UnauthorizedAuthentication error
403ForbiddenPermission error

footer wave
logo

Dambel, the smart world of fitness and nutrition

LinkedinInstagramXYoutubeTelegramGitHub