Create a custom service for an IdP application
curl --request POST \
--url https://api.saas-manager.biz.nuro.jp/api/v1/organizations/{organizationId}/custom-services/create-idp-workspace \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"identityProviderWorkspaceId": 13,
"aggreKey": "000000",
"workspaceName": "Custom service workspace name",
"serviceName": "service name"
}
'import requests
url = "https://api.saas-manager.biz.nuro.jp/api/v1/organizations/{organizationId}/custom-services/create-idp-workspace"
payload = {
"identityProviderWorkspaceId": 13,
"aggreKey": "000000",
"workspaceName": "Custom service workspace name",
"serviceName": "service name"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
identityProviderWorkspaceId: 13,
aggreKey: '000000',
workspaceName: 'Custom service workspace name',
serviceName: 'service name'
})
};
fetch('https://api.saas-manager.biz.nuro.jp/api/v1/organizations/{organizationId}/custom-services/create-idp-workspace', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.saas-manager.biz.nuro.jp/api/v1/organizations/{organizationId}/custom-services/create-idp-workspace",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'identityProviderWorkspaceId' => 13,
'aggreKey' => '000000',
'workspaceName' => 'Custom service workspace name',
'serviceName' => 'service name'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.saas-manager.biz.nuro.jp/api/v1/organizations/{organizationId}/custom-services/create-idp-workspace"
payload := strings.NewReader("{\n \"identityProviderWorkspaceId\": 13,\n \"aggreKey\": \"000000\",\n \"workspaceName\": \"Custom service workspace name\",\n \"serviceName\": \"service name\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.saas-manager.biz.nuro.jp/api/v1/organizations/{organizationId}/custom-services/create-idp-workspace")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"identityProviderWorkspaceId\": 13,\n \"aggreKey\": \"000000\",\n \"workspaceName\": \"Custom service workspace name\",\n \"serviceName\": \"service name\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.saas-manager.biz.nuro.jp/api/v1/organizations/{organizationId}/custom-services/create-idp-workspace")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"identityProviderWorkspaceId\": 13,\n \"aggreKey\": \"000000\",\n \"workspaceName\": \"Custom service workspace name\",\n \"serviceName\": \"service name\"\n}"
response = http.request(request)
puts response.read_body{
"service": {
"id": 1,
"name": "Google",
"uniqueName": "google",
"url": "https://google.com",
"isEmployeeMasterService": true,
"isCustomService": false,
"isIdentityProvider": false
},
"workspace": {
"id": 1,
"organizationId": 1,
"serviceId": 1,
"workspaceName": "Example Workspace",
"isCustomWorkspace": true,
"customWorkspaceType": "google_sheet",
"identityProviderWorkspaceId": 13
},
"isNewService": true
}Custom Services
Create a custom service for an IdP application
Create (or reuse) a custom IdP service and link a new workspace to the given identity-provider application.
POST
/
api
/
v1
/
organizations
/
{organizationId}
/
custom-services
/
create-idp-workspace
Create a custom service for an IdP application
curl --request POST \
--url https://api.saas-manager.biz.nuro.jp/api/v1/organizations/{organizationId}/custom-services/create-idp-workspace \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"identityProviderWorkspaceId": 13,
"aggreKey": "000000",
"workspaceName": "Custom service workspace name",
"serviceName": "service name"
}
'import requests
url = "https://api.saas-manager.biz.nuro.jp/api/v1/organizations/{organizationId}/custom-services/create-idp-workspace"
payload = {
"identityProviderWorkspaceId": 13,
"aggreKey": "000000",
"workspaceName": "Custom service workspace name",
"serviceName": "service name"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
identityProviderWorkspaceId: 13,
aggreKey: '000000',
workspaceName: 'Custom service workspace name',
serviceName: 'service name'
})
};
fetch('https://api.saas-manager.biz.nuro.jp/api/v1/organizations/{organizationId}/custom-services/create-idp-workspace', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.saas-manager.biz.nuro.jp/api/v1/organizations/{organizationId}/custom-services/create-idp-workspace",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'identityProviderWorkspaceId' => 13,
'aggreKey' => '000000',
'workspaceName' => 'Custom service workspace name',
'serviceName' => 'service name'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.saas-manager.biz.nuro.jp/api/v1/organizations/{organizationId}/custom-services/create-idp-workspace"
payload := strings.NewReader("{\n \"identityProviderWorkspaceId\": 13,\n \"aggreKey\": \"000000\",\n \"workspaceName\": \"Custom service workspace name\",\n \"serviceName\": \"service name\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.saas-manager.biz.nuro.jp/api/v1/organizations/{organizationId}/custom-services/create-idp-workspace")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"identityProviderWorkspaceId\": 13,\n \"aggreKey\": \"000000\",\n \"workspaceName\": \"Custom service workspace name\",\n \"serviceName\": \"service name\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.saas-manager.biz.nuro.jp/api/v1/organizations/{organizationId}/custom-services/create-idp-workspace")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"identityProviderWorkspaceId\": 13,\n \"aggreKey\": \"000000\",\n \"workspaceName\": \"Custom service workspace name\",\n \"serviceName\": \"service name\"\n}"
response = http.request(request)
puts response.read_body{
"service": {
"id": 1,
"name": "Google",
"uniqueName": "google",
"url": "https://google.com",
"isEmployeeMasterService": true,
"isCustomService": false,
"isIdentityProvider": false
},
"workspace": {
"id": 1,
"organizationId": 1,
"serviceId": 1,
"workspaceName": "Example Workspace",
"isCustomWorkspace": true,
"customWorkspaceType": "google_sheet",
"identityProviderWorkspaceId": 13
},
"isNewService": true
}承認
For authenticated requests, set the Authorization: Bearer your_api_key parameter in the header.
You can create and manage your API Keys by visiting the API Keys tab in the Settings page of your organization in Assist SaaS Manager
ボディ
application/json