Partially Update an Analysis
Partially update an existing Analysis.
PATCH https://api.predicthq.com/v1/beam/analyses/$analysis_id
Parameter | Description |
---|---|
analysis_id | An existing Beam Analysis ID. |
Header | Value |
---|---|
Content-Type | application/json |
This endpoint accepts the same request body fields as the Create an Analysis endpoint. Please refer to the Create an Analysis documentation for request body parameters.
Remember this is a PATCH endpoint which means only the fields you provide will be updated.
If successful, the HTTP response code will be
204 No Content
.curl
python
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)
Below are some guides relevant to this API:
Last modified 2mo ago