curl --request PATCH \
--url https://api.cnap.tech/v1/snippets/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"code": "<string>",
"display_type": "table"
}
'{
"snippet_id": "<string>"
}Updates snippet properties. Only provided fields are changed. Dashboards using this snippet will pick up code changes on next run.
curl --request PATCH \
--url https://api.cnap.tech/v1/snippets/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"code": "<string>",
"display_type": "table"
}
'{
"snippet_id": "<string>"
}Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at https://cnap.tech/account/tokens
Snippet ID
Snippet updated