Skip to content

Archive a provider (cascades to agent roles)

POST
/providers/{id}/archive
curl --request POST \
--url https://your-org.evershell.ai/v1/providers/example/archive \
--header 'Authorization: Bearer <token>'

Permissions: caps:write.

Hides the provider from default listings and cascades the same archive into every agent role that references it. The workspace pods of those roles continue running with the previously-activated config — archive does not interrupt in-flight work.

id
required
string

OK

Media type application/json
object
status
required
string
cascaded_roles

Number of agent roles that were also archived as part of this call.

integer
Example
{
"status": "archived"
}

Resource not found in the caller’s org

Media type application/json
object
error
required
object
code
required

Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)

string
message
required

Human-readable summary

string
request_id
required

Server-generated request id for correlating logs

string
details

Optional structured context. Validation errors land at details.fields as a per-field map.

object
key
additional properties
any
Example
{
"error": {
"code": "permission_denied",
"message": "caller lacks required scope",
"request_id": "7f3a9c2e"
}
}

workspaces_active — one or more workspaces using a role that depends on this provider are still running. Stop them (or use POST /agent-roles/{id}/stop-workspaces on each affected role) before archiving.

Media type application/json
object
error
required
object
code
required

Closed-enum slug (e.g. permission_denied, validation_error, workspace_not_found)

string
message
required

Human-readable summary

string
request_id
required

Server-generated request id for correlating logs

string
details

Optional structured context. Validation errors land at details.fields as a per-field map.

object
key
additional properties
any
Example
{
"error": {
"code": "permission_denied",
"message": "caller lacks required scope",
"request_id": "7f3a9c2e"
}
}