Skip to content
getgeolens.com

List Distributions Endpoint

GET
/records/{record_id}/distributions/
curl --request GET \
--url 'https://example.com/records/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/distributions/?skip=0&limit=100'

List all distributions for a record.

record_id
required
Record Id
string format: uuid
skip
Skip
integer
0
limit
Limit
integer
default: 100 >= 1 <= 500

Successful Response

Media type application/json
DistributionListResponse
object
distributions
required
Distributions
Array<object>
DistributionResponse
object
id
required
Id
string format: uuid
record_id
required
Record Id
string format: uuid
distribution_type
required
Distribution Type
string
format
required
Any of:
string
url
required
Url
string
title
required
Any of:
string
description
required
Any of:
string
protocol
required
Any of:
string
media_type
required
Any of:
string
is_primary
required
Is Primary
boolean
auto_generated
required
Auto Generated

True if created automatically by the system

boolean
total
required
Total
integer
Example generated
{
"distributions": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"record_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"distribution_type": "example",
"format": "example",
"url": "example",
"title": "example",
"description": "example",
"protocol": "example",
"media_type": "example",
"is_primary": true,
"auto_generated": true
}
],
"total": 1
}

Bad request — invalid payload

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Unauthorized — missing or invalid credentials

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Forbidden — caller lacks access to this resource

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Not found

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Conflict — resource state prevents the operation

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Validation error

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Too many requests — retry after the advertised interval

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}
Retry-After
integer

Seconds until the request may be retried

Internal server error

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Service unavailable — the database could not serve the request

Media type application/problem+json
ProblemDetail
object
type
Type
string
default: about:blank
title
required
Title
string
status
required
Status
integer
detail
required
Any of:
string
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}