Skip to content

updating members in batching does not work  #317

@ynvygy

Description

@ynvygy

Hello
So i have to batch a list of members who are either new or will be updated. In the docs example i saw you'd need something like this
gibbon.batches.create(body: {
operations: [{
method: "POST",
path: "lists/#{ list_id }/members",
body: "{...}" # The JSON payload for PUT, POST, or PATCH
}, ...]})

So here the JSON payload is the same. if it's a PUT or POST (the upsert and create have the exact same body), but this would not work, because the method is 'POST' and if the member is there, it will throw a 400. But if i change that to 'PUT' then this would not go through, signaling a 405 error of method not allowed.
Is updating via batching not supported or am i missing something ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions