PUT - /api/v1/author_bios/:id - Updating
PUT /api/v1/author_bios/:id
Parameters
| Name |
Description |
|
id
|
id
|
|
facebook_username
|
FB
|
|
google_plus_username
|
google
|
|
is_published
|
show to public?
|
|
name
|
display name of the author
|
|
position
|
display order
|
|
profile_image_url
|
profile image
|
|
twitter_username
|
twitter accnt
|
|
user_id
|
teacher this bio relates to
|
|
headline
|
short description
|
|
text
|
details
|
Request
Headers
Route
PUT /api/v1/author_bios/26
Body
{"name":"Name","headline":"test headline"}
cURL
curl "http://localhost:3000/api/v1/author_bios/26" -d '{"name":"Name","headline":"test headline"}' -X PUT \
-H "Accept: application/json" \
-H "X-Api-Token: 5Qs5mzp5it7_Ssv6rrVeFJtYAYKnoNNRow" \
-H "X-Api-Email: user-42@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
202 Accepted
Body
{
"created_at": "2019-10-31T21:58:32Z",
"headline": "test headline",
"profile_image_url": "http://www.example.com",
"bio": "MyText",
"position": null,
"user_id": 44,
"name": "Name",
"id": 26,
"meta": {
"class": "authorbio",
"url": "/author_bios/26",
"name": "Name",
"description": "",
"image_url": null
}
}