sessions

Rotate a repository's token [write]

Changed on

Only github_repository resources accept an update, and the token is the only field: it is re-encrypted and the session's egress policy is recompiled and pushed to its live pod — nothing changes inside the sandbox. A file or memory store answers 400. A token that conflicts with another secret's Authorization header on github.com answers 400 egress_header_conflict.

post/sessions/{id}/resources/{rid}

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/sessions/{id}/resources/{rid}
  • Auth
    HTTP bearer

Path parameters

idstring required

The session id (sess_…)

ridstring required

The resource id (sesrsc_… or smsr_…)

Request body

authorization_tokenstring required

Response

OK

OR
OR

Changes