# Staff.json returns gives 500 error

**URL:** <https://community.servicem8.com/t/staff-json-returns-gives-500-error/841>\
**Category:** API & SDK\
**Created:** [August 7, 2019, 9:06am UTC](https://community.servicem8.com/t/staff-json-returns-gives-500-error/841 "2019-08-07T09:06:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![developer](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@developer](https://community.servicem8.com/u/developer)\
**Post date:** [August 7, 2019, 9:06am UTC](https://community.servicem8.com/t/staff-json-returns-gives-500-error/841/1 "2019-08-07T09:06:38Z")

</div>

**Originally posted by Joe Beaver**

Hi,

When we try to post to the ‘staff.json’ API endpoint we often get returned a 500 Internal Server error from ServiceM8. We are posting the following fields: active, first, last, email, mobile, job\_title and security\_role\_uuid.

We are authorising using basic auth. Often we will get returned the 500 Error for the first 1 or 2 tries, then it will subsequently work as needed.

In recent cases I have tried 8 or 10 times before giving up. The exact error being returned is as follows:

Server error: `POST https://api.servicem8.com/api_1.0/staff.json` resulted in a `500 Internal Server Error` response:  
{“errorCode”:500,“message”:“Internal Server Error”}

UTC timestamps for examples of this are: 2019-08-07 08:00:44, 2019-08-07 08:09:13, 2019-08-07 08:09:28, 2019-08-07 08:52:38.

Hope this can be rectified

Cheers
