PUT
/
sessions
/
{session_id}
/
review
curl --request PUT \
  --url https://use.hoop.dev/api/sessions/{session_id}/review \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "APPROVED"
}'
{
  "access_duration": 0,
  "created_at": "2024-07-25T15:56:35.317601Z",
  "id": "9F9745B4-C77B-4D52-84D3-E24F67E3623C",
  "input": "SELECT NOW()",
  "input_clientargs": [
    "-x"
  ],
  "org": "A72CF2A0-12D0-4E0D-A732-E34FFA3D9417",
  "review_connection": {
    "id": "20A5AABE-C35D-4F04-A5A7-C856EE6C7703",
    "name": "pgdemo"
  },
  "review_groups_data": [
    {
      "group": "sre",
      "id": "20A5AABE-C35D-4F04-A5A7-C856EE6C7703",
      "review_date": "2024-07-25T19:36:41Z",
      "reviewed_by": {
        "email": "john.wick@bad.org",
        "id": "D5BFA2DD-7A09-40AE-AFEB-C95787BA9E90",
        "name": "John Wick",
        "slack_id": "U053ELZHB53"
      },
      "status": "APPROVED"
    }
  ],
  "review_owner": {
    "email": "john.wick@bad.org",
    "id": "D5BFA2DD-7A09-40AE-AFEB-C95787BA9E90",
    "name": "John Wick",
    "slack_id": "U053ELZHB53"
  },
  "revoke_at": "",
  "session": "35DB0A2F-E5CE-4AD8-A308-55C3108956E5",
  "status": "PENDING",
  "type": "onetime"
}

Path Parameters

session_id
string
required

Resource identifier of the session

Body

application/json
The request body resource

The body is of type object.

Response

200
application/json
OK

The response is of type object.