People - Status


Create Status

POST /me/status.json
POST /people/{person_id}/status.json

This call will create a status entry. The ID of the new status is returned in header id

Request

{
  "userstatus": {
    "status": "Status message here",
    "notify":  "no"
  }
}

See Projects in data reference


Update Status

PUT /me/status/{status_id}.json
PUT /people/status/{status_id}.json
PUT /people/{person_id}/status/{status_id}.json

Modifies a status post.

Request

{
  "userstatus": {
    "status": "Updated status message here",
    "notify":  "no"
  }
}

See Projects in data reference

Response

Returns HTTP status code 200 on success.


Delete Status

DELETE /me/status/{status_id}.json
DELETE /people/status/{status_id}.json
DELETE /people/{person_id}/status/{status_id}.json

This call will delete a particular status message.

Response

Returns HTTP status code 200 on success.


Retrieve a Persons Status

GET /me/status.json
GET /people/{user_id}/
status.json

Returns the latest status post for a user

Response

{
    "userStatus": {
        "first-name": "Demo",
        "avatar-url": "http://demo1company.teamwork.com/images/demo.jpg",
        "id": "999",
        "status": "Writing a proposal",
        "last-name": "User"
    }
}


Retrieve Everybodys Status

GET /people/status.json

All of the latest status posts are returned for all users in the parent company.

Response

{
    "userStatuses": [
        {
            "geoipLocation": "",
            "posted-on": "2014-04-01T13:58:30Z",
            "first-name": "Demo",
            "avatar-url": "http://demo1company.teamwork.com/images/demo.jpg",
            "id": "999",
            "last-changed-on": "2014-04-01T13:58:30Z",
            "status": "Writing a proposal",
            "last-name": "User",
            "userId": "999"
        },
        {
            "geoipLocation": "",
            "posted-on": "2014-04-01T13:37:39Z",
            "first-name": "'Demo 2",
            "avatar-url": "http://demo1company.teamwork.com/images/demo2.jpg",
            "id": "1000",
            "last-changed-on": "2014-04-01T13:37:39Z",
            "status": "Status message here",
            "last-name": "User'",
            "userId": "1000"
        }
    ]
}