# Read the About for a report

Source: https://docs.musicnerd.net/api-reference/admin/get-correction-about

Read the About for a report

## GET /api/admin/bio-corrections/{id}/about

Full OpenAPI specification: https://docs.musicnerd.net/spec/admin.json

## Authentication

This operation requires one of the security alternatives in the specification below. Security scheme definitions are included where present in the published specification.

[Authentication guide](https://docs.musicnerd.net/authentication)

## Operation and referenced schemas

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Music Nerd API: admin",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://musicnerd-api.vercel.app",
      "description": "Production"
    },
    {
      "url": "https://musicnerd-api-staging.vercel.app",
      "description": "Staging (staging database)"
    }
  ],
  "paths": {
    "/api/admin/bio-corrections/{id}/about": {
      "get": {
        "summary": "Read the About for a report",
        "operationId": "getCorrectionAbout",
        "security": [
          {
            "adminBearer": []
          }
        ],
        "description": "The About currently published for the artist a pending correction report is about, with a `revision` hash to send back on save. For a claimed artist that is their own About; for an unclaimed one, the public directory About.",
        "parameters": [
          {
            "$ref": "#/components/parameters/reportId"
          }
        ],
        "responses": {
          "200": {
            "description": "The published About and its revision.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "type": "string"
                },
                "example": "private, no-store"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CorrectionAbout"
                },
                "example": {
                  "status": "ok",
                  "bio": "Bio Ritmo is a 10-piece salsa band from Richmond, Virginia.",
                  "revision": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidReportId"
          },
          "401": {
            "$ref": "#/components/responses/NotSignedIn"
          },
          "403": {
            "$ref": "#/components/responses/NotAdmin"
          },
          "409": {
            "description": "The report was already reviewed or no longer exists, the About is pinned (unpin it on the artist profile first), or the published About is no longer available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "reviewed": {
                    "value": {
                      "status": "error",
                      "error": "This report has already been reviewed or no longer exists."
                    }
                  },
                  "pinned": {
                    "value": {
                      "status": "error",
                      "error": "This About is pinned. Unpin it on the artist profile before editing."
                    }
                  },
                  "unavailable": {
                    "value": {
                      "status": "error",
                      "error": "The published About is no longer available. Review the artist profile before resolving this report."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The About could not be read.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "Could not load the current About. Try again."
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "reportId": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "The correction report's ID (a UUID).",
        "schema": {
          "type": "string",
          "format": "uuid"
        },
        "example": "e7a5f235-4e66-40ba-9ff6-7276339fe34f"
      }
    },
    "schemas": {
      "CorrectionAbout": {
        "type": "object",
        "required": [
          "status",
          "bio",
          "revision"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok"
            ]
          },
          "bio": {
            "type": "string",
            "description": "The published About."
          },
          "revision": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "A SHA-256 over the artist, its claim and the About. Send it back on save."
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "error"
            ]
          },
          "error": {
            "type": "string"
          }
        }
      }
    },
    "responses": {
      "InvalidReportId": {
        "description": "`id` isn't a UUID.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "status": "error",
              "error": "Invalid report ID"
            }
          }
        }
      },
      "NotSignedIn": {
        "description": "No token, an invalid or expired token, or no Music Nerd user for it.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "status": "error",
              "error": "Not signed in"
            }
          }
        }
      },
      "NotAdmin": {
        "description": "The user is not an admin.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "status": "error",
              "error": "Forbidden"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "adminBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Access token",
        "description": "A Music Nerd admin's access token. Copy it at https://musicnerd.net/access after signing in. A signed-in user who is not an admin gets 403."
      }
    }
  }
}
```
