How do I set the "County" for a case?

Because County objects are used in various sections of the application, we have County records as a data model. This means when submitting the street_county field on a case, you’ll have to use the ID or resource URL for the County instead of a name.

The first step will be to submit a GET request to the /api/v1/counties/ endpoint and get the ID of the county you wish to use.

If you haven’t created your Case yet, you can add this ID to the street_county field of the data payload for your POST submission to /api/v1/cases.

If you have already created your Case, you can update the case record with a PATCH request. You will need the Case ID, and you will have to use the direct URI for the Case.

For example, if your Case ID was 1001 and the County ID you wished to add was 3, then you’d submit your PATCH request to /api/v1/cases/1001/ and your payload would be:

{
    "street_county": 3
}