Get the goal binding for a quality profile
GET
/goals/binding
const url = 'https://example.com/api/v1/goals/binding?databaseId=1&profileName=example&arrType=radarr';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/goals/binding?databaseId=1&profileName=example&arrType=radarr'Returns the persisted goal binding (preset + weights + engine version + applied time) for a
profile, or null when the profile is not goal-governed. A stale engineVersion drives a
re-apply prompt in the editor.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”databaseId
required
integer
profileName
required
string
arrType
required
string
Responses
Section titled “Responses”The binding, or null
Media typeapplication/json
object
binding
required
One of:
Persisted intent metadata for a goal-governed quality profile.
object
presetId
required
string
weights
required
object
qualityVsSize
required
integer
compatibility
required
integer
hdrPreference
required
integer
unwantedStrictness
required
integer
resolutionCeiling
required
string
engineVersion
required
string
appliedAt
required
ISO-8601 UTC timestamp of the last apply
string
null
applyStatus
One of:
Durable outcome of a Quality Goals apply/reconcile attempt (issue #236). Reports whether scoring changed, the binding’s terminal state, and the safe recovery action, so a partial write is never unreported.
object
applyId
required
integer
status
required
string
scoringChanged
required
Whether the scoring ops reached (or may have reached) their intended terminal state.
boolean
bindingStatus
required
string
intentFingerprint
string
startedAt
required
string
null
Example
{ "binding": { "weights": { "resolutionCeiling": "720p" } }, "applyStatus": { "status": "pending", "bindingStatus": "written", "recovery": { "action": "none" } }}Invalid query parameters
Media typeapplication/json
object
error
required
Error message
string
Examplegenerated
{ "error": "example"}