curl --request POST \
--url https://{organization}.rescueconsole.com/api/forms/submissions/{id}/decision \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"decision": "approved",
"note": "Home visit went well. Fenced yard, two older children."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
decision: 'approved',
note: 'Home visit went well. Fenced yard, two older children.'
})
};
fetch('https://{organization}.rescueconsole.com/api/forms/submissions/{id}/decision', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/forms/submissions/{id}/decision"
payload = {
"decision": "approved",
"note": "Home visit went well. Fenced yard, two older children."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"submission": {
"id": "<string>",
"form_id": "<string>",
"answers": {},
"status": "new",
"submitted_at": "2023-11-07T05:31:56Z",
"animal_ids": [
"<string>"
],
"submitter_name": "<string>",
"submitter_email": "<string>",
"notes": "<string>",
"reviewed_by_person_id": "<string>",
"reviewed_at": "2023-11-07T05:31:56Z",
"converted_to_type": "<string>",
"converted_to_id": "<string>",
"converted_how": "created",
"decision": "approved",
"decided_at": "2023-11-07T05:31:56Z",
"decided_by_person_id": "<string>",
"decision_note": "<string>",
"held_at": "2023-11-07T05:31:56Z",
"hold_reason": "<string>",
"application_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"form_title": "<string>",
"form_slug": "<string>",
"form_kind": "adoption_application",
"application_status": "<string>",
"application_stage": "<string>",
"application_stage_label": "<string>",
"assignees": [
{
"person_id": "<string>",
"name": "<string>"
}
],
"animals": [
{
"id": "<string>",
"name": "<string>",
"species": "dog"
}
],
"decided_by_name": "<string>"
},
"fields": [
{
"field_key": "<string>",
"label": "<string>"
}
],
"can_write": true,
"can_decide": true
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Approve or reject a submission
Records the answer on an adoption application, a foster application or a volunteer sign-up; other kinds are not decided. Not on spam: mark it not spam first. Send decision: null to undo a decision. When the answer changes: a submission still new is marked reviewed, a hold is taken off, and any workflow your organization set to run on that answer starts, for the person the submission belongs to (a submission with no person yet starts it when it is converted). Sending the same answer again changes only the note. If an adoption or foster application was made from the submission, it takes the same answer: approved, denied, or back to submitted on an undo. Needs write on the area of the form’s kind.
curl --request POST \
--url https://{organization}.rescueconsole.com/api/forms/submissions/{id}/decision \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"decision": "approved",
"note": "Home visit went well. Fenced yard, two older children."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
decision: 'approved',
note: 'Home visit went well. Fenced yard, two older children.'
})
};
fetch('https://{organization}.rescueconsole.com/api/forms/submissions/{id}/decision', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/forms/submissions/{id}/decision"
payload = {
"decision": "approved",
"note": "Home visit went well. Fenced yard, two older children."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"submission": {
"id": "<string>",
"form_id": "<string>",
"answers": {},
"status": "new",
"submitted_at": "2023-11-07T05:31:56Z",
"animal_ids": [
"<string>"
],
"submitter_name": "<string>",
"submitter_email": "<string>",
"notes": "<string>",
"reviewed_by_person_id": "<string>",
"reviewed_at": "2023-11-07T05:31:56Z",
"converted_to_type": "<string>",
"converted_to_id": "<string>",
"converted_how": "created",
"decision": "approved",
"decided_at": "2023-11-07T05:31:56Z",
"decided_by_person_id": "<string>",
"decision_note": "<string>",
"held_at": "2023-11-07T05:31:56Z",
"hold_reason": "<string>",
"application_id": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"form_title": "<string>",
"form_slug": "<string>",
"form_kind": "adoption_application",
"application_status": "<string>",
"application_stage": "<string>",
"application_stage_label": "<string>",
"assignees": [
{
"person_id": "<string>",
"name": "<string>"
}
],
"animals": [
{
"id": "<string>",
"name": "<string>",
"species": "dog"
}
],
"decided_by_name": "<string>"
},
"fields": [
{
"field_key": "<string>",
"label": "<string>"
}
],
"can_write": true,
"can_decide": true
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Authorizations
An API key from Settings, API keys. It starts with rc_live_.
Path Parameters
The submission's record ID.
Body
Response
The submission, as Get one submission gives it.
One submission. The list also carries the form's title, address and kind, the application made from it, and the assignees; changing one returns the submission alone.
Show child attributes
Show child attributes
The form's questions as they are today, in order, to label the answers. An answer to a question removed since has no label here.
Show child attributes
Show child attributes
Whether your key may change it.
Whether it is a kind that is approved or rejected.