cURL
curl --request PUT \ --url https://maas-alpha.vercel.app/api/meows/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "breed": "<string>", "image": "<string>", "personality": "Playful" }'
{ "message": "<string>", "data": { "id": "<string>", "name": "<string>", "breed": "<string>", "image": "<string>", "personality": "Playful", "owner_id": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
You can only update cats that you have created.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
id of the cat.
Operation successful
The response is of type object.
object