{"_id":"59521866291f9a001b6e9a98","project":"56f962d8d522d81700600280","version":{"_id":"56f962d8d522d81700600283","hasDoc":true,"__v":5,"hasReference":true,"project":"56f962d8d522d81700600280","createdAt":"2016-03-28T16:59:04.166Z","releaseDate":"2016-03-28T16:59:04.166Z","categories":["56f962d8d522d81700600284","5951d5489435c30015923d54","5951d6de50727a00155053c6","5951d99224e2f70015dec6c6","5951e40ef5c137001533814b"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"5951d6de50727a00155053c6","project":"56f962d8d522d81700600280","version":"56f962d8d522d81700600283","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-06-27T03:54:06.338Z","from_sync":false,"order":4,"slug":"reference","title":"Run API"},"user":"57736a020a6d610e00dea1fd","githubsync":"","__v":3,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-06-27T08:33:42.919Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","examples":{"codes":[]},"method":"post","auth":"required","params":[{"_id":"59521938fad3f1001550628c","ref":"","in":"header","required":true,"desc":"Authentication Key","default":"","type":"string","name":"Authorization"},{"_id":"59521938fad3f1001550628b","ref":"","in":"body","required":true,"desc":"The driver's complete name.","default":"","type":"string","name":"name"},{"_id":"59521938fad3f1001550628a","ref":"","in":"body","required":true,"desc":"A valid phone number as per the driver's organization’s country.","default":"","type":"string","name":"phone"},{"_id":"59521938fad3f10015506289","ref":"","in":"body","required":true,"desc":"One or more team IDs of which the driver is a member.","default":"","type":"array_int","name":"teams"},{"_id":"5a9f5d62e309c60012823ccb","ref":"","in":"body","required":false,"desc":"Start shift time.","default":"","type":"string","name":"startShiftTime"},{"_id":"5a9f5d62e309c60012823cca","ref":"","in":"body","required":false,"desc":"End shift time.","default":"","type":"string","name":"endShiftTime"},{"_id":"5a9f5d62e309c60012823cc9","ref":"","in":"body","required":false,"desc":"Lunch break duration.","default":"","type":"int","name":"lunchBreakDuration"},{"_id":"5a9f5d62e309c60012823cc8","ref":"","in":"body","required":false,"desc":"Lunch break start","default":"","type":"string","name":"lunchBreakStart"},{"_id":"5a9f5d62e309c60012823cc7","ref":"","in":"body","required":false,"desc":"Lunch break end","default":"","type":"string","name":"lunchBreakEnd"}],"url":"/api/v1/drivers"},"isReference":false,"order":13,"body":"","excerpt":"","slug":"create-driver","type":"endpoint","title":"Create Driver"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

name:
required
string
The driver's complete name.
phone:
required
string
A valid phone number as per the driver's organization’s country.
teams:
required
array of integers
One or more team IDs of which the driver is a member.
startShiftTime:
string
Start shift time.
endShiftTime:
string
End shift time.
lunchBreakDuration:
integer
Lunch break duration.
lunchBreakStart:
string
Lunch break start
lunchBreakEnd:
string
Lunch break end

Headers

Authorization:
required
string
Authentication Key

User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}