Skip to main content
POST
/
env
/
close
JavaScript
import Client from 'agentlin_client';

const client = new Client({
  apiKey: process.env['AGENTLIN_API_KEY'], // This is the default and can be omitted
});

const response = await client.env.close({ session_id: 'session_id' });

console.log(response.message);
{
  "status": "closed",
  "message": "Environment closed successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

关闭环境请求

session_id
string
required

Response

Successful Response

关闭环境响应

status
string
default:closed
message
string
default:Environment closed successfully