---
title: "Validates weather an oc_service.sh file exists or not"
method: GET
path: "/assistant/oc/restart/file/exists"
tags: ["Update Assistant"]
---

# Validates weather an oc_service.sh file exists or not

`GET /assistant/oc/restart/file/exists`

## Request

- Base URL: `http://localhost:9090`
- URL: `http://localhost:9090/assistant/oc/restart/file/exists`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/opencelium/apis/opencelium-api/docs/assistant/oc/restart/file/exists/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

Returns response from Service Portal in json format

- ErrorResource
  - `timestamp` string, date-time
  - `status` integer
  - `error` string
  - `message` string
  - `path` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal Error
- `502`: Bad Gateway

## Changes

> 3 revisions in range; 1 not diffed.

- **2026-07-30** `82ed767ffb65`: 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/opencelium/apis/opencelium-api/changes/assistant/oc/restart/file/exists/get.md)

---

[API](https://skmtc.dev/opencelium/apis/opencelium-api.md) - [All operations](https://skmtc.dev/opencelium/apis/opencelium-api/llms.txt) - [OpenAPI document](https://skmtc.dev/opencelium/apis/opencelium-api/revisions/82ed767ffb65?raw)
