Seasons

Give posts without a date the date read from their link

For each given post that still has a zero date, writes the publication date read from its link to its issued_at, retained_at and social detail. Posts whose link carries no date are reported as not recoverable; posts that already have a real date are left out. Each change is written to the activity log. Requires the permission to edit leagues.

post/api/admin/posts-without-date/apply

Request

Request body

item_value_idsinteger[] required

The posts (item_values.id) to give the date read from their link. Posts that already have a real date are left out.

Example request

{
  "item_value_ids": [
    11306565,
    11306568
  ]
}

Response

The posts that got a date and those whose link carries none.

recoveredinteger[]
not_recoverableinteger[]

Example response

{
  "recovered": [
    11306565
  ],
  "not_recoverable": []
}

Changes

No recorded changes to this operation across all 2 revisions of this API.