Get URL

Get URL - kintone.api.url()

Returns a URL from a shortened API path.

Function

kintone.api.url(path, opt_detectGuestSpace)

Request Parameters

PARAMETER VALUE REQUIRED DESCRIPTION
path String Yes The Kintone REST API path string beginning with /.
If the URL of the API is https://{subdomain}.kintone.com/k/v1/xxx.json, then specify the parameter as /k/v1/xxx.
opt_detectGuestSpace Boolean Optional If this is set to true, and is used in a guest space app, the URI of the guest space will be returned. Default is false.

Response

A URL string.

Sample Response

1
https://{subdomain}.kintone.com/k/v1/records.json

Sample Request

1
2
var url = kintone.api.url('/k/v1/records.json');
console.log(url);