PUT api/admin/users/{userId}/county-assignments

This method will update county assignments for user

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

User id

integer

Required

Body Parameters

Model that contains new county ids

Collection of integer

Request Formats

application/json, text/json

Sample:
[
  1,
  2
]

text/html

Sample:
[1,2]

application/xml, text/xml

Sample:
<ArrayOflong xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <long>1</long>
  <long>2</long>
</ArrayOflong>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Int64[]'.

Response Information

Resource Description

Collection of

Collection of UserCountyAssignmentPo
NameDescriptionTypeAdditional information
CountyName

string

None.

UserId

integer

Required

CountyId

integer

Required

AssignmentDate

date

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "countyName": "sample string 1",
    "userId": 2,
    "countyId": 3,
    "assignmentDate": "2025-05-20T14:38:57.3255346-05:00",
    "id": 5
  },
  {
    "countyName": "sample string 1",
    "userId": 2,
    "countyId": 3,
    "assignmentDate": "2025-05-20T14:38:57.3255346-05:00",
    "id": 5
  }
]

text/html

Sample:
[{"countyName":"sample string 1","userId":2,"countyId":3,"assignmentDate":"2025-05-20T14:38:57.3255346-05:00","id":5},{"countyName":"sample string 1","userId":2,"countyId":3,"assignmentDate":"2025-05-20T14:38:57.3255346-05:00","id":5}]

application/xml, text/xml

Sample:
<ArrayOfUserCountyAssignmentPo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Pos">
  <UserCountyAssignmentPo>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">5</Id>
    <AssignmentDate xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">2025-05-20T14:38:57.3255346-05:00</AssignmentDate>
    <CountyId xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">3</CountyId>
    <UserId xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">2</UserId>
    <CountyName>sample string 1</CountyName>
  </UserCountyAssignmentPo>
  <UserCountyAssignmentPo>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">5</Id>
    <AssignmentDate xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">2025-05-20T14:38:57.3255346-05:00</AssignmentDate>
    <CountyId xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">3</CountyId>
    <UserId xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">2</UserId>
    <CountyName>sample string 1</CountyName>
  </UserCountyAssignmentPo>
</ArrayOfUserCountyAssignmentPo>