environments changedmanaged-agents/environments
Nearest release: v2.1.319, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+18added
Lines−18removed
From line
682
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits26to this page, all time
The whole hunk
from line 682, old and new numbered
/
from line 682
682682 -H "anthropic-version: 2026-10-21" \
683683 -H "anthropic-beta: managed-agents-2026-04-01"
684684
685 # Archive an environment (read-only, existing sessions continue)
685 # Archive an environment (read-only, no new sessions)
686686 curl -fsS -X POST "https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID/archive" \
687687 -H "x-api-key: $ANTHROPIC_API_KEY" \
688688 -H "anthropic-version: 2026-10-21" \
689689 -H "anthropic-beta: managed-agents-2026-04-01"
690690
691 # Delete an environment (only if no sessions reference it)
691 # Delete an environment
692692 curl -fsS -X DELETE "https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID" \
693693 -H "x-api-key: $ANTHROPIC_API_KEY" \
694694 -H "anthropic-version: 2026-10-21" \
from line 702
702702 # Retrieve a specific environment
703703 ant beta:environments retrieve --environment-id "$ENVIRONMENT_ID"
704704
705 # Archive an environment (read-only, existing sessions continue)
705 # Archive an environment (read-only, no new sessions)
706706 ant beta:environments archive --environment-id "$ENVIRONMENT_ID"
707707
708 # Delete an environment (only if no sessions reference it)
708 # Delete an environment
709709 ant beta:environments delete --environment-id "$ENVIRONMENT_ID"
710710 ```
711711
from line 716
716716 # Retrieve a specific environment
717717 env = client.beta.environments.retrieve(environment.id)
718718
719 # Archive an environment (read-only, existing sessions continue)
719 # Archive an environment (read-only, no new sessions)
720720 client.beta.environments.archive(environment.id)
721721
722 # Delete an environment (only if no sessions reference it)
722 # Delete an environment
723723 client.beta.environments.delete(environment.id)
724724 ```
725725
from line 730
730730 // Retrieve a specific environment
731731 const env = await client.beta.environments.retrieve(environment.id);
732732
733 // Archive an environment (read-only, existing sessions continue)
733 // Archive an environment (read-only, no new sessions)
734734 await client.beta.environments.archive(environment.id);
735735
736 // Delete an environment (only if no sessions reference it)
736 // Delete an environment
737737 await client.beta.environments.delete(environment.id);
738738 ```
739739
from line 744
744744 // Retrieve a specific environment
745745 var env = await client.Beta.Environments.Retrieve(environment.ID);
746746
747 // Archive an environment (read-only, existing sessions continue)
747 // Archive an environment (read-only, no new sessions)
748748 await client.Beta.Environments.Archive(environment.ID);
749749
750 // Delete an environment (only if no sessions reference it)
750 // Delete an environment
751751 await client.Beta.Environments.Delete(environment.ID);
752752 ```
753753
from line 760
760760 env, err := client.Beta.Environments.Get(ctx, environment.ID, anthropic.BetaEnvironmentGetParams{})
761761 // ...
762762
763 // Archive an environment (read-only, existing sessions continue)
763 // Archive an environment (read-only, no new sessions)
764764 _, err = client.Beta.Environments.Archive(ctx, environment.ID, anthropic.BetaEnvironmentArchiveParams{})
765765 // ...
766766
767 // Delete an environment (only if no sessions reference it)
767 // Delete an environment
768768 _, err = client.Beta.Environments.Delete(ctx, environment.ID, anthropic.BetaEnvironmentDeleteParams{})
769769 ```
770770
from line 773
773773 var environments = client.beta().environments().list();
774774 // Retrieve a specific environment
775775 var env = client.beta().environments().retrieve(environment.id());
776 // Archive an environment (read-only, existing sessions continue)
776 // Archive an environment (read-only, no new sessions)
777777 client.beta().environments().archive(environment.id());
778 // Delete an environment (only if no sessions reference it)
778 // Delete an environment
779779 client.beta().environments().delete(environment.id());
780780 ```
781781
from line 784
784784 $environments = $client->beta->environments->list();
785785 // Retrieve a specific environment
786786 $env = $client->beta->environments->retrieve($environment->id);
787 // Archive an environment (read-only, existing sessions continue)
787 // Archive an environment (read-only, no new sessions)
788788 $client->beta->environments->archive($environment->id);
789 // Delete an environment (only if no sessions reference it)
789 // Delete an environment
790790 $client->beta->environments->delete($environment->id);
791791 ```
792792
from line 797
797797 # Retrieve a specific environment
798798 env = client.beta.environments.retrieve(environment.id)
799799
800 # Archive an environment (read-only, existing sessions continue)
800 # Archive an environment (read-only, no new sessions)
801801 client.beta.environments.archive(environment.id)
802802
803 # Delete an environment (only if no sessions reference it)
803 # Delete an environment
804804 client.beta.environments.delete(environment.id)
805805 ```
806806</CodeGroup>
No line in this hunk matches that.