Skip to content

docs: POST /v2/model shows incorrect JSON field in example #367

@BAMF0

Description

@BAMF0

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions