Update subtask by ID
curl --request PUT \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/subtasks/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"title": "some string",
"status": 1,
"due_date": 1234567890,
"customer_id": 1,
"job_id": 1,
"project_id": 1,
"recurring_job_id": 1,
"description": "some string",
"is_template": false,
"is_required_for_job": false,
"assignments": [
{
"team_id": 1,
"user_id": 1
},
{
"team_id": 1,
"user_id": 2
}
]
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/subtasks/{id}"
payload = {
"title": "some string",
"status": 1,
"due_date": 1234567890,
"customer_id": 1,
"job_id": 1,
"project_id": 1,
"recurring_job_id": 1,
"description": "some string",
"is_template": False,
"is_required_for_job": False,
"assignments": [
{
"team_id": 1,
"user_id": 1
},
{
"team_id": 1,
"user_id": 2
}
]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'some string',
status: 1,
due_date: 1234567890,
customer_id: 1,
job_id: 1,
project_id: 1,
recurring_job_id: 1,
description: 'some string',
is_template: false,
is_required_for_job: false,
assignments: [{team_id: 1, user_id: 1}, {team_id: 1, user_id: 2}]
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/subtasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Subtasks
Update subtask by ID
Update a subtask
PUT
/
subtasks
/
{id}
Update subtask by ID
curl --request PUT \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/subtasks/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"title": "some string",
"status": 1,
"due_date": 1234567890,
"customer_id": 1,
"job_id": 1,
"project_id": 1,
"recurring_job_id": 1,
"description": "some string",
"is_template": false,
"is_required_for_job": false,
"assignments": [
{
"team_id": 1,
"user_id": 1
},
{
"team_id": 1,
"user_id": 2
}
]
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/subtasks/{id}"
payload = {
"title": "some string",
"status": 1,
"due_date": 1234567890,
"customer_id": 1,
"job_id": 1,
"project_id": 1,
"recurring_job_id": 1,
"description": "some string",
"is_template": False,
"is_required_for_job": False,
"assignments": [
{
"team_id": 1,
"user_id": 1
},
{
"team_id": 1,
"user_id": 2
}
]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'some string',
status: 1,
due_date: 1234567890,
customer_id: 1,
job_id: 1,
project_id: 1,
recurring_job_id: 1,
description: 'some string',
is_template: false,
is_required_for_job: false,
assignments: [{team_id: 1, user_id: 1}, {team_id: 1, user_id: 2}]
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/subtasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Was this page helpful?
⌘I