Impossible to set Blog posting date via v2 API

Hi,

With API v2 there is no way to set the posting date when creating or updating a Blog Post.

In v1 you could create multiple blog posts with the same title (in same space) if they had a different posting day. Now this seems to be impossible…
Removing this possibility changes the unicity rule for blogs:

  • With V2, the pair (blog title, space) should be unique.
  • With V1 the triplet (blog title,space,posting day) must be unique…

Is that a design choice that will stick or a hole in the v2 api that will be fixed in the future? Note that is prevents scenarios like trying to migrate/clone blog posts preserving the dates…

Thanks in advance for your help,

@jeanlucthirion - Is there an example request with V2 API you could provide that doesn’t work? You should be able to create a new blog post via V2 API with a duplicate title provided it is created on a different date (different time on the same date will not work). This behavior is the same on V1 API as well. The reason why creating blog post on the same date won’t work is a known limitation with Confluence, see https://jira.atlassian.com/browse/CONFCLOUD-2524 for more info.

1 Like

@NehaKalekar It is that v2 does not offer the possibility. It was possible to explicitly set the creation date when creating a blog (using content endpoint) with V1 and it is no more possible with the v2 blog endpoint …

An issue was created here: https://jira.atlassian.com/browse/CONFCLOUD-78602

1 Like