---
title: "Unarchive location by given Id"
method: POST
path: "/management/v2/locations/{id}:unarchive"
tags: ["Location Profile"]
---

# Unarchive location by given Id

`POST /management/v2/locations/{id}:unarchive`

## Request

- Base URL: `https://your-subdomain.deputy.deputy.com/api`
- URL: `https://your-subdomain.deputy.deputy.com/api/management/v2/locations/{id}:unarchive`
- Auth: API key in header `OAuth`

Unarchive location by given Id.

## Path parameters

- `id` integer, required

## Request body

- LocationProfileUnarchiveRequest
  - `id` integer

## Response `200`

A successful response.

- LocationProfileUnarchiveResponse
  - `success` boolean
  - `data` V2modelLocationProfile
    - `id` integer
    - `code` string
    - `isActive` boolean
    - `parentId` integer
    - `name` string
    - `isWorkplace` boolean
    - `isPayCenter` boolean
    - `payrollExportCode` string
    - `addressId` integer
    - `contactId` integer
    - `createdById` integer
    - `createdAt` string, date-time
    - `modifiedAt` string, date-time
    - `businessNumber` string
    - `address` Tenantlocationv2modelAddress
      - `id` integer
      - `street` string
      - `state` string
      - `postcode` string
      - `country` string
      - `verifiedAt` string, date-time
      - `note` string
      - `print` string
    - `geo` ModelLocationProfileLocationGeo
      - `latitude` number, double
      - `longitude` number, double

---

[API](https://skmtc.dev/deputy/apis/deputy-v2-api.md) - [All operations](https://skmtc.dev/deputy/apis/deputy-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deputy/apis/deputy-v2-api/revisions/78f0278f4608?raw)
