mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-22 07:15:10 +00:00
docs: use valid UUID examples in new restoreFromStateId docs
- Replace the non-hex example UUID with a valid one in the restoreFromStateId property and flow_state_restore example added by this PR (pre-existing invalid example UUIDs elsewhere in the file are left as a broader cleanup) - Use valid, copy-pasteable UUID placeholders in the migration guide curl example with a comment noting they are examples, since AMP 422s non-UUID inputs.id values Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -150,12 +150,14 @@ A few current behaviors to be aware of when chaining runs over the AMP REST API:
|
||||
it as the new run's id via `inputs.id` alongside `restoreFromStateId`:
|
||||
|
||||
```bash
|
||||
# Example UUIDs: "inputs.id" is a fresh UUID you generated for this turn;
|
||||
# "restoreFromStateId" is the UUID you pinned on the previous turn.
|
||||
curl -X POST \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer YOUR_CREW_TOKEN" \
|
||||
-d '{
|
||||
"inputs": {"id": "NEW-CLIENT-GENERATED-UUID", "topic": "AI Agent Frameworks"},
|
||||
"restoreFromStateId": "STATE-ID-FROM-PREVIOUS-TURN"
|
||||
"inputs": {"id": "7f9c24e5-3a61-42b0-9c8b-2f1a5d6e8c33", "topic": "AI Agent Frameworks"},
|
||||
"restoreFromStateId": "123e4567-e89b-42d3-a456-426614174000"
|
||||
}' \
|
||||
https://your-crew-url.crewai.com/kickoff
|
||||
```
|
||||
|
||||
@@ -149,7 +149,7 @@ paths:
|
||||
silently starts as a fresh session — no error is returned. See the
|
||||
[inputs.id deprecation guide](/en/guides/flows/inputs-id-deprecation)
|
||||
for migration details and operational notes.
|
||||
example: "abcd1234-5678-90ef-ghij-klmnopqrstuv"
|
||||
example: "123e4567-e89b-42d3-a456-426614174000"
|
||||
taskWebhookUrl:
|
||||
type: string
|
||||
format: uri
|
||||
@@ -194,7 +194,7 @@ paths:
|
||||
value:
|
||||
inputs:
|
||||
topic: "AI Agent Frameworks"
|
||||
restoreFromStateId: "abcd1234-5678-90ef-ghij-klmnopqrstuv"
|
||||
restoreFromStateId: "123e4567-e89b-42d3-a456-426614174000"
|
||||
responses:
|
||||
"200":
|
||||
description: Crew execution started successfully
|
||||
|
||||
@@ -149,7 +149,7 @@ paths:
|
||||
silently starts as a fresh session — no error is returned. See the
|
||||
[inputs.id deprecation guide](/en/guides/flows/inputs-id-deprecation)
|
||||
for migration details and operational notes.
|
||||
example: "abcd1234-5678-90ef-ghij-klmnopqrstuv"
|
||||
example: "123e4567-e89b-42d3-a456-426614174000"
|
||||
taskWebhookUrl:
|
||||
type: string
|
||||
format: uri
|
||||
@@ -194,7 +194,7 @@ paths:
|
||||
value:
|
||||
inputs:
|
||||
topic: "AI Agent Frameworks"
|
||||
restoreFromStateId: "abcd1234-5678-90ef-ghij-klmnopqrstuv"
|
||||
restoreFromStateId: "123e4567-e89b-42d3-a456-426614174000"
|
||||
responses:
|
||||
"200":
|
||||
description: Crew execution started successfully
|
||||
|
||||
Reference in New Issue
Block a user