Remodeling using the /v2/model endpoint requires sending a JSON body like this:
{
"new-model": <raw_model_assertion_text>
}
However the API docs show:
{
"assertion": <raw_model_assertion_text>
}
which throws the error cannot decode new model assertion: assertion content/signature separator not found.
*Reported from: https://snapcraft.io/docs/reference/development/snapd-rest-api/
Remodeling using the
/v2/modelendpoint requires sending a JSON body like this:{ "new-model": <raw_model_assertion_text> }However the API docs show:
{ "assertion": <raw_model_assertion_text> }which throws the error
cannot decode new model assertion: assertion content/signature separator not found.*Reported from: https://snapcraft.io/docs/reference/development/snapd-rest-api/