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:
Joao Moura
2026-07-13 22:31:44 -07:00
parent 1f025fcf86
commit f90f73515a
3 changed files with 8 additions and 6 deletions

View File

@@ -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
```

View File

@@ -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

View File

@@ -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