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

Promote without organization #39

Open
sdtibco opened this issue Aug 27, 2018 · 0 comments
Open

Promote without organization #39

sdtibco opened this issue Aug 27, 2018 · 0 comments

Comments

@sdtibco
Copy link

sdtibco commented Aug 27, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant