Update Distribution Endpoint
PATCH
/records/{record_id}/distributions/{distribution_id}/
const url = 'https://example.com/records/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/distributions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"distribution_type":"example","format":"example","url":"example","title":"example","description":"example","protocol":"example","media_type":"example","is_primary":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/records/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/distributions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "distribution_type": "example", "format": "example", "url": "example", "title": "example", "description": "example", "protocol": "example", "media_type": "example", "is_primary": true }'Update a distribution (manual only; auto-generated distributions are immutable).
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” record_id
required
Record Id
string format: uuid
distribution_id
required
Distribution Id
string format: uuid
Request Body required
Section titled “ Request Body required ” Media type application/json
DistributionUpdate
object
Example generated
{ "distribution_type": "example", "format": "example", "url": "example", "title": "example", "description": "example", "protocol": "example", "media_type": "example", "is_primary": true}Responses
Section titled “ Responses ”Successful Response
Media type application/json
DistributionResponse
object
id
required
Id
string format: uuid
record_id
required
Record Id
string format: uuid
distribution_type
required
Distribution Type
string
url
required
Url
string
is_primary
required
Is Primary
boolean
auto_generated
required
Auto Generated
True if created automatically by the system
boolean
Example generated
{ "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}Bad request — invalid payload
Media type application/problem+json
Unauthorized — missing or invalid credentials
Media type application/problem+json
Forbidden — caller lacks write access
Media type application/problem+json
Not found
Media type application/problem+json
Conflict — resource state prevents the operation
Media type application/problem+json
Validation error
Media type application/problem+json
Too many requests — retry after the advertised interval
Media type application/problem+json
Headers
Section titled “ Headers ” Retry-After
integer
Seconds until the request may be retried
Internal server error
Media type application/problem+json
Service unavailable — the database could not serve the request
Media type application/problem+json