Loops
Update Loop
Update an existing loop’s name, description, or icon. Only the loop creator can make updates.
PUT
Update the details of an existing loop. You can modify the name, description, and icon of any loop you’ve created. This operation preserves all members and existing requests.Documentation Index
Fetch the complete documentation index at: https://docs.hitl.sh/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
Your API key for authentication
Path Parameters
The unique identifier of the loop to update
Body Parameters
New name for the loop (1-100 characters)
New description of the loop’s purpose (max 500 characters)
New icon identifier for the loop
All body parameters are optional. Only provide the fields you want to update.
Response
Whether an error occurred
Success message
Update Scenarios
Name Only Update
Update just the loop name:Description Only Update
Update just the description:Icon Only Update
Update just the icon:Partial Update
Update multiple fields (but not all):Available Icons
Security
shield-check, shield-alt, shield-exclamation, lock, key
Content
document-text, document-check, file-text, clipboard, edit
Review
eye, search, thumbs-up, thumbs-down, star
Quality
badge-check, certificate, award, beaker, cog
Communication
chat, comment, bell, megaphone, mail
General
folder, tag, flag, bookmark, heart
Validation Rules
Name Validation
- Required: No (optional for updates)
- Min length: 1 character
- Max length: 100 characters
- Allowed: Letters, numbers, spaces, and basic punctuation
Description Validation
- Required: No (optional for updates)
- Max length: 500 characters
- Allowed: All characters including newlines
Icon Validation
- Required: No (optional for updates)
- Format: String identifier
- Validation: Must be a valid icon identifier from available icons
Use Cases
Rebranding Loops
Update loop name and icon for rebranding:Improving Descriptions
Add more detailed descriptions to existing loops:Bulk Loop Updates
Update multiple loops with a consistent naming scheme:Access Control
Who Can Update Loops
Loop Creators
Loop Creators
Only the user who created the loop can update it. This is enforced by checking the
creator_id against the authenticated user.API Key Restrictions
API Key Restrictions
API keys can only update loops created by the same user account that owns the API key.
Loop Members
Loop Members
Regular loop members cannot update loop details. They can only participate in reviews.
Error Handling
Common Error Scenarios
Loop Not Found
Loop Not Found
- Invalid loop ID
- Loop was deleted
- User doesn’t own the loop
Access Denied
Access Denied
Validation Error
Validation Error
- Name too long (>100 characters)
- Name empty (if provided)
- Description too long (>500 characters)
- Invalid icon identifier
Empty Update
Empty Update
Best Practices
Versioning Updates
Track major changes with version numbers in names:Gradual Updates
Update loops incrementally rather than all at once:Backup Before Updates
Keep a record of previous state:Next Steps
Delete Loop
Learn how to delete loops when they’re no longer needed.
Manage Members
Add or remove members from your updated loop.
View Loop Requests
See all requests that have been created within this loop.