Create a project
curl --request POST \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/projects \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"customer_id": 1,
"name": "some string",
"description": "some string",
"status": 1,
"status_id": 1,
"status_workflow_id": 1,
"location_id": 1,
"location": "some string",
"start_time": 1234567890,
"end_time": 1234567890,
"notes": "some string",
"job_notes": "some string",
"completion_percentage": "1"
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/projects"
payload = {
"customer_id": 1,
"name": "some string",
"description": "some string",
"status": 1,
"status_id": 1,
"status_workflow_id": 1,
"location_id": 1,
"location": "some string",
"start_time": 1234567890,
"end_time": 1234567890,
"notes": "some string",
"job_notes": "some string",
"completion_percentage": "1"
}
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({
customer_id: 1,
name: 'some string',
description: 'some string',
status: 1,
status_id: 1,
status_workflow_id: 1,
location_id: 1,
location: 'some string',
start_time: 1234567890,
end_time: 1234567890,
notes: 'some string',
job_notes: 'some string',
completion_percentage: '1'
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/projects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Projects
Create a project
Create a project
POST
/
projects
Create a project
curl --request POST \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/projects \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"customer_id": 1,
"name": "some string",
"description": "some string",
"status": 1,
"status_id": 1,
"status_workflow_id": 1,
"location_id": 1,
"location": "some string",
"start_time": 1234567890,
"end_time": 1234567890,
"notes": "some string",
"job_notes": "some string",
"completion_percentage": "1"
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/projects"
payload = {
"customer_id": 1,
"name": "some string",
"description": "some string",
"status": 1,
"status_id": 1,
"status_workflow_id": 1,
"location_id": 1,
"location": "some string",
"start_time": 1234567890,
"end_time": 1234567890,
"notes": "some string",
"job_notes": "some string",
"completion_percentage": "1"
}
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({
customer_id: 1,
name: 'some string',
description: 'some string',
status: 1,
status_id: 1,
status_workflow_id: 1,
location_id: 1,
location: 'some string',
start_time: 1234567890,
end_time: 1234567890,
notes: 'some string',
job_notes: 'some string',
completion_percentage: '1'
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/projects', 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