POST /api/v1/cloud/sessions/{session_id}/resources/{resource_id}
Updates one Session resource. Current CAS supports token rotation only for github_repository resources.
Path parameters
| Parameter | Type | Description |
|---|---|---|
session_id | string | Session ID with the sess_ prefix |
resource_id | string | Resource ID with the sesr_ prefix |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Content-Type | Yes | application/json |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
authorization_token | string | Yes | New GitHub token |
Example request
Example response
HTTP 200 OK Returns the updated Session resource. The token is not returned.Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Resource is not a github_repository, or malformed request |
| 401 | authentication_error | PAT invalid or expired |
| 404 | not_found_error | Session or resource does not exist |