Skip to content

Restore soft-deleted location

GET
/v1/brands/{brandId}/locations/{locationId}/restore
curl --request GET \
--url https://kynectlocal-production.up.railway.app/v1/v1/brands/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/locations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/restore \
--header 'Authorization: Bearer <token>'
brandId
required
string format: uuid

Brand identifier

locationId
required
string format: uuid

Location identifier

Success

Media type application/json
object
data
required
object
location
required
object
id
required

Location identifier

string format: uuid
brandId
required

Parent brand

string format: uuid
tenantId
required

Parent tenant

string format: uuid
name
required

Location display name

string
slug
required

URL-safe location slug

string
status
required

Location status: active | archived

string
city
required

City

string | null
state
required

State/province code

string | null
country
required

ISO 3166-1 alpha-2 country code

string | null
address
required

Street address

string | null
zipCode
required

Postal/ZIP code

string | null
phone
required

Phone number

string | null
email
required

Location email address

string | null
createdAt
required

Creation timestamp

string format: date-time
updatedAt
required

Last update timestamp

string format: date-time
Example generated
{
"data": {
"location": {
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"brandId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"tenantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"slug": "example",
"status": "example",
"city": "example",
"state": "example",
"country": "example",
"address": "example",
"zipCode": "example",
"phone": "example",
"email": "example",
"createdAt": "2026-04-15T12:00:00Z",
"updatedAt": "2026-04-15T12:00:00Z"
}
}
}

Validation error

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Unauthenticated

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Forbidden

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Not found

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}

Unprocessable

Media type application/json
object
error
required

Error envelope

object
code
required

Machine-readable error code

string
message
required

Human-readable error description

string
details

Additional context, e.g. validation field errors

Example generated
{
"error": {
"code": "example",
"message": "example",
"details": "example"
}
}