curl --request PATCH \
  --url https://api.usepylon.com/issues/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "state": "<string>"
}'

Update the state of an existing Pylon issue.

Body Parameters

state
string
required

The state this issue should be moved to. Can be one of open, waiting_on_you, waiting_on_customer, on_hold, or closed.

Response

Example response

{
    "data": {
        "id": "da7bac3f-f070-4106-9ee9-8aea27b36cf9",
        "title": "Need help with configuration!",
        "body_html": "<p>Hey team, I am running into some issues with my configuration - can I get some help?</p>",
        "state": "closed",
        "account": {
            "id": "9bc51275-56d1-4dec-b908-8f3abf8a9792"
        },
        "assignee": {
          "id": "1a953adb-1cb6-45a2-845e-8e4f452815d7"
        },
        "requester": {
          "id": "bd992aa9-1c32-4073-88a9-681e7a915809"
        },
        "created_at": "2023-11-20T11:43:15-08:00"
    },
    "request_id": "5ee42efe-3ddc-4d0b-8d2f-443facf98753"
}