Skip to main content
POST
/
cycles
/
create
Create a new cycle
curl --request POST \
  --url https://api.obselite.com/v0/cycles/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "STANDARD",
  "number": 123,
  "name": "<string>",
  "description": "<string>",
  "startDate": "<string>",
  "endDate": "<string>",
  "hours": 123,
  "daysOff": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "statusId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "isEnabled": true,
  "lockedAt": "<string>",
  "tasks": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "links": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "files": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "number": 123,
  "statusId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "description": "<string>",
  "startDate": "<string>",
  "endDate": "<string>",
  "hours": 123,
  "daysOff": [
    "<string>"
  ],
  "isEnabled": true,
  "lockedAt": "<string>",
  "organization": {},
  "team": {},
  "status": {},
  "tasks": [
    {}
  ],
  "links": [
    {}
  ],
  "files": [
    {}
  ],
  "activities": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

The API token generated from the Obselite dashboard

Body

application/json
type
enum<string>
Available options:
STANDARD,
COOLDOWN
number
integer
name
string | null
description
startDate
string
endDate
string | null
hours
integer | null
daysOff
string<uuid>[]
statusId
string<uuid> | null

Status UUID

isEnabled
boolean
lockedAt
string | null
tasks
string<uuid>[]
files
string<uuid>[]

Response

Successful response

id
string<uuid>
required

Cycle UUID

number
integer
required
description
required
startDate
string
required
daysOff
string[]
required
isEnabled
boolean
required
name
string | null
statusId
string<uuid> | null

Status UUID

endDate
string | null
hours
integer | null
lockedAt
string | null
organization
object | null

The organization that owns this cycle, following the organization schema

team
object | null

The team that this cycle is associated with, following the team schema

status
object | null

The current status of this cycle, following the status schema

tasks
array
files
array
activities
array