PublicHabits

POST /api/v1/habits

Request

  • Base URL
    https://api.habitpocket.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.habitpocket.io/api/v1/habits
  • Auth
    API key in header X-API-KEY

Request body

namestring required
descriptionstring nullable
typestring required
colorstring nullable
unitstring nullable
targetnumber double nullable
timeTargetstring nullable
goalOperatorstring nullable
isMultiSelectboolean
excludedDaysinteger[] nullable
conditionalStylingEnabledboolean
avoidSincestring nullable
sectionIdstring uuid nullable

Response

Created

idstring uuid
namestring nullable
descriptionstring nullable
typestring nullable
colorstring nullable
unitstring nullable
targetnumber double nullable
timeTargetstring nullable
goalOperatorstring nullable
isMultiSelectboolean
excludedDaysinteger[] nullable
conditionalStylingEnabledboolean
avoidSincestring date nullable
currentStreakinteger
bestStreakinteger
createdAtstring date-time

Changes

No recorded changes to this operation across all 1 revision of this API.