-
Notifications
You must be signed in to change notification settings - Fork 1
API Walkthroughs 2.2 Police to unspecified STC prison recall move
-
[FRONTEND] The initial move record is created in a
requested
state with a specific move date by a PECS Police user via the frontend. A new profile is assigned to the move and a document is attached to the profile.It is not expected that suppliers would create the initial record. For the purposes of testing however, frontend requests can be simulated with the following calls:
# find person by police national computer number (PNC) curl --request GET \ --url 'http://server/api/people?filter%5Bpolice_national_computer%5D=14%2F120018R&include=profiles' \ --header 'accept: application/vnd.api+json; version=2' \ --header 'authorization: Bearer XXX' # create a new profile synchronised with Nomis alerts curl --request POST \ --url http://server/api/people/747f3914-620a-441a-847f-472c79def26c/profiles \ --header 'accept: application/vnd.api+json; version=2' \ --header 'authorization: Bearer XXX' \ --header 'content-type: application/json' \ --header 'idempotency-key: 58683c5d-4307-4386-acfc-37327038d8a0' \ --data '{ "data": { "type": "profiles" } }' # upload a document curl --request POST \ --url http://server/api/documents \ --header 'accept: application/vnd.api+json; version=2' \ --header 'authorization: Bearer XXX' \ --header 'content-type: multipart/form-data; boundary=---011000010111000001101001' \ --header 'idempotency-key: 74b08426-4855-4866-a237-6b8e11aa6982' \ --form 'data[attributes][file]=@path/to/the/file/hello_world.txt' # attach the uploaded document to the profile curl --request PATCH \ --url http://server/api/people/747f3914-620a-441a-847f-472c79def26c/profiles/815249be-888a-479d-a2ba-3af147a4d204 \ --header 'accept: application/vnd.api+json; version=2' \ --header 'authorization: Bearer XXX' \ --header 'content-type: application/json' \ --header 'idempotency-key: 38f2a81a-5f07-4fc8-9fc6-20456979feec' \ --data '{ "data": { "id": "815249be-888a-479d-a2ba-3af147a4d204", "type": "profiles", "relationships": { "documents": { "data": [ { "type": "documents", "id": "3bb7a294-5f40-49b3-8a66-f0e2e1425176" } ] } } } }' # create move request (Guildford Custody Suite to [unknown STC]) with a specific move date, using the new profile curl --request POST \ --url http://server/api/moves \ --header 'accept: application/vnd.api+json; version=2' \ --header 'authorization: Bearer XXX' \ --header 'content-type: application/json' \ --header 'idempotency-key: 0c6f6ef2-63a2-4e97-8e0c-ed4152201768' \ --data '{ "data": { "type": "moves", "attributes": { "date": "2020-07-30", "time_due": "2020-07-30T09:00:00+01:00", "status": "requested", "additional_information": "example Police to unspecified STC prison_recall transfer: Guildford Custody Suite to an unspecified STC", "move_type": "prison_recall" }, "relationships": { "profile": { "data": { "type": "profiles", "id": "815249be-888a-479d-a2ba-3af147a4d204" } }, "from_location": { "data": { "type": "locations", "id": "8fadb516-f10a-45b1-91b7-a256196829f9" } }, "to_location": { "data": null } } } }'
-
Suppliers can retrieve a list of requested moves for specific dates by calling the get moves endpoint with appropriate filters
curl --request GET \ --url 'http://server/api/moves?filter%5Bdate_from%5D=2020-07-30&filter%5Bdate_to%5D=2020-07-30&filter%5Bstatus%5D=requested&include=profile.person%2Cprofile.documents%2Cfrom_location%2Cto_location' \ --header 'accept: application/vnd.api+json; version=2' \ --header 'authorization: Bearer XXX'
This will return the following JSON:
{ "data": [ { "id": "193dd0d5-1298-4401-9d99-5b31594d5f6e", "type": "moves", "attributes": { "additional_information": "example Police to unspecified STC prison_recall transfer: Guildford Custody Suite to an unspecified STC", "cancellation_reason": null, "cancellation_reason_comment": null, "created_at": "2020-07-27T15:34:39+01:00", "date": "2020-07-30", "date_from": null, "date_to": null, "move_agreed": null, "move_agreed_by": null, "move_type": "prison_recall", "reference": "FYM5268H", "rejection_reason": null, "status": "requested", "time_due": "2020-07-30T09:00:00+01:00", "updated_at": "2020-07-27T15:34:39+01:00" }, "relationships": { "profile": { "data": { "id": "815249be-888a-479d-a2ba-3af147a4d204", "type": "profiles" } }, "from_location": { "data": { "id": "8fadb516-f10a-45b1-91b7-a256196829f9", "type": "locations" } }, "to_location": { "data": null }, "prison_transfer_reason": { "data": null }, "court_hearings": { "data": [] }, "allocation": { "data": null }, "original_move": { "data": null } } } ], "included": [ { "id": "815249be-888a-479d-a2ba-3af147a4d204", "type": "profiles", "attributes": { "assessment_answers": [ { "title": "Any other risks", "comments": "lAzCdJPxAuYiYJlAzCdJPxAuYiYJ", "created_at": "2014-10-17", "expires_at": "2015-11-04", "assessment_question_id": "4e37ac1a-a461-45a8-bca9-f0e994d3105e", "category": "risk", "key": "other_risks", "nomis_alert_type": "P", "nomis_alert_code": "P0", "nomis_alert_type_description": "MAPPP Case", "nomis_alert_description": "MAPPA Nominal", "imported_from_nomis": true }, { "title": "Violent", "comments": null, "created_at": "2015-02-22", "expires_at": null, "assessment_question_id": "af8cfc67-757c-4019-9d5e-618017de1617", "category": "risk", "key": "violent", "nomis_alert_type": "R", "nomis_alert_code": "ROM", "nomis_alert_type_description": "Risk", "nomis_alert_description": "OASys Serious Harm-Medium", "imported_from_nomis": true }, { "title": "Violent", "comments": "HRErJMfhUuLHisGPkEhGRpvHSvjfHHRErJMfhUuLHisGPkEhGRpvHSvjfH", "created_at": "2017-02-03", "expires_at": null, "assessment_question_id": "af8cfc67-757c-4019-9d5e-618017de1617", "category": "risk", "key": "violent", "nomis_alert_type": "P", "nomis_alert_code": "PC2", "nomis_alert_type_description": "MAPPP Case", "nomis_alert_description": "MAPPA Cat 2", "imported_from_nomis": true }, { "title": "Health issue", "comments": null, "created_at": "2014-07-28", "expires_at": null, "assessment_question_id": "8872ad2e-b1b6-44c1-a937-b7540e633355", "category": "health", "key": "health_issue", "nomis_alert_type": "DISAB", "nomis_alert_code": "ND", "nomis_alert_type_description": "Unknown", "nomis_alert_description": "No Disability", "imported_from_nomis": true }, { "title": "Health issue", "comments": null, "created_at": "2014-07-31", "expires_at": null, "assessment_question_id": "8872ad2e-b1b6-44c1-a937-b7540e633355", "category": "health", "key": "health_issue", "nomis_alert_type": "DISAB", "nomis_alert_code": "ND", "nomis_alert_type_description": "Unknown", "nomis_alert_description": "No Disability", "imported_from_nomis": true }, { "title": "Health issue", "comments": null, "created_at": "2014-10-16", "expires_at": null, "assessment_question_id": "8872ad2e-b1b6-44c1-a937-b7540e633355", "category": "health", "key": "health_issue", "nomis_alert_type": "DISAB", "nomis_alert_code": "ND", "nomis_alert_type_description": "Unknown", "nomis_alert_description": "No Disability", "imported_from_nomis": true } ] }, "relationships": { "person": { "data": { "id": "747f3914-620a-441a-847f-472c79def26c", "type": "people" } }, "documents": { "data": [ { "id": "3bb7a294-5f40-49b3-8a66-f0e2e1425176", "type": "documents" } ] }, "person_escort_record": { "data": null } } }, { "id": "747f3914-620a-441a-847f-472c79def26c", "type": "people", "attributes": { "first_names": "DOMSANIGH", "last_name": "CASEDY", "date_of_birth": "1995-11-17", "gender_additional_information": null, "prison_number": "G8133UA", "criminal_records_office": "351774/14D", "police_national_computer": "14/120018R" }, "relationships": { "ethnicity": { "data": { "id": "a4f988ba-5ebc-4b24-9dfe-b7fa0c23c30e", "type": "ethnicities" } }, "gender": { "data": { "id": "ffac6763-26d6-4425-8005-6e5d052aed88", "type": "genders" } }, "profiles": { "data": [ { "id": "28087623-d310-4a1c-bf17-b992b74e30c2", "type": "profiles" }, { "id": "f7769f3e-51e3-4b03-91b7-1eb4a79e98f6", "type": "profiles" }, { "id": "d9a7e87e-b031-4da2-ae13-852aab708aac", "type": "profiles" }, { "id": "da8e9326-a417-434a-b67e-66a4e15078d4", "type": "profiles" }, { "id": "a631cf66-0ee8-4252-9ef0-408c27ba5c15", "type": "profiles" }, { "id": "536068a5-a22e-4c5f-b078-f69c931cd9f1", "type": "profiles" }, { "id": "98be8b71-eaf8-4563-bcd0-05af9a80f262", "type": "profiles" }, { "id": "cee8cd95-656b-4967-a69e-0fa909b70727", "type": "profiles" }, { "id": "28aa50ea-43be-4167-bd6f-6eb8aca74aa1", "type": "profiles" }, { "id": "d93c8000-f640-495a-958f-c3339b1ee5ac", "type": "profiles" }, { "id": "961fd84e-bc6b-45a5-88b6-fb8faa6ff0e7", "type": "profiles" }, { "id": "4617f73c-c762-4794-a562-e7a16d2e4d4d", "type": "profiles" }, { "id": "0e90d805-264f-4450-ab17-195c2c9cb2ee", "type": "profiles" }, { "id": "c1f98396-8882-4dfb-81c0-e8e2948f9e45", "type": "profiles" }, { "id": "9e5bfecd-1073-4fdf-8f8f-58ba4b843173", "type": "profiles" }, { "id": "513d4b98-eeb4-437f-ba1f-00f9b1c5bc8d", "type": "profiles" }, { "id": "e6b33a84-e2e2-4b53-8e60-1a282f5ed076", "type": "profiles" }, { "id": "890b14ee-e364-4e68-bb29-9c94ef12451e", "type": "profiles" }, { "id": "815249be-888a-479d-a2ba-3af147a4d204", "type": "profiles" } ] } } }, { "id": "3bb7a294-5f40-49b3-8a66-f0e2e1425176", "type": "documents", "attributes": { "url": "http://localhost:5001/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9JYTJWNVNTSWhOSGh2ZDJoeU9ESmplWFJ2Ykhsb2JXZHJOMkYwWkhoc1pETm1jQVk2QmtWVU9oQmthWE53YjNOcGRHbHZia2tpVFdGMGRHRmphRzFsYm5RN0lHWnBiR1Z1WVcxbFBTSm9aV3hzYjE5M2IzSnNaQzUwZUhRaU95Qm1hV3hsYm1GdFpTbzlWVlJHTFRnbkoyaGxiR3h2WDNkdmNteGtMblI0ZEFZN0JsUTZFV052Ym5SbGJuUmZkSGx3WlVraUQzUmxlSFF2Y0d4aGFXNEdPd1pVIiwiZXhwIjoiMjAyMC0wNy0yN1QxNDozOTo0NloiLCJwdXIiOiJibG9iX2tleSJ9fQ==--22a5d60da917fe46f1ad9da89fd285b3139ce6e8/hello_world.txt?content_type=text%2Fplain&disposition=attachment%3B+filename%3D%22hello_world.txt%22%3B+filename%2A%3DUTF-8%27%27hello_world.txt", "filename": "hello_world.txt", "filesize": 13, "content_type": "text/plain" } }, { "id": "8fadb516-f10a-45b1-91b7-a256196829f9", "type": "locations", "attributes": { "key": "sry016", "title": "Guildford Custody Suite", "location_type": "police", "nomis_agency_id": "SRY016", "can_upload_documents": false, "disabled_at": null }, "relationships": { "suppliers": { "data": [ { "id": "bccf4d77-984d-560c-9ffd-9badbb9157ca", "type": "suppliers" } ] } } } ], "links": { "self": "http://localhost:5001/api/moves?filter%5Bdate_from%5D=2020-07-30&filter%5Bdate_to%5D=2020-07-30&filter%5Bstatus%5D=requested&include=profile.person%2Cprofile.documents%2Cfrom_location%2Cto_location&page%5Bnumber%5D=1&page%5Bsize%5D=20", "first": "http://localhost:5001/api/moves?filter%5Bdate_from%5D=2020-07-30&filter%5Bdate_to%5D=2020-07-30&filter%5Bstatus%5D=requested&include=profile.person%2Cprofile.documents%2Cfrom_location%2Cto_location&page%5Bnumber%5D=1&page%5Bsize%5D=20", "prev": null, "next": null, "last": "http://localhost:5001/api/moves?filter%5Bdate_from%5D=2020-07-30&filter%5Bdate_to%5D=2020-07-30&filter%5Bstatus%5D=requested&include=profile.person%2Cprofile.documents%2Cfrom_location%2Cto_location&page%5Bnumber%5D=1&page%5Bsize%5D=20" }, "meta": { "pagination": { "per_page": 20, "total_pages": 1, "total_objects": 1, "links": { "first": "/api/moves?filter%5Bdate_from%5D=2020-07-30&filter%5Bdate_to%5D=2020-07-30&filter%5Bstatus%5D=requested&include=profile.person%2Cprofile.documents%2Cfrom_location%2Cto_location&page=1", "last": "/api/moves?filter%5Bdate_from%5D=2020-07-30&filter%5Bdate_to%5D=2020-07-30&filter%5Bstatus%5D=requested&include=profile.person%2Cprofile.documents%2Cfrom_location%2Cto_location&page=1" } } } }
-
The document(s) should be downloaded immediately
# download the document - note that although no authoristation is required, the URL is short lived and will time out after 5 minutes curl --request GET --verbose \ --url 'http://server/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9JYTJWNVNTSWhOSGh2ZDJoeU9ESmplWFJ2Ykhsb2JXZHJOMkYwWkhoc1pETm1jQVk2QmtWVU9oQmthWE53YjNOcGRHbHZia2tpVFdGMGRHRmphRzFsYm5RN0lHWnBiR1Z1WVcxbFBTSm9aV3hzYjE5M2IzSnNaQzUwZUhRaU95Qm1hV3hsYm1GdFpTbzlWVlJHTFRnbkoyaGxiR3h2WDNkdmNteGtMblI0ZEFZN0JsUTZFV052Ym5SbGJuUmZkSGx3WlVraUQzUmxlSFF2Y0d4aGFXNEdPd1pVIiwiZXhwIjoiMjAyMC0wNy0yN1QxNDozOTo0NloiLCJwdXIiOiJibG9iX2tleSJ9fQ==--22a5d60da917fe46f1ad9da89fd285b3139ce6e8/hello_world.txt?content_type=text%2Fplain&disposition=attachment%3B%2Bfilename%3D%22hello_world.txt%22%3B%2Bfilename*%3DUTF-8'\'''\''hello_world.txt'
-
The supplier should set the move's to_location to the intended destination (based on the circumstances of the move and move_type). Posting to the
redirects
endpoint will update the to_location.curl --request POST \ --url http://server/api/moves/193dd0d5-1298-4401-9d99-5b31594d5f6e/redirects \ --header 'accept: application/vnd.api+json; version=2' \ --header 'authorization: Bearer XXX' \ --header 'content-type: application/json' \ --header 'idempotency-key: 331c760d-b9f5-468f-a0b2-8f6ce8e81156' \ --data '{ "data": { "type": "redirects", "attributes": { "timestamp": "2020-07-27T14:38:11.455Z", "notes": "updating destination to Oakhill STC" }, "relationships": { "to_location": { "data": { "type": "locations", "id": "dbf13bff-0e22-45af-b813-547673c2f456" } } } } }'
This will return a 204 No Content response.
-
Now that a destination is set, the new move can then be accepted changing its status from "requested" to "booked" by calling the
accept
endpoint:curl --request POST \ --url http://server/api/moves/193dd0d5-1298-4401-9d99-5b31594d5f6e/accept \ --header 'accept: application/vnd.api+json; version=2' \ --header 'authorization: Bearer XXX' \ --header 'content-type: application/json' \ --header 'idempotency-key: 669affe4-aebf-4605-8b07-cf7ca09e826c' \ --data '{ "data": { "type": "accepts", "attributes": { "timestamp": "2020-07-27T14:38:28.338Z" } } }'
This will return a 204 No Content response.
-
Journeys should be added to move: please see the separate Journey API walkthrough document.
-
The move can be started, changing its status from "booked" to "in_transit" by calling the
start
endpoint:curl --request POST \ --url http://server/api/moves/193dd0d5-1298-4401-9d99-5b31594d5f6e/start \ --header 'accept: application/vnd.api+json; version=2' \ --header 'authorization: Bearer XXX' \ --header 'content-type: application/json' \ --header 'idempotency-key: afaae9b7-0f79-4afb-80d2-669a983a55d3' \ --data '{ "data": { "type": "starts", "attributes": { "timestamp": "2020-07-27T14:38:42.946Z", "notes": "van on the way" } } }'
This will return a 204 No Content response.
-
Finally, the move can be completed, changing its status from "in_transit" to "completed" by posting to the
complete
endpoint:curl --request POST \ --url http://server/api/moves/193dd0d5-1298-4401-9d99-5b31594d5f6e/complete \ --header 'accept: application/vnd.api+json; version=2' \ --header 'authorization: Bearer XXX' \ --header 'content-type: application/json' \ --header 'idempotency-key: 412b39a0-e261-4d83-a5a8-a13437a38681' \ --data '{ "data": { "type": "completes", "attributes": { "timestamp": "2020-07-27T14:38:58.807Z", "notes": "all is well" } } }'
This will return a 204 No Content response.
-
The move record can be retrieved at any time to verify its attributes:
curl --request GET \ --url 'http://server/api/moves/193dd0d5-1298-4401-9d99-5b31594d5f6e?include=profile.person%2Cprofile.documents%2Cfrom_location%2Cto_location' \ --header 'accept: application/vnd.api+json; version=2' \ --header 'authorization: Bearer XXX'
Which returns:
{ "data": { "id": "193dd0d5-1298-4401-9d99-5b31594d5f6e", "type": "moves", "attributes": { "additional_information": "example Police to unspecified STC prison_recall transfer: Guildford Custody Suite to an unspecified STC", "cancellation_reason": null, "cancellation_reason_comment": null, "created_at": "2020-07-27T15:34:39+01:00", "date": "2020-07-30", "date_from": null, "date_to": null, "move_agreed": null, "move_agreed_by": null, "move_type": "prison_recall", "reference": "FYM5268H", "rejection_reason": null, "status": "completed", "time_due": "2020-07-30T09:00:00+01:00", "updated_at": "2020-07-27T15:35:58+01:00" }, "relationships": { "profile": { "data": { "id": "815249be-888a-479d-a2ba-3af147a4d204", "type": "profiles" } }, "from_location": { "data": { "id": "8fadb516-f10a-45b1-91b7-a256196829f9", "type": "locations" } }, "to_location": { "data": { "id": "dbf13bff-0e22-45af-b813-547673c2f456", "type": "locations" } }, "prison_transfer_reason": { "data": null }, "court_hearings": { "data": [] }, "allocation": { "data": null }, "original_move": { "data": null } } }, "included": [ { "id": "815249be-888a-479d-a2ba-3af147a4d204", "type": "profiles", "attributes": { "assessment_answers": [ { "title": "Any other risks", "comments": "lAzCdJPxAuYiYJlAzCdJPxAuYiYJ", "created_at": "2014-10-17", "expires_at": "2015-11-04", "assessment_question_id": "4e37ac1a-a461-45a8-bca9-f0e994d3105e", "category": "risk", "key": "other_risks", "nomis_alert_type": "P", "nomis_alert_code": "P0", "nomis_alert_type_description": "MAPPP Case", "nomis_alert_description": "MAPPA Nominal", "imported_from_nomis": true }, { "title": "Violent", "comments": null, "created_at": "2015-02-22", "expires_at": null, "assessment_question_id": "af8cfc67-757c-4019-9d5e-618017de1617", "category": "risk", "key": "violent", "nomis_alert_type": "R", "nomis_alert_code": "ROM", "nomis_alert_type_description": "Risk", "nomis_alert_description": "OASys Serious Harm-Medium", "imported_from_nomis": true }, { "title": "Violent", "comments": "HRErJMfhUuLHisGPkEhGRpvHSvjfHHRErJMfhUuLHisGPkEhGRpvHSvjfH", "created_at": "2017-02-03", "expires_at": null, "assessment_question_id": "af8cfc67-757c-4019-9d5e-618017de1617", "category": "risk", "key": "violent", "nomis_alert_type": "P", "nomis_alert_code": "PC2", "nomis_alert_type_description": "MAPPP Case", "nomis_alert_description": "MAPPA Cat 2", "imported_from_nomis": true }, { "title": "Health issue", "comments": null, "created_at": "2014-07-28", "expires_at": null, "assessment_question_id": "8872ad2e-b1b6-44c1-a937-b7540e633355", "category": "health", "key": "health_issue", "nomis_alert_type": "DISAB", "nomis_alert_code": "ND", "nomis_alert_type_description": "Unknown", "nomis_alert_description": "No Disability", "imported_from_nomis": true }, { "title": "Health issue", "comments": null, "created_at": "2014-07-31", "expires_at": null, "assessment_question_id": "8872ad2e-b1b6-44c1-a937-b7540e633355", "category": "health", "key": "health_issue", "nomis_alert_type": "DISAB", "nomis_alert_code": "ND", "nomis_alert_type_description": "Unknown", "nomis_alert_description": "No Disability", "imported_from_nomis": true }, { "title": "Health issue", "comments": null, "created_at": "2014-10-16", "expires_at": null, "assessment_question_id": "8872ad2e-b1b6-44c1-a937-b7540e633355", "category": "health", "key": "health_issue", "nomis_alert_type": "DISAB", "nomis_alert_code": "ND", "nomis_alert_type_description": "Unknown", "nomis_alert_description": "No Disability", "imported_from_nomis": true } ] }, "relationships": { "person": { "data": { "id": "747f3914-620a-441a-847f-472c79def26c", "type": "people" } }, "documents": { "data": [ { "id": "3bb7a294-5f40-49b3-8a66-f0e2e1425176", "type": "documents" } ] }, "person_escort_record": { "data": null } } }, { "id": "747f3914-620a-441a-847f-472c79def26c", "type": "people", "attributes": { "first_names": "DOMSANIGH", "last_name": "CASEDY", "date_of_birth": "1995-11-17", "gender_additional_information": null, "prison_number": "G8133UA", "criminal_records_office": "351774/14D", "police_national_computer": "14/120018R" }, "relationships": { "ethnicity": { "data": { "id": "a4f988ba-5ebc-4b24-9dfe-b7fa0c23c30e", "type": "ethnicities" } }, "gender": { "data": { "id": "ffac6763-26d6-4425-8005-6e5d052aed88", "type": "genders" } }, "profiles": { "data": [ { "id": "28087623-d310-4a1c-bf17-b992b74e30c2", "type": "profiles" }, { "id": "f7769f3e-51e3-4b03-91b7-1eb4a79e98f6", "type": "profiles" }, { "id": "d9a7e87e-b031-4da2-ae13-852aab708aac", "type": "profiles" }, { "id": "da8e9326-a417-434a-b67e-66a4e15078d4", "type": "profiles" }, { "id": "a631cf66-0ee8-4252-9ef0-408c27ba5c15", "type": "profiles" }, { "id": "536068a5-a22e-4c5f-b078-f69c931cd9f1", "type": "profiles" }, { "id": "98be8b71-eaf8-4563-bcd0-05af9a80f262", "type": "profiles" }, { "id": "cee8cd95-656b-4967-a69e-0fa909b70727", "type": "profiles" }, { "id": "28aa50ea-43be-4167-bd6f-6eb8aca74aa1", "type": "profiles" }, { "id": "d93c8000-f640-495a-958f-c3339b1ee5ac", "type": "profiles" }, { "id": "961fd84e-bc6b-45a5-88b6-fb8faa6ff0e7", "type": "profiles" }, { "id": "4617f73c-c762-4794-a562-e7a16d2e4d4d", "type": "profiles" }, { "id": "0e90d805-264f-4450-ab17-195c2c9cb2ee", "type": "profiles" }, { "id": "c1f98396-8882-4dfb-81c0-e8e2948f9e45", "type": "profiles" }, { "id": "9e5bfecd-1073-4fdf-8f8f-58ba4b843173", "type": "profiles" }, { "id": "513d4b98-eeb4-437f-ba1f-00f9b1c5bc8d", "type": "profiles" }, { "id": "e6b33a84-e2e2-4b53-8e60-1a282f5ed076", "type": "profiles" }, { "id": "890b14ee-e364-4e68-bb29-9c94ef12451e", "type": "profiles" }, { "id": "815249be-888a-479d-a2ba-3af147a4d204", "type": "profiles" } ] } } }, { "id": "3bb7a294-5f40-49b3-8a66-f0e2e1425176", "type": "documents", "attributes": { "url": "http://localhost:5001/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDRG9JYTJWNVNTSWhOSGh2ZDJoeU9ESmplWFJ2Ykhsb2JXZHJOMkYwWkhoc1pETm1jQVk2QmtWVU9oQmthWE53YjNOcGRHbHZia2tpVFdGMGRHRmphRzFsYm5RN0lHWnBiR1Z1WVcxbFBTSm9aV3hzYjE5M2IzSnNaQzUwZUhRaU95Qm1hV3hsYm1GdFpTbzlWVlJHTFRnbkoyaGxiR3h2WDNkdmNteGtMblI0ZEFZN0JsUTZFV052Ym5SbGJuUmZkSGx3WlVraUQzUmxlSFF2Y0d4aGFXNEdPd1pVIiwiZXhwIjoiMjAyMC0wNy0yN1QxNDo0MTowMloiLCJwdXIiOiJibG9iX2tleSJ9fQ==--6f74eff1568f08d4d63c94f0026f9800d306a995/hello_world.txt?content_type=text%2Fplain&disposition=attachment%3B+filename%3D%22hello_world.txt%22%3B+filename%2A%3DUTF-8%27%27hello_world.txt", "filename": "hello_world.txt", "filesize": 13, "content_type": "text/plain" } }, { "id": "8fadb516-f10a-45b1-91b7-a256196829f9", "type": "locations", "attributes": { "key": "sry016", "title": "Guildford Custody Suite", "location_type": "police", "nomis_agency_id": "SRY016", "can_upload_documents": false, "disabled_at": null }, "relationships": { "suppliers": { "data": [ { "id": "bccf4d77-984d-560c-9ffd-9badbb9157ca", "type": "suppliers" } ] } } }, { "id": "dbf13bff-0e22-45af-b813-547673c2f456", "type": "locations", "attributes": { "key": "stc3", "title": "Oakhill Secure Training Centre", "location_type": "secure_training_centre", "nomis_agency_id": "STC3", "can_upload_documents": true, "disabled_at": null }, "relationships": { "suppliers": { "data": [ { "id": "3ef88a47-6f1f-5b9b-b2fc-c0fe42cb0c92", "type": "suppliers" } ] } } } ] }
- API Guide
- Version 2
- Asked Questions
- Webhook & Email notifications
- Walkthroughs
- Deployment
- Useful Queries
- Data quality improvements
-
Journeys and Payment Related Calls
- Single journey move
- Redirection before move commences
- Redirection after move commences
- Lockouts and Lodgings
- Assessments
- Event Documentation
- GPS Track a move