Skip to content

overwriteRequestBody for array #195

Answered by thim81
schelv asked this question in Q&A
Discussion options

You must be logged in to vote

hi @schelv

It should be possible. Example:

{
      key: 'websites',
      value: [
        {
          url: 'http://widget.biz',
          id: '5678',
          type: 'tertiary'
        }
      ],
      overwrite: true
    }

Which will overwrite the websites array, with the newly provided array.

(note: I havent tested this myself, but I recall that we did a lot of work to support a wide range of overwrite cases)

Replies: 5 comments

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #184 on December 09, 2021 08:45.