Update a submission
curl --request PATCH \
--url https://api.awardee.com/v1/submissions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"flagged": true,
"assignee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved_at": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
flagged: true,
assignee_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
resolved_by: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
resolved_at: '2023-11-07T05:31:56Z',
notes: '<string>'
})
};
fetch('https://api.awardee.com/v1/submissions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.awardee.com/v1/submissions/{id}"
payload = {
"flagged": True,
"assignee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved_at": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"object": "submission",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"page_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"submission_number": 0,
"status": "new",
"priority": "none",
"flagged": true,
"assignee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved_at": "<string>",
"notes": "<string>",
"data": "<unknown>",
"metadata": "<unknown>",
"destination": null,
"viewed_at": "<string>",
"duration_seconds": 123,
"qr_code_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": "<unknown>",
"retry_after": 123
}{
"error": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": "<unknown>",
"retry_after": 123
}{
"error": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": "<unknown>",
"retry_after": 123
}{
"error": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": "<unknown>",
"retry_after": 123
}{
"error": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": "<unknown>",
"retry_after": 123
}{
"error": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": "<unknown>",
"retry_after": 123
}Endpoints
Update a submission
Updates lifecycle fields (status, priority, flagged, assignee, notes). Every field change emits a page_submission_events row that surfaces on the dashboard activity timeline and fires submission.updated.
PATCH
/
submissions
/
{id}
Update a submission
curl --request PATCH \
--url https://api.awardee.com/v1/submissions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"flagged": true,
"assignee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved_at": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
flagged: true,
assignee_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
resolved_by: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
resolved_at: '2023-11-07T05:31:56Z',
notes: '<string>'
})
};
fetch('https://api.awardee.com/v1/submissions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.awardee.com/v1/submissions/{id}"
payload = {
"flagged": True,
"assignee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved_at": "2023-11-07T05:31:56Z",
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"object": "submission",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"page_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"submission_number": 0,
"status": "new",
"priority": "none",
"flagged": true,
"assignee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved_at": "<string>",
"notes": "<string>",
"data": "<unknown>",
"metadata": "<unknown>",
"destination": null,
"viewed_at": "<string>",
"duration_seconds": 123,
"qr_code_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": "<unknown>",
"retry_after": 123
}{
"error": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": "<unknown>",
"retry_after": 123
}{
"error": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": "<unknown>",
"retry_after": 123
}{
"error": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": "<unknown>",
"retry_after": 123
}{
"error": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": "<unknown>",
"retry_after": 123
}{
"error": "<string>",
"message": "<string>",
"request_id": "<string>",
"details": "<unknown>",
"retry_after": 123
}Authorizations
Send your API key as Authorization: Bearer aw_live_…. Manage keys in the dashboard under Settings → API Keys.
Path Parameters
Body
application/json
Available options:
new, read, in_progress, resolved, spam Available options:
none, low, medium, high Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Response
Updated submission
Allowed value:
"submission"Required range:
-9007199254740991 <= x <= 9007199254740991Available options:
new, read, in_progress, resolved, spam Available options:
none, low, medium, high Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
