Partially Update an Analysis
Partially update an existing Analysis.
Authorizations
AuthorizationstringRequired
Enter your PredictHQ API key. The Bearer prefix is added automatically.
When calling the API directly, send: Authorization: Bearer <YOUR_API_KEY> as documented at https://docs.predicthq.com/api/overview/authenticating
Path parameters
analysis_idstringRequired
An existing Beam Analysis ID.
Body
namestring · min: 1Optional
external_idstring · min: 1OptionalExample:
External identifier associated with the Analysis (optional, user-defined).
{"external_id":"abc123"}labelstring[] · min: 1OptionalExample:
Comma-separated list of labels that can be used to search and filter analyses.
["label1","label2","label3"]Responses
204
Successful Response
400
Invalid request or Saved Location not found
403
Bearer token scope insufficient
404
Analysis not found
409
A data conflict has occurred due to the analysis being modified elsewhere. Please retry your call later.
422
Validation Error
application/json
patch
/v1/beam/analyses/{analysis_id}No content
Examples
curl -X PATCH "https://api.predicthq.com/v1/beam/analyses/$ANALYSIS_ID" \
-H "Accept: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @<(cat <<EOF
{
"name": "Analysis 2",
}
EOF
) import requests
response = requests.patch(
url="https://api.predicthq.com/v1/beam/analyses/$ANALYSIS_ID",
headers={
"Authorization": "Bearer $ACCESS_TOKEN",
"Accept": "application/json"
},
json={
"name": "Analysis 2"
}
)
print(response.status_code)OpenAPI Spec
Guides
Last updated
Was this helpful?