Atualidades
Criação de conteúdo
POST
/api/v2/atualidades/content/create Cada parceiro enviará o seu formato de payload.
Request
POST /api/v2/atualidades/content/create
Authorization: APIAuth access_key_id:signature
Content-MD5: <hash-content-md5>
DATE: Thu, 03 Dec 2020 16:43:58 GMT{
"data": {
"context": {
"href": "https://example.link",
"type": "story",
"created": "2020-11-25T23:27:25.000Z",
"published": "2020-11-26T00:33:09.000Z",
"updated": "2020-11-26T00:33:09.000Z",
"edited": "2020-11-26T00:33:09.000Z",
"displayId": "1",
"authors": [
{ "name": "Name" }
],
"section": {
"name": "Expresso",
"href": "https://example.link",
"uniqueName": "expresso"
},
"fields": {
"overline": "",
"title": "Title",
"leadtext": "Leadtext",
"body": [
{
"type": "p",
"attributes": [],
"children": [
{
"type": "span",
"attributes": [],
"children": [
{ "type": "a", "children": [] }
]
}
]
}
]
},
"teaserImages": [
{
"content": {
"fields": {
"title": "Title",
"caption": "Caption",
"alttext": "Alttext",
"photographer": "Photographer",
"credits": "Credits",
"landscapeSmall": {
"href": "https://example.link",
"width": 560,
"height": 350
},
"landscape640": {
"href": "https://example.link",
"width": 640,
"height": 399
}
}
}
}
]
}
}
} Response
201 Created
{
"errors": [],
"status": true
}