# Upsert Country

Upsert Country

Endpoint: PATCH /rest/2.0/COUNTRY
Version: 1.0
Security: JWT

## Header parameters:

  - `sessionId` (string, required)

## Request fields (application/json; charset=utf-8):

  - `brmObjects` (object)

  - `brmObjects.Alpha2_Code` (any)
    Alpha2 Code

  - `brmObjects.Code` (any)
    Code

  - `brmObjects.CountryName` (any)
    CountryName

  - `brmObjects.Created` (any)
    System controlled field: Date and time the record was created

  - `brmObjects.CreatedUserId` (any)
    System controlled field: Id of the user that created the record

  - `brmObjects.Id` (any, required)
    ID

  - `brmObjects.Updated` (any)
    System controlled field: Date and time the record was last updated

  - `brmObjects.UpdatedUserId` (any)
    System controlled field: Id of the last user that updated the record

  - `externalIDFieldName` (string)
    Enum: "Code"

## Response 200 fields (application/json):

  - `upsertResponse` (array)

  - `upsertResponse.Id` (any)

  - `upsertResponse.success` (boolean)

  - `upsertResponse.ErrorText` (string)

  - `upsertResponse.ErrorElementField` (string)

  - `upsertResponse.created` (boolean)


