v1

latestOpenAPI 3.1.02026-07-2612071.0 KB

PUT Employee

/employees/:id Permission level: 5

put/employees/{id}

Path parameters

idinteger required

Response

200

statusinteger
tokenstring
{"stackTrail":"paths:/employees/{id}:put:responses:200:content:application/json:schema:properties:error","oasType":"schema","type":"unknown"}

Example response

{
  "status": 1,
  "data": {
    "id": "3997029",
    "username": "mikestan",
    "email": "michael.stanley.333@mail.com",
    "realname": "Mike",
    "location": "0",
    "email_setting": "1",
    "notify_with_post": "0",
    "auto_notify": "0",
    "show_smilies": "1",
    "show_img": "1",
    "show_img_sig": "1",
    "show_avatars": "1",
    "show_sig": "1",
    "access_keys": "0",
    "timezone": "314",
    "dst": "0",
    "time_format": "0",
    "date_format": "0",
    "style": "ShiftPlanning",
    "num_posts": "0",
    "registered": "1523636522",
    "registration_ip": "82.117.214.54",
    "last_visit": "0",
    "last_active": "0",
    "pun_bbcode_enabled": "1",
    "pun_bbcode_use_buttons": "1",
    "pun_pm_long_subject": "1",
    "newsletter": "1",
    "email_confirmed": "0",
    "status": "1",
    "deleted": "0",
    "deleted_by": "0",
    "legal_agree": "0",
    "referral": "0",
    "name": "Mike",
    "firstname": "Michael",
    "lastname": "Stanley",
    "nick_name": "Mike",
    "birth_day": "0",
    "birth_month": "0",
    "cellphone_confirmed": "0",
    "last_sms_sent": "0",
    "avatar": {
      "small": "https://d3l54fgzztlejs.cloudfront.net/app/layout/images/no_avatar.png",
      "medium": "https://d3l54fgzztlejs.cloudfront.net/app/layout/images/no_avatar.png",
      "large": "https://d3l54fgzztlejs.cloudfront.net/app/layout/images/no_avatar.png"
    },
    "city": "Dallas",
    "state": "Texas",
    "notes": "Has CCNP certificate",
    "p_email": "1",
    "p_phone": "1",
    "notify_sms": "-1",
    "notify_email": "1",
    "e_new_pm": "0",
    "ical": "https://www.humanity.com/ical/63003e011dcbce011aa0d9d426017f3b.ics",
    "24hr": "0",
    "startday": "1",
    "pref_caltime": "10",
    "pref_shift_autoconfirm": "-1",
    "undertime": "0",
    "overtime": "-1",
    "recommend": "0",
    "tut_v2_sched": "0",
    "daily_overtime": "0",
    "max_days_row": "-1",
    "monthly_undertime": "0",
    "monthly_overtime": "-1",
    "pref_mtimebshifts": "0",
    "deactivated": "0",
    "work_start_date": "2018-04-13 18:22:02",
    "screen_logger": "0",
    "sc_freq": "-2",
    "newsletter_receiver": "0",
    "gender": "M",
    "pref_sp_skin": "1",
    "teamtools_id": "0",
    "updated_at": "2018-04-13 18:47:48",
    "employee_type": "0",
    "pay_type": "0",
    "group": "5",
    "timezone_name": "Europe/Belgrade",
    "group_name": "Employee",
    "status_name": "Activated",
    "schedules": {
      "1819357": "New funky job"
    },
    "skills": {
      "82458": "Oracle certified"
    },
    "custom": {
      "26768": {
        "id": "26768",
        "name": "PTO balance [hours]",
        "type": "1",
        "access": "1"
      },
      "27043": {
        "id": "27043",
        "name": "CF2",
        "type": "1",
        "access": "1",
        "value": "New value for the custom field with ID 27043",
        "toggle": "0"
      },
      "27044": {
        "id": "27044",
        "name": "Checkbox CF",
        "type": "4",
        "access": "1"
      }
    },
    "settings": {
      "widgets_layout": [
        [
          "timeclock"
        ]
      ],
      "schedule_side_panel_visibility": 1,
      "linked_shift_time": 1,
      "schedule_view_selected": "week",
      "schedule_timeline_selected": "employee"
    }
  },
  "token": "xxxxxxxxxxxxxxxxxxxxxxxxxxx"
}