Skip to content
This repository was archived by the owner on Feb 7, 2020. It is now read-only.
This repository was archived by the owner on Feb 7, 2020. It is now read-only.

Promote without organization #39

@sdtibco

Description

@sdtibco

The 'promote' function does not work unless the service being promoted is a member of an organization. In this case, the POST body to https://api.mashery.com/v3/rest/services contains the full object:

"organization":{"created":"2018-08-22T15:59:52.000+0000","updated":"2018-08-22T15:59:52.000+0000","description":"","name":"Acme","parent":null,"id":"be40d271-2af8-4b86-a0f1-f6dfeb42e6f7"}

However, if there is no organization then it defaults to null:

"organization":null

This does not seem to be valid and causes an error. Removing "organization" completely in these cases does work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions