Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

/jobnote/get

The action returns information about a job note associated to a work order.

Request

FieldDescriptionTypeRequired
report_idUnique identifier for the work ordernumberYes
note_idUnique identifier for the job notenumberYes

Use the /jobnote/list action to get the note_id for a job note.

Example:

{
  "report_id": 40945,
  "note_id": 232
}
curl -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer ACCESS_TOKEN' \
     -d '{"report_id":40945,"note_id": 232}' \
     https://ppw.web/svc/jobnote/get

Response

FieldDescriptionType
report_idUnique identifier for the work ordernumber
note_idUnique identifier for the job notenumber
base_revisionFirst revision (note_id) of the job note. It will be 0 if the job note does not have multiple revisionsnumber
note_typeNote type. It wo if it is a work order note and prop if it is a property notestring
note_textJob note bodystring
created_byuser_id of the user that created the job note. user_id is the unique identifier for a PPW usernumber
create_timeTime when the job note was created. The format is unix timenumber
sent_to_usersList of PPW users the job note was sent to. Each item in the list is a user_idarray
sent_to_emailsList of email addresses the job note was sent toarray
reminder_dateJob note reminder date in YYYY-MM-DD formatstring
reminder_timeJob note reminder time. See /jobnote/reminder/timesstring
group_permissionsList of user groups that have permission to view the job note. See /user/group/listarray

The sent_to_users and sent_to_emails fields will get set in the response when the job note was sent to more or more PPW users or email addresses. The reminder_date and reminder_time will set in the response only when the job note has a job note reminder.

Example successful response:

{
  "report_id": 40945,
  "note_id": 234,
  "base_revision": 227,
  "note_type": "prop",
  "note_text": "Responded to a leak under the kitchen sink. Replaced worn-out washer and tightened connections. No further leaks detected. Customer advised to check periodically for any signs of moisture.",
  "created_by": 45592,
  "create_time": 1722363851,
  "sent_to_users": [45592, 131705],
  "reminder_date": "2024-07-05",
  "reminder_time": "023000",
  "group_permissions": [3651, 3654, 3653, 3652]
}

Errors

Error TypeDescriptionStatus Code
invalid_report_idUnique work order identifier is invalid400
invalid_note_idUnique job note identifier is invalid400
note_not_foundJob note not found404