Skip to main content
PATCH
/
api
/
v1
/
teams
/
{team_id}
/
cycle
/
loops
/
{loop_id}
Update Loop
curl --request PATCH \
  --url https://api.example.com/api/v1/teams/{team_id}/cycle/loops/{loop_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "agent_member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "phase": "<string>",
  "parent_loop_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cadence": {
    "every_n_days": 2,
    "days": [
      123
    ],
    "time": "09:00"
  },
  "task_type": "<string>",
  "task_template": {},
  "sort_order": 123,
  "is_active": true
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cycle_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "parent_loop_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "agent_member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "phase": "<string>",
  "schedule_type": "<string>",
  "cadence": {},
  "task_type": "<string>",
  "task_template": {},
  "priority": "<string>",
  "sort_order": 123,
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.aitasker.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

team_id
string<uuid>
required
loop_id
string<uuid>
required

Body

application/json
name
string | null
Required string length: 1 - 255
agent_member_id
string<uuid> | null
phase
string | null
parent_loop_id
string<uuid> | null
schedule_type
enum<string> | null
Available options:
cadence,
specific_days,
signal_triggered
cadence
LoopCadence · object
task_type
string | null
task_template
Task Template · object
priority
enum<string> | null
Available options:
critical,
high,
medium,
low
sort_order
integer | null
is_active
boolean | null

Response

Successful Response

id
string<uuid>
required
cycle_id
string<uuid>
required
parent_loop_id
string<uuid> | null
required
name
string
required
agent_member_id
string<uuid>
required
phase
string | null
required
schedule_type
string
required
cadence
Cadence · object
required
task_type
string
required
task_template
Task Template · object
required
priority
string
required
sort_order
integer
required
is_active
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required