Move App to Space

Changes the Space to which an App belongs.

MethodPOST
URLhttps://{subdomain}.kintone.com/k/v1/app/move.json
Authentication Password Authentication, Session Authentication
Content-Typeapplication/json

Contents

Limitations

Guest Spaces are not supported with this API. For more information, refer to the following article: Changing Which Space an App Belongs to (External link)

Permissions

For detailed information regarding permissions, refer to the following article: Changing Which Space an App Belongs to (External link)

Request Parameters

Parameter Value Required Description
app Integer or String Required The App ID.
space Integer or String or null Required The Space ID of where the App will be moved to.
To remove an App from its current space, null can be specified.

Sample Request

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
var body = {
  'app': 1,
  'space': 5
};

kintone.api(kintone.api.url('/k/v1/app/move.json', true), 'POST', body, function(resp) {
  // success
  console.log(resp);
}, function(error) {
  // error
  console.log(error);
});

XMLHttpRequest

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
var body = {
  'app': 1,
  'space': 5,
  // CSRF TOKEN: used for all APIs that have an HTTP method of POST, PUT and DELETE on Kintone.
  '__REQUEST_TOKEN__': kintone.getRequestToken()
};

var url = 'https://{subdomain}.kintone.com/k/v1/app/move.json';
var xhr = new XMLHttpRequest();
xhr.open('POST', url);
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.onload = function() {
  if (xhr.status === 200) {
    // success
    console.log(JSON.parse(xhr.responseText));
  } else {
    // error
    console.log(JSON.parse(xhr.responseText));
  }
};
xhr.send(JSON.stringify(body));

Response Parameters

An empty JSON object will be returned.

Sample Response

1
{}