Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Object REST API should have a way to specify the space #27181

Closed
kiju98 opened this issue Dec 14, 2018 · 3 comments
Closed

Create Object REST API should have a way to specify the space #27181

kiju98 opened this issue Dec 14, 2018 · 3 comments

Comments

@kiju98
Copy link

kiju98 commented Dec 14, 2018

Describe the feature:

Currently Create Object API specifies a type and an ID for the saved object but no space as below:

POST api/saved_objects/index-pattern/my-pattern
{
  "attributes": {
    "title": "my-pattern-*"
  }
}

If we create a saved object using the API, the object is created in the default space.
I hope we can specify the space where we want to create the object using the API.

Describe a specific use case for the feature:

@kiju98 kiju98 changed the title Create Object REST API should specify a space Create Object REST API should have a way to specify the space Dec 14, 2018
@zeroFruit
Copy link

any plans?

@alexander-pospiech-inovex

Maybe the way to go is to use the Rest endpoint for dashboard export/import, respectively you have all your saved objects organized below a dashboard?
Direct assignment of a space or at least a copy-to-space endpoint for saved objects would be a bit more handy.

@flash1293
Copy link
Contributor

The saved objects API supports spaces now: https://www.elastic.co/guide/en/kibana/master/saved-objects-api-create.html

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

No branches or pull requests

4 participants