Update the configuration on an addon subscription Run in API Explorer
Ask AI
This is also the only place an addon's data permissions (e.g. access to client documents) can currently be changed, so it doubles as the "permissions changed" audit event until a dedicated permissions model exists. Config holds credentials and account ids alongside anything permission-like, with nothing marking which is which, so the entry is tagged and titled as a configuration change rather than claiming a permission changed when someone only corrected a username.
PUT
/api/v1/addon-subscriptions/{addonSubscription_uuid}
curl \
--request PUT 'https://api.plannrcrm.com/api/v1/addon-subscriptions/6ff8f7f6-1eb3-3525-be4a-3932c805afed' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"config": {
"api_key": "example-api-key"
}
}'
Request examples
{
"config": {
"api_key": "example-api-key"
}
}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}