Review Applications
Accept an application and copy it into the logistics database
Changed onBuilds a Veteran or Guardian record from the application (using the standard models and validation) and writes it to the logistics database with the same document ID. If the application was accepted before, the logistics record is updated only when its revision still matches the revision recorded at the previous acceptance (accepted_as_rev); otherwise 409 is returned and nothing is changed. On success the application is marked Accepted and accepted_as_rev is updated.
post/review/applications/{id}/accept
Request
- Base URL: https://sshf-api-330507742215.us-central1.run.app
- URL: https://sshf-api-330507742215.us-central1.run.app/review/applications/{id}/accept
- Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/v2/auth)
Path parameters
idstring required
Review application document ID
Request body
Response
Application accepted and logistics record saved
Example response
{
"application": {
"_id": "a1b2c3",
"_rev": "3-xyz",
"type": "VeteranApp",
"app_status": "New",
"app_status_note": "",
"date_time": "2024-03-05 14:22:01",
"app_date": "2024-03-05",
"ip_address": "203.0.113.9",
"accepted_as_rev": "",
"name": {
"first": "John",
"middle": "Q",
"last": "Public",
"nickname": "Jack"
},
"address": {
"street": "123 Main St",
"city": "Madison",
"county": "Dane",
"state": "WI",
"zip": "53703",
"phone_day": "608-555-1234",
"phone_mbl": "608-555-5678",
"email": "john@example.com"
},
"birth_date": "1948-05-17",
"gender": "M",
"shirt": {
"size": "XL"
},
"emerg_contact": {
"name": "Jane Public",
"address": {
"phone": "608-555-9999",
"email": "jane@example.com"
}
},
"metadata": {
"created_at": "2024-03-05T14:22:01Z",
"created_by": "Online App",
"updated_at": "2024-03-05T14:22:01Z",
"updated_by": "Online App"
},
"vet_type": "Vietnam",
"service": {
"branch": "Army",
"dates": "1966-1968",
"rank": "SGT"
},
"guardian": {
"pref_notes": "Son Bob",
"pref_phone": "608-555-0000",
"pref_email": "bob@example.com"
},
"medical": {
"usesWheelchair": true,
"requiresOxygen": false
}
}
}Changes
- info
endpoint added
- info