# Report a problem with the About

Source: https://docs.musicnerd.net/api-reference/artist-bio/bio-correction

Report a problem with the About

## POST /api/artist/{id}/bio-corrections

Full OpenAPI specification: https://docs.musicnerd.net/spec/artist-bio.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: artist bio",
    "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/artist/{id}/bio-corrections": {
      "post": {
        "summary": "Report a problem with the About",
        "operationId": "postBioCorrection",
        "security": [
          {
            "privyBearer": []
          }
        ],
        "description": "Files a correction report on the artist's About for an admin to review; any signed-in user may send one. `expectedBio` is the About text the caller read, so a report never lands on an About that has since changed. The same report sent again is acknowledged as a duplicate, and an account may file at most 10 reports in a rolling 24 hours.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The artist's ID (a UUID).",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "example": "aab92f80-f9e1-4299-aa33-7dd85c8de5d3"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 18,000 characters.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "reason",
                  "expectedBio"
                ],
                "properties": {
                  "reason": {
                    "type": "string",
                    "enum": [
                      "wrong_artist",
                      "incorrect",
                      "outdated",
                      "other"
                    ],
                    "description": "What is wrong."
                  },
                  "details": {
                    "type": "string",
                    "maxLength": 2000,
                    "description": "What should change, in the reporter's words. Optional; trimmed."
                  },
                  "sourceUrl": {
                    "type": "string",
                    "maxLength": 2048,
                    "description": "A public web page that backs the report. Optional; a bare domain gets `https://`. Private or local addresses are refused."
                  },
                  "expectedBio": {
                    "type": "string",
                    "maxLength": 12000,
                    "description": "The About text the reporter saw, exactly as the read endpoint returned it."
                  }
                }
              },
              "example": {
                "reason": "outdated",
                "details": "The band has had twelve members since 2024.",
                "sourceUrl": "https://www.bioritmo.com/about",
                "expectedBio": "Bio Ritmo is a 10-piece salsa band from Richmond, Virginia."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "An identical pending report from this account already exists; nothing new was filed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BioCorrectionFiled"
                },
                "example": {
                  "status": "ok",
                  "success": true,
                  "duplicate": true
                }
              }
            }
          },
          "201": {
            "description": "The report was filed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BioCorrectionFiled"
                },
                "example": {
                  "status": "ok",
                  "success": true,
                  "duplicate": false
                }
              }
            }
          },
          "400": {
            "description": "`id` isn't a UUID, the body isn't JSON, or the report has no valid reason, details or source URL.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "artist": {
                    "summary": "Bad artist id",
                    "value": {
                      "status": "error",
                      "error": "Invalid artist ID"
                    }
                  },
                  "json": {
                    "summary": "Not JSON",
                    "value": {
                      "status": "error",
                      "error": "Invalid report"
                    }
                  },
                  "fields": {
                    "summary": "Invalid fields",
                    "value": {
                      "status": "error",
                      "error": "Choose a reason and enter valid details or a public source URL"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "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"
                }
              }
            }
          },
          "404": {
            "description": "No artist with that ID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "Artist not found"
                }
              }
            }
          },
          "409": {
            "description": "The About has changed since the reporter read it, or there is no real About to report on.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "This About has changed. Reload the profile before sending your suggestion."
                }
              }
            }
          },
          "413": {
            "description": "The body is over 18,000 characters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "Report is too long"
                }
              }
            }
          },
          "429": {
            "description": "This account has filed 10 reports in the past 24 hours.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "You have sent 10 reports in the past 24 hours. Please try again when an earlier report is more than 24 hours old."
                }
              }
            }
          },
          "500": {
            "description": "The report could not be saved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "error",
                  "error": "Could not save your suggestion. Please try again."
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BioCorrectionFiled": {
        "type": "object",
        "required": [
          "status",
          "success",
          "duplicate"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok"
            ]
          },
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "duplicate": {
            "type": "boolean",
            "description": "`true` when an identical pending report from this account already existed."
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "status",
          "error"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "error"
            ]
          },
          "error": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "privyBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Access token",
        "description": "The signed-in user's access token. Copy it at https://musicnerd.net/access after signing in. Each operation says who may call it: any signed-in user, or the artist's approved claimant or a Music Nerd admin."
      }
    }
  }
}
```
