Pynews
  1. News
Pynews
  • Authentication
    • Athenticate
      POST
  • News
    • Create
      POST
    • Get
      GET
    • Update
      PUT
    • Like
      POST
  • Libraries
    • Create Subscription
      POST
    • Add new Library
      POST
    • GET List of the last 30 days updates
      GET
  1. News

Update

Developing
PUT
/news/{news_id}
News
Atualizar um tema a ser votado
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT 'http://localhost:8080/news/' \
--header 'Authorization:  ' \
--header 'user-email: userA@gmail.com' \
--header 'Content-Type: application/json' \
--data-raw '{
    "title": "Qualquer",
    "content": "Descritivo",
    "author": "name",
    "category":"categoria",
    "tags": ["tag1", "tag2"],
    "source_url": "https://www.notica.com.br/notica.html",
    "social_media_url": "https://linkedin.com/in/danielsoaresmartins"
}'
Response Response Example
{ "news_id" : "6549873", "status": "updated" }

Request

Path Params
news_id
string 
required
Example:
{{news_id}}
Header Params
Authorization
string 
required
Example:
{{token_type}} {{access_token}}
Content-Type
string 
required
Example:
application/json
user-email
string <email>
required
Example:
userA@gmail.com
Body Params application/json
title
string 
required
content
string 
required
category
string 
Categoria
required
Example:
programacao
tags
array[string]
optional
source_url
string <uri-reference>
required
social_media_url
string <uri-reference>
optional
Examples

Responses

🟢200Success
application/json
Body
news_id
string 
required
status
string 
required
Modified at 2025-04-16 23:07:04
Previous
Get
Next
Like
Built with