cURL
curl --request POST \ --url https://api.glider.fi/portfolio/:portfolioId/archive \ --header 'Content-Type: <content-type>' \ --header 'X-API-KEY: <api-key>' \ --data '{ "reason": "<string>", "resumeSchedules": true }'
{ "success": true, "data": { "portfolio": { "id": "<string>", "status": "<string>", "unarchivedAt": "<string>", "unarchivedBy": "<string>", "schedules": [ {} ] } }, "NOT_FOUND": {}, "UNAUTHORIZED": {}, "FORBIDDEN": {}, "BAD_REQUEST": {} }
Archive or unarchive a portfolio
POST /portfolio/:portfolioId/archive
application/json
Show Properties
Show Portfolio Object
POST /portfolio/:portfolioId/unarchive
curl -X POST "https://api.glider.fi/portfolio/port_1a2b3c4d5e6f/archive" \ -H "X-API-KEY: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "reason": "No longer in use" }'
{ "success": true, "data": { "portfolio": { "id": "port_1a2b3c4d5e6f", "status": "archived", "archivedAt": "2023-05-15T14:30:00Z", "archivedBy": "api_user_123", "archiveReason": "No longer in use" } } }
curl -X POST "https://api.glider.fi/portfolio/port_1a2b3c4d5e6f/unarchive" \ -H "X-API-KEY: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "resumeSchedules": true }'
{ "success": true, "data": { "portfolio": { "id": "port_1a2b3c4d5e6f", "status": "active", "unarchivedAt": "2023-05-20T09:15:00Z", "unarchivedBy": "api_user_123", "schedules": [ { "id": "sched_1a2b3c4d", "type": "threshold", "status": "active" } ] } } }