Area Status Management
Endpoints Used
- GET /areas/{area_id}
- Get the Area information.
- GET /{area_id}/civil_status
- Get the Civil Statuses for the Area.
- GET /areas/{area_id}/history?q=&page=1&count=10
- Add any Area history or notes.
- GET /areas/{area_id}/gate-status
- Get the gate statuses for an Area.
- GET /area-tasks?Area={area_id}&gate={gate_id}&q=&page=1&count=10
- Get any area tasks for a gate.
- GET /files?namespace=areas/{area_id}&page=1&count=10
- Any documentation attached to the Area.
- GET /area-type-transitions?task={task_id}&type={area_type_id}&q=&page=1&count=10
- The area tasks template for an Area Type and task Id.
- PUT /Area-tasks/{id} {"area_task":{"area_id":"{area_id}","assignee_id":"search_the_customer_id_on_email","gate_transition_assignee_id": null,"task_id":{task_id},"forecast_date":"2024-03-01T07:45:13.000Z","status":"task_statuses_above","comments":"{comment}"}}
- Add all the information required on the Area Task
- POST /areas/{area_Id}/civil_status Payload: {"task_id":{task_id}}}
- Update the Area to transition to this task. It will update the Area Status attached to the tasks gate.
Prerequisites to move an Area through the Area status flow
- You know the Area you are going to work with see API Specification.
- Understand the concept of gates and tasks.
Get The Required Area Information
Goal
Get all the information pertaining to the Area's civil statuses.
Steps to Follow
- Get the Area you are looking for with the calls in the API Specification.
- GET /areas/{area_id}
- After you have the Area information get the civil status for the Area.
- GET /{area_id}/civil_status
- This will return a list of the current gate information as well as tasks associated to the gate.
- If required get the Area History.
- GET /areas/{area_id}/history?q=&page=1&count=10
- Get the overall gate statuses for the Area.
- GET /areas/{area_id}/gate-status
- Get all Area tasks for that gate id.
- GET /Area-tasks?Area={area_id}&gate={gate_id}&q=&page=1&count=10
- Get any documentation attached to the Area.
- GET /files?namespace=areas/{area_id}&page=1&count=10
Move an Area from one gate to another
Goal
Moving the Area through the civil status process.
Steps to Follow
- After following the steps above get the task information required.
- GET /Area-type-transitions?task={task_id}&type={area_type_id}&q=&page=1&count=10
- Get the customer information from the agent email in the API Specification.
- The following is a list of all the statuses for a task currently no API available "Not Started", "In Progress", "Skipped", "Complete", "On Hold".
- Update all the information required for the task.
- PUT /Area-tasks/{id} {"area_task":{"area_id":"{area_id}","assignee_id":"search_the_customer_id_on_email","gate_transition_assignee_id": null,"task_id":{task_id},"forecast_date":"2024-03-01T07:45:13.000Z","status":"task_statuses_above","comments":"{comment}"}}
- If required do a Post to the Area History if there is any comments.
- POST /areas/{area_id}/history Payload: {"area_history":{"area_id":"CF5B78C9-F09E-4F43-81BA-292B37F703A5","notes":"{notes}"}}
- Update the Area to the task id that is completed.
- POST /areas/{area_Id}/civil_status Payload: {"task_id":{task_id}}}