•  
      request #46384 Type error on POST /api/artifacts
    Infos
    #46384
    Kevin Traini (ktraini)
    2026-01-20 10:53
    2026-01-19 15:08
    48109
    Details
    Type error on POST /api/artifacts

    If your Tracker have a field with a numeric name (1 for example), when creating an artifact of it from the API with this payload:

    {
      "tracker": {
        "id": 3
      },
      "values_by_field": {
        "1": { "value": "hello3" }
      }
    }
    

    It returns a 200 response but with a PHP TypeError in the body.

    Trackers
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Kevin Traini (ktraini)
    Closed
    2026-01-20
    Attachments
    Empty
    References

    Follow-ups