---
title: "POST /api/app/published-locations"
method: POST
path: "/api/app/published-locations"
tags: ["PublishedLocations"]
---

# POST /api/app/published-locations

`POST /api/app/published-locations`

## Request

- Base URL: `https://api.connact-app.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.connact-app.com/api/app/published-locations`
- Auth: OAuth 2
  - Authorization code: `https://api.connact-app.com/connect/authorize`
  - Token URL: `https://api.connact-app.com/connect/token`
- TypeScript: <https://skmtc.dev/connact-app/apis/connact-api-24507495749-master/docs/api/app/published-locations/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- ConnActPublishedLocationsCreatePublishedLocationDto
  - `country` string, required
  - `region` string, required
  - `city` string, required
  - `coordinates` ConnActPublishedLocationsCoordinatesDto, required
    - `lat` number, double
    - `lng` number, double

## Response `200`

Success

- ConnActPublishedLocationsPublishedLocationDto
  - `id` string, uuid
  - `country` string, nullable
  - `region` string, nullable
  - `city` string, nullable
  - `coordinates` ConnActPublishedLocationsCoordinatesDto
    - `lat` number, double
    - `lng` number, double

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Server Error
- `501`: Server Error

---

[API](https://skmtc.dev/connact-app/apis/connact-api-24507495749-master.md) - [All operations](https://skmtc.dev/connact-app/apis/connact-api-24507495749-master/llms.txt) - [OpenAPI document](https://skmtc.dev/connact-app/apis/connact-api-24507495749-master/revisions/b286d2cf34db?raw)
