GET https://:subdomain.cobot.me/api/issues

This returns all the help desk issues for the space. If the user is not admin it only returns the not private issues or the issues the member created themselves.

Authentication required:
yes, additionally user must be a space member or admin
Scope required
read_issues
GET https://co-up.cobot.me/api/issues

Response:

[
  {
    "id": "999dda9a0e5fded7ed303b870252d74c",
    "issuer":
      {
        "name": "Joe Doe",
        "user_id": "1",
        "membership_id": "2"
      },
    "subject": "Broken chair",
    "message": "Please fix the broken chair.",
    "private": false,
    "created_at": "2016/05/04 12:00:00 +0000",
    "closed": false
  },

  {
    "id": "999dda9a0e5fded7ed303b870252e2db",
    "issuer":
      {
        "name": "Joe Doe",
        "user_id": "1",
        "membership_id": "2"
      },
    "subject": "Dying plants",
    "message": "Please water the plants on the first floor.",
    "private": false,
    "created_at": "2016/05/04 12:00:00 +0000",
    "closed": false
  }
]
POST https://:sudomain.cobot.me/api/issues
Authentication required:
yes, additionally user must be a space member or admin
Scope required
write_issues
POST https://co-up.cobot.me/api/issues

Body:

{
  subject: 'my issue',
  message: 'please fix me!',
  private: false
}

Response:

{
  id: "5fdf75523b35335eab45adc72038cf51",
  issuer: {
    name: "Anna Admin",
    user_id: "5fdf75523b35335eab45adc72038ed10",
    membership_id: nil
    },
  subject: "my issue",
  message: "please fix me!",
  private: false,
  created_at: "2016/05/04 12:00:00 +0000",
  closed: false
}

Returns 201 on success.

back to index