title: Set Current Organization keywords:
- set current organization
- put
- set
- current
- organization
Set current organization for the authenticated user.
PUThttps://api.aitronos.com/v1/user/current-organization
organization_id string required
Organization ID to set as current (org_xxx format)
success boolean
Whether the operation was successful
message string
Success message
current_organization_id string
The new current organization ID
organization object
Organization details
cURL
- Bash
- Python
- JavaScript
curl -X PUT "https://api.aitronos.com/v1/user/current-organization" \
-H "X-API-Key: $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"organization_id": "your_organization_id"
}'Response:
200 OK
{
"success": true,
"message": "Operation completed successfully",
"current_organization_id": "abc123def456",
"organization": {
"id": "org_abc123def456",
"name": "My Resource",
"type": "default"
}
}