Skip to content

POST vs PUT pixel #32

@Dennis-Dang

Description

@Dennis-Dang

Hi, I'm new to programming and just got started working on a fun project with APIs with python. I am not totally new to how APIs work, but know enough.

I am having trouble distinguishing the behavior of these two methods. I've seen tutorial videos made in the past where the POST method will not work if there is already an existing Pixel present on the same date. But oddly enough, that's now allowed. How is this different from modifying my Pixel with the PUT method to update it?

Should the PUT method be strictly only be used to modify Pixels, and the POST method be strictly used to create new pixels as worded in the documentation?

TLDR; how is it that I am able to overwrite/modify Pixels with the POST method? Is this an intended feature or a minor bug that should be addressed?

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