Create a timesheet
curl --request POST \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/timesheets \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"user_id": "",
"clock_in_title": "",
"clock_out_title": "",
"clock_in_method": "",
"clock_out_method": "",
"clock_in_time": "",
"clock_out_time": "",
"clock_in_notes": "",
"clock_out_notes": "",
"clock_in_location": "",
"clock_out_location": "",
"job_id": "",
"subtask_id": "",
"type": "",
"is_historical": ""
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/timesheets"
payload = {
"user_id": "",
"clock_in_title": "",
"clock_out_title": "",
"clock_in_method": "",
"clock_out_method": "",
"clock_in_time": "",
"clock_out_time": "",
"clock_in_notes": "",
"clock_out_notes": "",
"clock_in_location": "",
"clock_out_location": "",
"job_id": "",
"subtask_id": "",
"type": "",
"is_historical": ""
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
user_id: '',
clock_in_title: '',
clock_out_title: '',
clock_in_method: '',
clock_out_method: '',
clock_in_time: '',
clock_out_time: '',
clock_in_notes: '',
clock_out_notes: '',
clock_in_location: '',
clock_out_location: '',
job_id: '',
subtask_id: '',
type: '',
is_historical: ''
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/timesheets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Timesheets
Create a timesheet
Create a timesheet
POST
/
timesheets
Create a timesheet
curl --request POST \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/timesheets \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"user_id": "",
"clock_in_title": "",
"clock_out_title": "",
"clock_in_method": "",
"clock_out_method": "",
"clock_in_time": "",
"clock_out_time": "",
"clock_in_notes": "",
"clock_out_notes": "",
"clock_in_location": "",
"clock_out_location": "",
"job_id": "",
"subtask_id": "",
"type": "",
"is_historical": ""
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/timesheets"
payload = {
"user_id": "",
"clock_in_title": "",
"clock_out_title": "",
"clock_in_method": "",
"clock_out_method": "",
"clock_in_time": "",
"clock_out_time": "",
"clock_in_notes": "",
"clock_out_notes": "",
"clock_in_location": "",
"clock_out_location": "",
"job_id": "",
"subtask_id": "",
"type": "",
"is_historical": ""
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
user_id: '',
clock_in_title: '',
clock_out_title: '',
clock_in_method: '',
clock_out_method: '',
clock_in_time: '',
clock_out_time: '',
clock_in_notes: '',
clock_out_notes: '',
clock_in_location: '',
clock_out_location: '',
job_id: '',
subtask_id: '',
type: '',
is_historical: ''
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/timesheets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Body
application/json
The body is of type object.
Response
200 - application/json
Successful response
Was this page helpful?
⌘I