---
title: "Get style by class name"
method: POST
path: "/api/manageTemplate/getStyleByClassName"
tags: ["Manage Template"]
---

# Get style by class name

`POST /api/manageTemplate/getStyleByClassName`

## Request body

- GetStyleByClassNameDto
  - `className` string, required — The name of class to be fetched
  - `filePath` string, required — The path of stylesheet file to be fetched

## Response `200`

Returned style information.

- string

## Other responses

- `400` — Invalid input data.
- `404` — Style not found.
- `500` — Internal server error.

## Changes

- **2024-11-15** `c868708333be` — 3 info
  - added the media type `application/json` for the response with the status `200`
  - added the non-success response with the status `404`
  - added the non-success response with the status `500`
- **2024-03-26** `1e3129bcc5bc` — 1 info
  - endpoint added
- **2023-10-20** `bbfe1dbc457f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/openwebgal/apis/webgal-terre-api/changes/api/manageTemplate/getStyleByClassName/post.md)

---

[API](https://skmtc.dev/openwebgal/apis/webgal-terre-api.md) · [All operations](https://skmtc.dev/openwebgal/apis/webgal-terre-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openwebgal/webgal-terre-api/revisions/ebcacb42f932/schema)
