# Map Replace Dataset Attributes

### Required Fields
- **map_id**: UUID of the map  
  - **Type**: string

- **datasetToReplaceId**: Required  
  - **Type**: string

- **datasetToUseId**: Required  
  - **Type**: string

- **force**:  
  - **Type**: boolean

- **strict**:  
  - **Type**: boolean

### Map Record

- **Object**:  
  - **name**:  
      - **Type**: string  
  - **description**:  
      - **Type**: string  
  - **permission**:  
      - **Type**: string  
      - **Enum**: `viewer`, `editor`  
  - **latestState**:  
      - **Type**: file  
      - **Currently**: Cannot be uploaded from the API explorer. Coming soon.  
  - **datasets**:  
      - **Array of Objects**: datasets  
      - **Object**:  
          - **id**:  
              - **Type**: string  
          - **name**:  
              - **Type**: string  
          - **type**:  
              - **Type**: string  
              - **Enum**: `managed`, `externally-hosted`, `sample`, `vector-tile`, `raster-tile`, `hex-tile`  
          - **description**:  
              - **Type**: string  
          - **privacy**:  
              - **Type**: string  
              - **Enum**: `private`, `public_read`  
          - **permission**:  
              - **Type**: string  
              - **Enum**: `viewer`, `editor`  
          - **isValid**:  
              - **Type**: boolean  
          - **createdAt**:  
              - **Type**: date-time  
          - **updatedAt**:  
              - **Type**: date-time  
          - **metadata**:  
              - **Object**: metadata  
                  - **id**:  
                      - **Type**: string  
                  - **createdAt**:  
                      - **Type**: date-time  
                  - **updatedAt**:  
                      - **Type**: date-time

### Example JSON Structure

```json
{
  "name": "string",
  "description": "string",
  "permission": "viewer",
  "latestState": "string",
  "datasets": [
    {
      "id": "string",
      "name": "string",
      "type": "managed",
      "description": "string",
      "privacy": "private",
      "permission": "viewer",
      "isValid": true,
      "createdAt": "2026-07-25T03:52:18.780Z",
      "updatedAt": "2026-07-25T03:52:18.780Z",
      "metadata": {
        "contentType": "string",
        "size": 0
      }
    }
  ],
  "id": "string",
  "createdAt": "2026-07-25T03:52:18.780Z",
  "updatedAt": "2026-07-25T03:52:18.780Z"
}
```
