add
Genre
add
Add Genre
This endpoint allows you to add a new genre.
Request Body
name: (string) The name of the genre to be added.
Example:
{
"name": "SciFi"
}
#### Response
- `data.genre.name`: (string) The name of the added genre.
- `data.genre._id`: (string) The unique identifier of the added genre.
- `data.genre.createdAt`: (string) The timestamp of when the genre was created.
- `data.genre.updatedAt`: (string) The timestamp of when the genre was last updated.
- `data.genre.__v`: (number) Version key.
- `error`: (null) If there is an error, it will be populated here.
Example:
```json
{
"data": {
"genre": {
"name": "",
"_id": "",
"createdAt": "",
"updatedAt": "",
"__v": 0
}
},
"error": null
}