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/create

The action creates a job note for a work order.

Request

FieldDescriptionTypeRequired
note_typeNote type. It wo if it is a work order note and prop if it is a property notestringYes
send_to_usersList of PPW users to send the job note to. Each item in the list is a user_id.arrayNo
send_to_emailsList of email addresses to send to the job note to.arrayNo
reminder_dateJob note reminder date. Accepted formats: MM/DD/YYYY, YYYY-MM-DD, YYYYMMDDstringNo
reminder_timeJob note reminder time. For a liste of accepted times, see /jobnote/reminder/timesstringNo
note_textJob note bodystringYes
group_permissionsList of user groups that will have permission to view the job note. See /user/group/listarrayYes

For send_to_users field to get the user_id for a PPW user use the /user/search action.

If group_permissions is not provided and the “Default Note group permissions” app setting is set, the default note group permissions will be set on the new note.

If reminder_date is specified, then reminder_time is required. The reminder_time must be US Central time.

Example:

{
  "report_id": 40945,
  "note_type": "wo",
  "send_to_emails": [],
  "send_to_users": [45592],
  "reminder_date": "2024-08-01",
  "reminder_time": "133000",
  "note_text": "Performed deep cleaning on 5 rooms of carpet. Stains were treated and removed successfully. Client expressed satisfaction with the results and requested a follow-up cleaning in 6 months.",
  "group_permissions": [3651, 3654]
}
curl -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer ACCESS_TOKEN' \
     -d '{"report_id":40945,"note_type":"wo","send_to_emails":[],"send_to_users":[45592],"reminder_DATE":"2024-08-01","reminder_time":"133000","note_text":"Performed deep cleaning on 5 rooms of carpet. Stains were treated and removed successfully. Client expressed satisfaction with the results and requested a follow-up cleaning in 6 months.","group_permissions":[3651,3654]}' \
     https://ppw.web/svc/jobnote/create

Response

FieldDescriptionType
note_idUnique identifier for the job notenumber

Example successful response:

{
  "note_id": 239
}

Errors

Error TypeDescriptionStatus Code
invalid_report_idUnique work order identifier is invalid400
note_type_requiredJob note type is required400
invalid_note_typeJob note type is invalid400
note_text_requiredJob note text is required400
invalid_send_to_userssend_to_users field is invalid400
invalid_send_to_emailssend_to_emails field is invalid400
invalid_reminder_dateReminder date is invalid400
reminder_time_requiredReminder time is required400
invalid_reminder_timeReminder time is invalid400
group_permissions_requiredGroup permissions is required400
invalid_group_permissiongroup_permissions is invalid400
note_create_errorError creating job note400