Skip to content
Discussion options

You must be logged in to vote

Updating additional_properties with the Draft API (without breaking ANS)

Here’s a straightforward way to safely update additional_properties on a story using the Draft API, without losing fields like authors or running into validation errors.


What’s going wrong

You’re seeing two things:

  1. Fields disappear (authors, content_restrictions, etc.)
    When you call:

    PUT /draft/v1/story/{id}/revision/draft
    Content-Type: application/json
    
    {
      "ans": { ... }
    }

    the Draft API treats that as: “replace the draft’s ANS with whatever you send”. If you only send a partial ANS (for example, mainly additional_properties and a few fields), anything you don’t include (like credits.by for authors or content_res…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by radominchev
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
arcxp/publishing-apis Content API services
2 participants