/messages/:id Permission level: 5

put/messages/{id}

Request

  • Base URL
    https://www.humanity.com/api/v2
  • Auth
    API key in query parameter access_token

Path parameters

idinteger required

Request body application/x-www-form-urlencoded

readinteger

enum[0,1] *0 - Message is not read 1 - Message is read

Response

200

statusinteger
errorunknown

Example response

{
  "status": 1,
  "data": {
    "id": "119302",
    "from": {
      "id": "18487",
      "name": "Jose Ricaurte Jaen C"
    },
    "to": {
      "id": "2",
      "name": "Ryan Fyfe"
    },
    "type": "1",
    "replyto": "0",
    "date_sent": "1324585559",
    "date_read": "1334847756",
    "subject": "Test",
    "message": "Testing",
    "message_formatted": "Testing",
    "date_sent_formatted": {
      "id": 967,
      "timestamp": 1324530000,
      "month": 12,
      "day": 22,
      "year": 2011,
      "week": 51,
      "dayid": 5,
      "weekday": "Thu",
      "mname": "Dec",
      "formatted": "Dec 22, 2011"
    },
    "date_read_formatted": {
      "id": 1086,
      "timestamp": 1334811600,
      "month": 4,
      "day": 19,
      "year": 2012,
      "week": 16,
      "dayid": 5,
      "weekday": "Thu",
      "mname": "Apr",
      "formatted": "Apr 19, 2012"
    }
  }
}

Changes