Skip to content

500 on PUT /v2/workers/{worker_id} with team set to empty string #480

@bosconian-dynamics

Description

@bosconian-dynamics

It seems like unsetting a worker's team is presently impossible on the v2 API:

  • tinybots.net/artbot sends a payload with "team": null which fails type validation for the parameter.
  • artbot.site (v2) sends an empty string as suggested in the endpoint doc, but the server responds with HTTP 500 (briefly alluded to in feat: implement worker management artbot#56)

Both ArtBot deployments send the team ID with each Update Single Worker request - so as a side effect, both appear to be unable to update the name/info fields for workers unless a team is selected.

I have confirmed the null/"" responses and inability to update info/name when sending either empty team value in the payload via Postman, as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions