• 10Duke Identity Provider REST API v1.exp
  • Authentication
  • organization
  • user
  • organization-group
  • organization-role
  • Schemas
  • Navbar Iconidentity Identity Provider REST API

    10Duke Identity Provider REST API v1.exp

    Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.

    This is the Identity Provider REST API provided by 10Duke Software.

    Base URLs:

    Terms of service Email: 10Duke Software Web: 10Duke Software

    Authentication

    Scope Scope Description
    read read anything
    write modify anything

    organization

    Create organization.

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//organizations \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    POST http://id.10duke.com:443/api/idp/v.exp//organizations HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations',
      method: 'post',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations',
      {
        method: 'POST',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//organizations',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//organizations',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /organizations

    Create a new organization. Note: organization names must be unique.

    Body parameter

    {
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }
    

    Parameters

    Parameter In Type Required
    body - No description body Organization true

    Example responses

    {
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }
    

    Responses

    Status Meaning Schema
    201 - Creating the organization was successful Created Organization
    400 - Bad request Bad Request None

    List organizations.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organizations \
      -H 'Accept: application/json' \
      -H 'offset: 0' \
      -H 'limit: 25' \
      -H 'order: string' \
      -H 'asc: false'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organizations HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    offset: 0
    limit: 25
    order: string
    asc: false
    
    var headers = {
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json',
      'offset' => '0',
      'limit' => '25',
      'order' => 'string',
      'asc' => 'false'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organizations',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json',
      'offset': '0',
      'limit': '25',
      'order': 'string',
      'asc': 'false'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organizations',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organizations

    List all organizations, paging is recommended.

    Parameters

    Parameter In Type Required
    offset - Index of the first item to include in the result header integer(int64) false
    limit - Maximum result set size header integer(int32) false
    order - Name of field to use for sorting the results header string false
    asc - Determines if sort order is ascending (true) or descending (false) header boolean false

    Example responses

    [
      {
        "name": "string",
        "description": "string",
        "id": "string",
        "type": "string"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Inline
    400 - Bad request Bad Request None
    404 - The resource was not found. Not Found None

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [Organization] false
    » name - The Organization's name (e.g. company name). The name does not imply formality and may be used in presentation if feasible. string true
    » description - The Organization's description. The description does not imply formality and may be used in presentation if feasible. string false
    » id - No description string(uuid) true
    » type - The Organization's type. The type is formal and is used by application logic. Predefined reserved type values are: company, enterprise and project. string false

    Replace organization.

    Code samples

    curl -X PUT http://id.10duke.com:443/api/idp/v.exp//organizations \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    PUT http://id.10duke.com:443/api/idp/v.exp//organizations HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations',
      method: 'put',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations',
      {
        method: 'PUT',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.put 'http://id.10duke.com:443/api/idp/v.exp//organizations',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.put('http://id.10duke.com:443/api/idp/v.exp//organizations',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    PUT /organizations

    Replace information in existing organization with new data.

    Body parameter

    {
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }
    

    Parameters

    Parameter In Type Required
    body - No description body Organization true

    Example responses

    {
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - Replacing the organization was successful OK Organization
    400 - Bad request Bad Request None
    404 - The resource was not found. Not Found None

    Setup an organization with default group and member.

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//organizations/organization-setup?initialAdminId=string \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    POST http://id.10duke.com:443/api/idp/v.exp//organizations/organization-setup?initialAdminId=string HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/organization-setup',
      method: 'post',
      data: '?initialAdminId=string',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/organization-setup?initialAdminId=string',
      {
        method: 'POST',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//organizations/organization-setup',
      params: {
        'initialAdminId' => 'string(uuid)'
      },
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//organizations/organization-setup',
      params = {
        'initialAdminId': 'string'},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/organization-setup?initialAdminId=string");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /organizations/organization-setup

    Setup an organization with a default group and a member who is granted admin privileges in the new organization.

    Body parameter

    {
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }
    

    Parameters

    Parameter In Type Required
    initialAdminId - Id of user to set as the first administrator. query string(uuid) true
    body - The organization to create. body Organization true

    Example responses

    {
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }
    

    Responses

    Status Meaning Schema
    201 - Setup the organization was successful Created Organization
    400 - Bad request Bad Request None

    Accepts an invitation.

    Code samples

    curl -X PUT http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/accept \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    PUT http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/accept HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/accept',
      method: 'put',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "memberWelcomeUrl": "string",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "email": "string",
      "invitationScopeInformation": "string"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/accept',
      {
        method: 'PUT',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.put 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/accept',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.put('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/accept',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/accept");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    PUT /organization-group-invitations/accept

    Accepts an invitation and puts in in closed state.

    Body parameter

    {
      "memberWelcomeUrl": "string",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "email": "string",
      "invitationScopeInformation": "string"
    }
    

    Parameters

    Parameter In Type Required
    body - No description body OrganizationGroupInvitation true

    Example responses

    {
      "claimedAt": 0,
      "memberWelcomeUrl": "string",
      "invitationState": "accepted",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "declinedAt": 0,
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "revokedAt": 0,
      "email": "string",
      "invitationScopeInformation": "string"
    }
    

    Responses

    Status Meaning Schema
    201 - successful operation Created OrganizationGroupInvitation

    Lists organization users.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/users \
      -H 'Accept: application/json' \
      -H 'offset: 0' \
      -H 'limit: 25' \
      -H 'order: string' \
      -H 'asc: false'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/users HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    offset: 0
    limit: 25
    order: string
    asc: false
    
    var headers = {
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/users',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/users',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json',
      'offset' => '0',
      'limit' => '25',
      'order' => 'string',
      'asc' => 'false'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/users',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json',
      'offset': '0',
      'limit': '25',
      'order': 'string',
      'asc': 'false'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/users',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/users");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organizations/{organizationId}/users

    List organization users (members in organization).

    Parameters

    Parameter In Type Required
    offset - Index of the first item to include in the result header integer(int64) false
    limit - Maximum result set size header integer(int32) false
    order - Name of field to use for sorting the results header string false
    asc - Determines if sort order is ascending (true) or descending (false) header boolean false
    filter - String to use for filtering the results query string false
    organizationId - The organization id path string(uuid) true

    Example responses

    [
      {
        "firstName": "string",
        "lastName": "string",
        "validUntil": "2017-12-31T23:59:59.123Z",
        "id": "string",
        "validFrom": "2017-12-31T23:59:59.123Z",
        "email": "string"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Inline
    400 - Bad request Bad Request None

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [User] false
    » firstName - The user's first name (given name). The first name is formal and is considered to be personal and sensitive user information. string true
    » lastName - The user's last name (family name). The last name is formal and is considered to be personal and sensitive user information. string true
    » validUntil - The valid until date time. string false
    » id - No description string(uuid) true
    » validFrom - The valid from date time. string false
    » email - The user's primary registsred email address (contact information). The email is formal and is considered personal and sensitive user information. string true

    List declined invitations.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/declined \
      -H 'Accept: application/json' \
      -H 'offset: 0' \
      -H 'limit: 25' \
      -H 'order: string' \
      -H 'asc: false'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/declined HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    offset: 0
    limit: 25
    order: string
    asc: false
    
    var headers = {
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/declined',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/declined',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json',
      'offset' => '0',
      'limit' => '25',
      'order' => 'string',
      'asc' => 'false'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/declined',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json',
      'offset': '0',
      'limit': '25',
      'order': 'string',
      'asc': 'false'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/declined',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/declined");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organization-group-invitations/declined

    List declined invitations.

    Parameters

    Parameter In Type Required
    offset - Index of the first item to include in the result header integer(int64) false
    limit - Maximum result set size header integer(int32) false
    order - Name of field to use for sorting the results header string false
    asc - Determines if sort order is ascending (true) or descending (false) header boolean false

    Example responses

    [
      {
        "claimedAt": 0,
        "memberWelcomeUrl": "string",
        "invitationState": "accepted",
        "clientRoleIds": [
          "string"
        ],
        "inviterName": "string",
        "declinedAt": 0,
        "organizationId": "string",
        "groupIds": [
          "string"
        ],
        "recipientName": "string",
        "id": "string",
        "revokedAt": 0,
        "email": "string",
        "invitationScopeInformation": "string"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Inline
    400 - Bad request Bad Request None

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [OrganizationGroupInvitation] false
    » claimedAt - The date-time when this invitation was completed (accepted). integer(int64) false
    » memberWelcomeUrl - URL that is formatted into invitation message delivered to the user. The URL MUST contain this format specifier: ${key}, which is used to inject an invitation token into the link. The token is needed for authorized access to the invitation. string true
    » invitationState - Code describing the state of an invitation. This may be a possible error state that an invitation may be in, e.g. email delivery may have failed and an email address may be reserved at the time of creating an invitation. Equally, declined and accepted state is set into this member. string false
    » clientRoleIds - Optional list with identifiers of client application roles to grant to the invited user. [string] true
    » inviterName - The inviter's name in formatted shape. string true
    » declinedAt - The date-time when this invitation was declined. integer(int64) false
    » organizationId - Identifier of the organization this is the host of this invitation string(uuid) true
    » groupIds - Identifiers of groups to add the invited user to. [string] true
    » recipientName - The recipient's name in formatted shape. string true
    » id - No description string(uuid) true
    » revokedAt - The date-time when this invitation was revoked. integer(int64) false
    » email - The invited email address string true
    » invitationScopeInformation - Informative description about where / what the recipient is invited to. This description is intended for communication from the inviter to the invitee. string false

    Enumerated Values

    Property Value
    invitationState accepted
    invitationState badInvitationData
    invitationState created
    invitationState declined
    invitationState deliveryFailed
    invitationState deliveryRequested
    invitationState emailNotAvailable
    invitationState revoked

    List accepted invitations.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/accepted \
      -H 'Accept: application/json' \
      -H 'offset: 0' \
      -H 'limit: 25' \
      -H 'order: string' \
      -H 'asc: false'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/accepted HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    offset: 0
    limit: 25
    order: string
    asc: false
    
    var headers = {
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/accepted',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/accepted',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json',
      'offset' => '0',
      'limit' => '25',
      'order' => 'string',
      'asc' => 'false'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/accepted',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json',
      'offset': '0',
      'limit': '25',
      'order': 'string',
      'asc': 'false'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/accepted',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/accepted");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organization-group-invitations/accepted

    List accepted invitations.

    Parameters

    Parameter In Type Required
    offset - Index of the first item to include in the result header integer(int64) false
    limit - Maximum result set size header integer(int32) false
    order - Name of field to use for sorting the results header string false
    asc - Determines if sort order is ascending (true) or descending (false) header boolean false

    Example responses

    [
      {
        "claimedAt": 0,
        "memberWelcomeUrl": "string",
        "invitationState": "accepted",
        "clientRoleIds": [
          "string"
        ],
        "inviterName": "string",
        "declinedAt": 0,
        "organizationId": "string",
        "groupIds": [
          "string"
        ],
        "recipientName": "string",
        "id": "string",
        "revokedAt": 0,
        "email": "string",
        "invitationScopeInformation": "string"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Inline
    400 - Bad request Bad Request None

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [OrganizationGroupInvitation] false
    » claimedAt - The date-time when this invitation was completed (accepted). integer(int64) false
    » memberWelcomeUrl - URL that is formatted into invitation message delivered to the user. The URL MUST contain this format specifier: ${key}, which is used to inject an invitation token into the link. The token is needed for authorized access to the invitation. string true
    » invitationState - Code describing the state of an invitation. This may be a possible error state that an invitation may be in, e.g. email delivery may have failed and an email address may be reserved at the time of creating an invitation. Equally, declined and accepted state is set into this member. string false
    » clientRoleIds - Optional list with identifiers of client application roles to grant to the invited user. [string] true
    » inviterName - The inviter's name in formatted shape. string true
    » declinedAt - The date-time when this invitation was declined. integer(int64) false
    » organizationId - Identifier of the organization this is the host of this invitation string(uuid) true
    » groupIds - Identifiers of groups to add the invited user to. [string] true
    » recipientName - The recipient's name in formatted shape. string true
    » id - No description string(uuid) true
    » revokedAt - The date-time when this invitation was revoked. integer(int64) false
    » email - The invited email address string true
    » invitationScopeInformation - Informative description about where / what the recipient is invited to. This description is intended for communication from the inviter to the invitee. string false

    Enumerated Values

    Property Value
    invitationState accepted
    invitationState badInvitationData
    invitationState created
    invitationState declined
    invitationState deliveryFailed
    invitationState deliveryRequested
    invitationState emailNotAvailable
    invitationState revoked

    List all invitations.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations \
      -H 'Accept: application/json' \
      -H 'offset: 0' \
      -H 'limit: 25' \
      -H 'order: string' \
      -H 'asc: false'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    offset: 0
    limit: 25
    order: string
    asc: false
    
    var headers = {
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json',
      'offset' => '0',
      'limit' => '25',
      'order' => 'string',
      'asc' => 'false'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json',
      'offset': '0',
      'limit': '25',
      'order': 'string',
      'asc': 'false'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organization-group-invitations

    List all invitations, including open, accepted, declined, and revoked ones.

    Parameters

    Parameter In Type Required
    offset - Index of the first item to include in the result header integer(int64) false
    limit - Maximum result set size header integer(int32) false
    order - Name of field to use for sorting the results header string false
    asc - Determines if sort order is ascending (true) or descending (false) header boolean false

    Example responses

    [
      {
        "claimedAt": 0,
        "memberWelcomeUrl": "string",
        "invitationState": "accepted",
        "clientRoleIds": [
          "string"
        ],
        "inviterName": "string",
        "declinedAt": 0,
        "organizationId": "string",
        "groupIds": [
          "string"
        ],
        "recipientName": "string",
        "id": "string",
        "revokedAt": 0,
        "email": "string",
        "invitationScopeInformation": "string"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Inline
    400 - Bad request Bad Request None

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [OrganizationGroupInvitation] false
    » claimedAt - The date-time when this invitation was completed (accepted). integer(int64) false
    » memberWelcomeUrl - URL that is formatted into invitation message delivered to the user. The URL MUST contain this format specifier: ${key}, which is used to inject an invitation token into the link. The token is needed for authorized access to the invitation. string true
    » invitationState - Code describing the state of an invitation. This may be a possible error state that an invitation may be in, e.g. email delivery may have failed and an email address may be reserved at the time of creating an invitation. Equally, declined and accepted state is set into this member. string false
    » clientRoleIds - Optional list with identifiers of client application roles to grant to the invited user. [string] true
    » inviterName - The inviter's name in formatted shape. string true
    » declinedAt - The date-time when this invitation was declined. integer(int64) false
    » organizationId - Identifier of the organization this is the host of this invitation string(uuid) true
    » groupIds - Identifiers of groups to add the invited user to. [string] true
    » recipientName - The recipient's name in formatted shape. string true
    » id - No description string(uuid) true
    » revokedAt - The date-time when this invitation was revoked. integer(int64) false
    » email - The invited email address string true
    » invitationScopeInformation - Informative description about where / what the recipient is invited to. This description is intended for communication from the inviter to the invitee. string false

    Enumerated Values

    Property Value
    invitationState accepted
    invitationState badInvitationData
    invitationState created
    invitationState declined
    invitationState deliveryFailed
    invitationState deliveryRequested
    invitationState emailNotAvailable
    invitationState revoked

    Create invitation.

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    POST http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations',
      method: 'post',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "memberWelcomeUrl": "string",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "email": "string",
      "invitationScopeInformation": "string"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations',
      {
        method: 'POST',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /organization-group-invitations

    Create a new invitation. The caller is responsible for delivering the invitation to the recipient. Note the contract for accepting and declining will require the invitation token value to be present. This means the token must be carried through the delivery chain and be kept intact until time of accepting / declining the invitation.

    Body parameter

    {
      "memberWelcomeUrl": "string",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "email": "string",
      "invitationScopeInformation": "string"
    }
    

    Parameters

    Parameter In Type Required
    body - No description body OrganizationGroupInvitation true

    Example responses

    {
      "claimedAt": 0,
      "memberWelcomeUrl": "string",
      "invitationState": "accepted",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "declinedAt": 0,
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "revokedAt": 0,
      "email": "string",
      "invitationScopeInformation": "string"
    }
    

    Responses

    Status Meaning Schema
    201 - Creating the invitation was successful Created OrganizationGroupInvitation
    400 - Bad request Bad Request None

    Get invitation.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organization/{organizationId}/group-invitations/{invitationId} \
      -H 'Accept: application/json'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organization/{organizationId}/group-invitations/{invitationId} HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization/{organizationId}/group-invitations/{invitationId}',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization/{organizationId}/group-invitations/{invitationId}',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organization/{organizationId}/group-invitations/{invitationId}',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organization/{organizationId}/group-invitations/{invitationId}',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization/{organizationId}/group-invitations/{invitationId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organization/{organizationId}/group-invitations/{invitationId}

    Get invitation by id.

    Parameters

    Parameter In Type Required
    organizationId - The organization id path string(uuid) true
    invitationId - The invitation id path string(uuid) true

    Example responses

    {
      "claimedAt": 0,
      "memberWelcomeUrl": "string",
      "invitationState": "accepted",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "declinedAt": 0,
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "revokedAt": 0,
      "email": "string",
      "invitationScopeInformation": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - successful operation OK OrganizationGroupInvitation
    404 - The resource was not found Not Found None

    Delete invitation.

    Code samples

    curl -X DELETE http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/{invitationId}
    
    DELETE http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/{invitationId} HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/{invitationId}',
      method: 'delete',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/{invitationId}',
      {
        method: 'DELETE'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.delete 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/{invitationId}',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.delete('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/{invitationId}',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/{invitationId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    DELETE /organization-group-invitations/{invitationId}

    Delete invitation by id.

    Parameters

    Parameter In Type Required
    invitationId - The invitation id path string(uuid) true

    Responses

    Status Meaning Schema
    204 - Deleting the invitation was successful No Content None
    400 - Bad request Bad Request None

    Delines an invitation.

    Code samples

    curl -X PUT http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/decline \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    PUT http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/decline HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/decline',
      method: 'put',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "memberWelcomeUrl": "string",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "email": "string",
      "invitationScopeInformation": "string"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/decline',
      {
        method: 'PUT',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.put 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/decline',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.put('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/decline',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/decline");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    PUT /organization-group-invitations/decline

    Delines an invitation and puts in in closed state.

    Body parameter

    {
      "memberWelcomeUrl": "string",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "email": "string",
      "invitationScopeInformation": "string"
    }
    

    Parameters

    Parameter In Type Required
    body - No description body OrganizationGroupInvitation true

    Example responses

    {
      "claimedAt": 0,
      "memberWelcomeUrl": "string",
      "invitationState": "accepted",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "declinedAt": 0,
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "revokedAt": 0,
      "email": "string",
      "invitationScopeInformation": "string"
    }
    

    Responses

    Status Meaning Schema
    201 - successful operation Created OrganizationGroupInvitation

    List revoked invitations.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/revoked \
      -H 'Accept: application/json' \
      -H 'offset: 0' \
      -H 'limit: 25' \
      -H 'order: string' \
      -H 'asc: false'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/revoked HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    offset: 0
    limit: 25
    order: string
    asc: false
    
    var headers = {
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/revoked',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/revoked',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json',
      'offset' => '0',
      'limit' => '25',
      'order' => 'string',
      'asc' => 'false'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/revoked',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json',
      'offset': '0',
      'limit': '25',
      'order': 'string',
      'asc': 'false'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/revoked',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/revoked");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organization-group-invitations/revoked

    List revoked invitations.

    Parameters

    Parameter In Type Required
    offset - Index of the first item to include in the result header integer(int64) false
    limit - Maximum result set size header integer(int32) false
    order - Name of field to use for sorting the results header string false
    asc - Determines if sort order is ascending (true) or descending (false) header boolean false

    Example responses

    [
      {
        "claimedAt": 0,
        "memberWelcomeUrl": "string",
        "invitationState": "accepted",
        "clientRoleIds": [
          "string"
        ],
        "inviterName": "string",
        "declinedAt": 0,
        "organizationId": "string",
        "groupIds": [
          "string"
        ],
        "recipientName": "string",
        "id": "string",
        "revokedAt": 0,
        "email": "string",
        "invitationScopeInformation": "string"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Inline
    400 - Bad request Bad Request None

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [OrganizationGroupInvitation] false
    » claimedAt - The date-time when this invitation was completed (accepted). integer(int64) false
    » memberWelcomeUrl - URL that is formatted into invitation message delivered to the user. The URL MUST contain this format specifier: ${key}, which is used to inject an invitation token into the link. The token is needed for authorized access to the invitation. string true
    » invitationState - Code describing the state of an invitation. This may be a possible error state that an invitation may be in, e.g. email delivery may have failed and an email address may be reserved at the time of creating an invitation. Equally, declined and accepted state is set into this member. string false
    » clientRoleIds - Optional list with identifiers of client application roles to grant to the invited user. [string] true
    » inviterName - The inviter's name in formatted shape. string true
    » declinedAt - The date-time when this invitation was declined. integer(int64) false
    » organizationId - Identifier of the organization this is the host of this invitation string(uuid) true
    » groupIds - Identifiers of groups to add the invited user to. [string] true
    » recipientName - The recipient's name in formatted shape. string true
    » id - No description string(uuid) true
    » revokedAt - The date-time when this invitation was revoked. integer(int64) false
    » email - The invited email address string true
    » invitationScopeInformation - Informative description about where / what the recipient is invited to. This description is intended for communication from the inviter to the invitee. string false

    Enumerated Values

    Property Value
    invitationState accepted
    invitationState badInvitationData
    invitationState created
    invitationState declined
    invitationState deliveryFailed
    invitationState deliveryRequested
    invitationState emailNotAvailable
    invitationState revoked

    Get organization.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId} \
      -H 'Accept: application/json'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId} HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organizations/{organizationId}

    Get organization by id.

    Parameters

    Parameter In Type Required
    organizationId - The organization id path string(uuid) true

    Example responses

    {
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Organization
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Delete Organization.

    Code samples

    curl -X DELETE http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}
    
    DELETE http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId} HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}',
      method: 'delete',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}',
      {
        method: 'DELETE'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.delete 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.delete('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    DELETE /organizations/{organizationId}

    Delete Organization by id.

    Parameters

    Parameter In Type Required
    organizationId - The organization id path string(uuid) true

    Responses

    Status Meaning Schema
    204 - Deleting the organization was successful No Content None
    400 - Bad request Bad Request None

    Create new invitation and send it by email to the recipient.

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/send \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    POST http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/send HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/send',
      method: 'post',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "memberWelcomeUrl": "string",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "email": "string",
      "invitationScopeInformation": "string"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/send',
      {
        method: 'POST',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/send',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/send',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/send");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /organization-group-invitations/send

    Create new invitation and send it by email to the recipient so the recipientcan can accept / decline the invitation. Note that the caller is responsible for defining the member welcome URL and placeholder for the invitation token. As the recipient follows through acceptance / declining procedure (email -> link click -> land on member welcome URL), the invitation token is kept intact and it will be present as part of the member welcome URL in the same position where the caller originally places the invitation token format specifier.

    Body parameter

    {
      "memberWelcomeUrl": "string",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "email": "string",
      "invitationScopeInformation": "string"
    }
    

    Parameters

    Parameter In Type Required
    body - No description body OrganizationGroupInvitation true

    Example responses

    {
      "technicalError": "string",
      "resultCode": "string",
      "id": "string"
    }
    

    Responses

    Status Meaning Schema
    201 - successful operation Created SendEmailResult

    List open invitations.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organization/{organizationId}/group-invitations/open \
      -H 'Accept: application/json' \
      -H 'offset: 0' \
      -H 'limit: 25' \
      -H 'order: string' \
      -H 'asc: false'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organization/{organizationId}/group-invitations/open HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    offset: 0
    limit: 25
    order: string
    asc: false
    
    var headers = {
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization/{organizationId}/group-invitations/open',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization/{organizationId}/group-invitations/open',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json',
      'offset' => '0',
      'limit' => '25',
      'order' => 'string',
      'asc' => 'false'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organization/{organizationId}/group-invitations/open',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json',
      'offset': '0',
      'limit': '25',
      'order': 'string',
      'asc': 'false'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organization/{organizationId}/group-invitations/open',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization/{organizationId}/group-invitations/open");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organization/{organizationId}/group-invitations/open

    List open invitations within scope of the specified organization (ones that have not been accepted, declined and not revoked.

    Parameters

    Parameter In Type Required
    offset - Index of the first item to include in the result header integer(int64) false
    limit - Maximum result set size header integer(int32) false
    order - Name of field to use for sorting the results header string false
    asc - Determines if sort order is ascending (true) or descending (false) header boolean false
    organizationId - The organization id path string(uuid) true

    Example responses

    [
      {
        "claimedAt": 0,
        "memberWelcomeUrl": "string",
        "invitationState": "accepted",
        "clientRoleIds": [
          "string"
        ],
        "inviterName": "string",
        "declinedAt": 0,
        "organizationId": "string",
        "groupIds": [
          "string"
        ],
        "recipientName": "string",
        "id": "string",
        "revokedAt": 0,
        "email": "string",
        "invitationScopeInformation": "string"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - List request understood and processed. OK Inline

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [OrganizationGroupInvitation] false
    » claimedAt - The date-time when this invitation was completed (accepted). integer(int64) false
    » memberWelcomeUrl - URL that is formatted into invitation message delivered to the user. The URL MUST contain this format specifier: ${key}, which is used to inject an invitation token into the link. The token is needed for authorized access to the invitation. string true
    » invitationState - Code describing the state of an invitation. This may be a possible error state that an invitation may be in, e.g. email delivery may have failed and an email address may be reserved at the time of creating an invitation. Equally, declined and accepted state is set into this member. string false
    » clientRoleIds - Optional list with identifiers of client application roles to grant to the invited user. [string] true
    » inviterName - The inviter's name in formatted shape. string true
    » declinedAt - The date-time when this invitation was declined. integer(int64) false
    » organizationId - Identifier of the organization this is the host of this invitation string(uuid) true
    » groupIds - Identifiers of groups to add the invited user to. [string] true
    » recipientName - The recipient's name in formatted shape. string true
    » id - No description string(uuid) true
    » revokedAt - The date-time when this invitation was revoked. integer(int64) false
    » email - The invited email address string true
    » invitationScopeInformation - Informative description about where / what the recipient is invited to. This description is intended for communication from the inviter to the invitee. string false

    Enumerated Values

    Property Value
    invitationState accepted
    invitationState badInvitationData
    invitationState created
    invitationState declined
    invitationState deliveryFailed
    invitationState deliveryRequested
    invitationState emailNotAvailable
    invitationState revoked

    Revokes an invitation.

    Code samples

    curl -X PUT http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/revoke \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    PUT http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/revoke HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/revoke',
      method: 'put',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "memberWelcomeUrl": "string",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "email": "string",
      "invitationScopeInformation": "string"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/revoke',
      {
        method: 'PUT',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.put 'http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/revoke',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.put('http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/revoke',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-group-invitations/revoke");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    PUT /organization-group-invitations/revoke

    Revokes an invitation, which means that a previously delivered email and the link in it can not longer be used.

    Body parameter

    {
      "memberWelcomeUrl": "string",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "email": "string",
      "invitationScopeInformation": "string"
    }
    

    Parameters

    Parameter In Type Required
    body - No description body OrganizationGroupInvitation true

    Example responses

    {
      "claimedAt": 0,
      "memberWelcomeUrl": "string",
      "invitationState": "accepted",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "declinedAt": 0,
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "revokedAt": 0,
      "email": "string",
      "invitationScopeInformation": "string"
    }
    

    Responses

    Status Meaning Schema
    201 - successful operation Created OrganizationGroupInvitation

    Get organization user.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/users/{userId} \
      -H 'Accept: application/json'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/users/{userId} HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/users/{userId}',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/users/{userId}',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/users/{userId}',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/users/{userId}',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/users/{userId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organizations/{organizationId}/users/{userId}

    Get an organization user (member).

    Parameters

    Parameter In Type Required
    organizationId - The organization id path string(uuid) true
    userId - The user id path string(uuid) true

    Example responses

    {
      "firstName": "string",
      "lastName": "string",
      "validUntil": "2017-12-31T23:59:59.123Z",
      "id": "string",
      "validFrom": "2017-12-31T23:59:59.123Z",
      "email": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - successful operation OK User
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    user

    Get user info.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//user-info/{userId} \
      -H 'Accept: application/json'
    
    GET http://id.10duke.com:443/api/idp/v.exp//user-info/{userId} HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//user-info/{userId}',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//user-info/{userId}',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//user-info/{userId}',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//user-info/{userId}',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//user-info/{userId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /user-info/{userId}

    Get user info by user id

    Parameters

    Parameter In Type Required
    userId - Id of user that needs to be fetched path string(uuid) true

    Example responses

    {
      "firstName": "string",
      "lastName": "string",
      "address": {
        "country": "string",
        "streetAddress": "string",
        "formatted": "string",
        "postalCode": "string",
        "locality": "string",
        "id": "string",
        "region": "string"
      },
      "phoneNumber": "string",
      "preferredUsername": "string",
      "nickname": "string",
      "validUntil": "2017-12-31T23:59:59.123Z",
      "id": "string",
      "validFrom": "2017-12-31T23:59:59.123Z",
      "picture": "string",
      "email": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - successful operation OK UserInfo
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Verifies the user's OTP-credential.

    Code samples

    curl -X PUT http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp/verify \
      -H 'Content-Type: application/json'
    
    PUT http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp/verify HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    
    var headers = {
      'Content-Type':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp/verify',
      method: 'put',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '[
      "string"
    ]';
    const headers = { 
      'Content-Type':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp/verify',
      {
        method: 'PUT',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json'
    }
    result = RestClient.put 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp/verify',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json'
    }
    r = requests.put('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp/verify',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp/verify");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    PUT /users/{userId}/security/totp/verify

    Verifying activates user's OTP-credential. The credential is not in use until it has been successfully verified. To verify the credential the user must provide two correct consecutive passcodes for the OTP-credential. This is to protect user from getting locked out of his account with incorrectly initialized credential.

    Body parameter

    [
      "string"
    ]
    

    Parameters

    Parameter In Type Required
    userId - Id of the user path string(uuid) true
    body - No description body array[string] true

    Responses

    Status Meaning Schema
    201 - Verifying the OTP credential was successful Created None
    400 - Bad request Bad Request None
    404 - User or credential not found Not Found None

    List user info

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//user-info \
      -H 'Accept: application/json' \
      -H 'offset: 0' \
      -H 'limit: 25' \
      -H 'order: string' \
      -H 'asc: false'
    
    GET http://id.10duke.com:443/api/idp/v.exp//user-info HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    offset: 0
    limit: 25
    order: string
    asc: false
    
    var headers = {
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//user-info',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//user-info',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json',
      'offset' => '0',
      'limit' => '25',
      'order' => 'string',
      'asc' => 'false'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//user-info',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json',
      'offset': '0',
      'limit': '25',
      'order': 'string',
      'asc': 'false'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//user-info',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//user-info");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /user-info

    List all user info, pagination is recommended.

    Parameters

    Parameter In Type Required
    offset - Index of the first item to include in the result header integer(int64) false
    limit - Maximum result set size header integer(int32) false
    order - Name of field to use for sorting the results header string false
    asc - Determines if sort order is ascending (true) or descending (false) header boolean false

    Example responses

    [
      {
        "firstName": "string",
        "lastName": "string",
        "address": {
          "country": "string",
          "streetAddress": "string",
          "formatted": "string",
          "postalCode": "string",
          "locality": "string",
          "id": "string",
          "region": "string"
        },
        "phoneNumber": "string",
        "preferredUsername": "string",
        "nickname": "string",
        "validUntil": "2017-12-31T23:59:59.123Z",
        "id": "string",
        "validFrom": "2017-12-31T23:59:59.123Z",
        "picture": "string",
        "email": "string"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Inline
    400 - Bad request Bad Request None

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [UserInfo] false
    » firstName - The user's first name (given name). The first name is formal and is considered to be personal and sensitive user information. string true
    » lastName - The user's last name (family name). The last name is formal and is considered to be personal and sensitive user information. string true
    » address - No description Address false
    »» country - No description string false
    »» streetAddress - No description string false
    »» formatted - No description string false
    »» postalCode - No description string false
    »» locality - No description string false
    »» id - No description string(uuid) true
    »» region - No description string false
    » phoneNumber - End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +358 (9) 687 2400. If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax for example, +1 (604) 555-1234;ext=5678. string false
    » preferredUsername - Shorthand name by which the End-User wishes to be referred to in the service, such as janedoe or j.doe. This value may not be unique. string false
    » nickname - The user's nick name. Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael. string false
    » validUntil - The valid until date time. string false
    » id - No description string(uuid) true
    » validFrom - The valid from date time. string false
    » picture - URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file), rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User. string false
    » email - The user's primary registsred email address (contact information). The email is formal and is considered personal and sensitive user information. string true

    Get recovery email.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId} \
      -H 'Accept: application/json'
    
    GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId} HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /users/{userId}/recovery-emails/{emailId}

    Get recovery email by id.

    Parameters

    Parameter In Type Required
    userId - Id of user who owns the recovery email path string(uuid) true
    emailId - The recovery email id path string(uuid) true

    Example responses

    {
      "id": "string",
      "value": "string",
      "validatedAt": "2016-12-31T23:59:59.123Z"
    }
    

    Responses

    Status Meaning Schema
    200 - successful operation OK RecoveryEmail
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Delete user recovery email.

    Code samples

    curl -X DELETE http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}
    
    DELETE http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId} HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}',
      method: 'delete',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}',
      {
        method: 'DELETE'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.delete 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.delete('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    DELETE /users/{userId}/recovery-emails/{emailId}

    Delete user recovery email by id.

    Parameters

    Parameter In Type Required
    userId - The user id path string(uuid) true
    emailId - Id of the email to retrieve path string(uuid) true

    Responses

    Status Meaning Schema
    204 - Deleting the recover email was successful No Content None
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    List organizations a user is a member in.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organizations \
      -H 'Accept: application/json' \
      -H 'offset: 0' \
      -H 'limit: 25' \
      -H 'order: string' \
      -H 'asc: false'
    
    GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organizations HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    offset: 0
    limit: 25
    order: string
    asc: false
    
    var headers = {
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organizations',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organizations',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json',
      'offset' => '0',
      'limit' => '25',
      'order' => 'string',
      'asc' => 'false'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organizations',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json',
      'offset': '0',
      'limit': '25',
      'order': 'string',
      'asc': 'false'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organizations',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organizations");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /users/{userId}/organizations

    List all organizations a user is a member in through organization group connections.

    Parameters

    Parameter In Type Required
    offset - Index of the first item to include in the result header integer(int64) false
    limit - Maximum result set size header integer(int32) false
    order - Name of field to use for sorting the results header string false
    asc - Determines if sort order is ascending (true) or descending (false) header boolean false
    filter - String to use for filtering the results query string false
    userId - The user id path string(uuid) true

    Example responses

    [
      {
        "name": "string",
        "description": "string",
        "id": "string",
        "type": "string"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Inline
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [Organization] false
    » name - The Organization's name (e.g. company name). The name does not imply formality and may be used in presentation if feasible. string true
    » description - The Organization's description. The description does not imply formality and may be used in presentation if feasible. string false
    » id - No description string(uuid) true
    » type - The Organization's type. The type is formal and is used by application logic. Predefined reserved type values are: company, enterprise and project. string false

    Assign an organization roles to user.

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles \
      -H 'Content-Type: application/json'
    
    POST http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    
    var headers = {
      'Content-Type':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles',
      method: 'post',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '[
      "string"
    ]';
    const headers = { 
      'Content-Type':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles',
      {
        method: 'POST',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json'
    }
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json'
    }
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /users/{userId}/organization-roles

    Assign an organization roles to user.

    Body parameter

    [
      "string"
    ]
    

    Parameters

    Parameter In Type Required
    userId - The user id path string(uuid) true
    body - Identifiers specifying the roles to assign body array[string] true

    Responses

    Status Meaning Schema
    201 - Assigning the role was successful Created None
    400 - Bad request Bad Request None

    List users organization roles.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles \
      -H 'Accept: application/json'
    
    GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /users/{userId}/organization-roles

    List organization scoped roles assigned for the user.

    Parameters

    Parameter In Type Required
    userId - Id of user to find organization roles. path string(uuid) true

    Example responses

    {
      "name": "string",
      "description": "string",
      "id": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - successful operation OK OrganizationRole
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Get user.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//users/{userId} \
      -H 'Accept: application/json'
    
    GET http://id.10duke.com:443/api/idp/v.exp//users/{userId} HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//users/{userId}',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /users/{userId}

    Get user by id

    Parameters

    Parameter In Type Required
    userId - Id of user that needs to be fetched path string(uuid) true

    Example responses

    {
      "firstName": "string",
      "lastName": "string",
      "validUntil": "2017-12-31T23:59:59.123Z",
      "id": "string",
      "validFrom": "2017-12-31T23:59:59.123Z",
      "email": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - successful operation OK User
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Delete user.

    Code samples

    curl -X DELETE http://id.10duke.com:443/api/idp/v.exp//users/{userId}
    
    DELETE http://id.10duke.com:443/api/idp/v.exp//users/{userId} HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}',
      method: 'delete',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}',
      {
        method: 'DELETE'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.delete 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.delete('http://id.10duke.com:443/api/idp/v.exp//users/{userId}',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    DELETE /users/{userId}

    Delete user by ID

    Parameters

    Parameter In Type Required
    userId - The user id path string(uuid) true

    Responses

    Status Meaning Schema
    204 - Deleting the user was successful No Content None
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Logs user in

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//sessions \
      -H 'Accept: application/json'
    
    POST http://id.10duke.com:443/api/idp/v.exp//sessions HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//sessions',
      method: 'post',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//sessions',
      {
        method: 'POST',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//sessions',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//sessions',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//sessions");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /sessions

    Example responses

    {
      "challenges": [
        {
          "type": "string"
        }
      ],
      "token": "string"
    }
    
    {
      "challenges": [
        {
          "type": "string"
        }
      ],
      "token": "string"
    }
    

    Responses

    Status Meaning Schema
    201 - Login was successful Created AuthenticationResult
    400 - Bad request Bad Request None
    401 - Login failed or partially succeeded. See the response body. Unauthorized AuthenticationResult

    Logs user out.

    Code samples

    curl -X DELETE http://id.10duke.com:443/api/idp/v.exp//sessions
    
    DELETE http://id.10duke.com:443/api/idp/v.exp//sessions HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//sessions',
      method: 'delete',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//sessions',
      {
        method: 'DELETE'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.delete 'http://id.10duke.com:443/api/idp/v.exp//sessions',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.delete('http://id.10duke.com:443/api/idp/v.exp//sessions',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//sessions");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    DELETE /sessions

    Responses

    Status Meaning Schema
    204 - Successfully logged out No Content None

    Get users organization role by id.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles/{roleId} \
      -H 'Accept: application/json'
    
    GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles/{roleId} HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles/{roleId}',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles/{roleId}',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles/{roleId}',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles/{roleId}',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles/{roleId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /users/{userId}/organization-roles/{roleId}

    Get organization scoped role assigned for the user.

    Parameters

    Parameter In Type Required
    userId - Id of user to find organization roles. path string(uuid) true
    roleId - The role id path string(uuid) true

    Example responses

    {
      "name": "string",
      "description": "string",
      "id": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - successful operation OK OrganizationRole
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Unassign an organization role from a user.

    Code samples

    curl -X DELETE http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles/{roleId}
    
    DELETE http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles/{roleId} HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles/{roleId}',
      method: 'delete',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles/{roleId}',
      {
        method: 'DELETE'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.delete 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles/{roleId}',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.delete('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles/{roleId}',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-roles/{roleId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    DELETE /users/{userId}/organization-roles/{roleId}

    Remove the organization role assignment from a user

    Parameters

    Parameter In Type Required
    userId - The user id path string(uuid) true
    roleId - The role id path string(uuid) true

    Responses

    Status Meaning Schema
    204 - Unassigning the role was successful No Content None
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Create user.

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//users \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    POST http://id.10duke.com:443/api/idp/v.exp//users HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users',
      method: 'post',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "firstName": "string",
      "lastName": "string",
      "validUntil": "2017-12-31T23:59:59.123Z",
      "id": "string",
      "validFrom": "2017-12-31T23:59:59.123Z",
      "email": "string"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users',
      {
        method: 'POST',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//users',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//users',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /users

    Create (register) a new user.

    Body parameter

    {
      "firstName": "string",
      "lastName": "string",
      "validUntil": "2017-12-31T23:59:59.123Z",
      "id": "string",
      "validFrom": "2017-12-31T23:59:59.123Z",
      "email": "string"
    }
    

    Parameters

    Parameter In Type Required
    body - No description body User true

    Example responses

    {
      "firstName": "string",
      "lastName": "string",
      "validUntil": "2017-12-31T23:59:59.123Z",
      "id": "string",
      "validFrom": "2017-12-31T23:59:59.123Z",
      "email": "string"
    }
    

    Responses

    Status Meaning Schema
    201 - Creating the user was successful Created User
    400 - Bad request Bad Request None

    List users

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//users \
      -H 'Accept: application/json' \
      -H 'offset: 0' \
      -H 'limit: 25' \
      -H 'order: string' \
      -H 'asc: false'
    
    GET http://id.10duke.com:443/api/idp/v.exp//users HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    offset: 0
    limit: 25
    order: string
    asc: false
    
    var headers = {
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json',
      'offset' => '0',
      'limit' => '25',
      'order' => 'string',
      'asc' => 'false'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//users',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json',
      'offset': '0',
      'limit': '25',
      'order': 'string',
      'asc': 'false'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//users',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /users

    List all users, pagination is recommended.

    Parameters

    Parameter In Type Required
    offset - Index of the first item to include in the result header integer(int64) false
    limit - Maximum result set size header integer(int32) false
    order - Name of field to use for sorting the results header string false
    asc - Determines if sort order is ascending (true) or descending (false) header boolean false

    Example responses

    [
      {
        "firstName": "string",
        "lastName": "string",
        "validUntil": "2017-12-31T23:59:59.123Z",
        "id": "string",
        "validFrom": "2017-12-31T23:59:59.123Z",
        "email": "string"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Inline
    400 - Bad request Bad Request None

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [User] false
    » firstName - The user's first name (given name). The first name is formal and is considered to be personal and sensitive user information. string true
    » lastName - The user's last name (family name). The last name is formal and is considered to be personal and sensitive user information. string true
    » validUntil - The valid until date time. string false
    » id - No description string(uuid) true
    » validFrom - The valid from date time. string false
    » email - The user's primary registsred email address (contact information). The email is formal and is considered personal and sensitive user information. string true

    Replace user.

    Code samples

    curl -X PUT http://id.10duke.com:443/api/idp/v.exp//users \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    PUT http://id.10duke.com:443/api/idp/v.exp//users HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users',
      method: 'put',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "firstName": "string",
      "lastName": "string",
      "validUntil": "2017-12-31T23:59:59.123Z",
      "id": "string",
      "validFrom": "2017-12-31T23:59:59.123Z",
      "email": "string"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users',
      {
        method: 'PUT',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.put 'http://id.10duke.com:443/api/idp/v.exp//users',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.put('http://id.10duke.com:443/api/idp/v.exp//users',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    PUT /users

    Replace user information with new data.

    Body parameter

    {
      "firstName": "string",
      "lastName": "string",
      "validUntil": "2017-12-31T23:59:59.123Z",
      "id": "string",
      "validFrom": "2017-12-31T23:59:59.123Z",
      "email": "string"
    }
    

    Parameters

    Parameter In Type Required
    body - No description body User true

    Example responses

    {
      "firstName": "string",
      "lastName": "string",
      "validUntil": "2017-12-31T23:59:59.123Z",
      "id": "string",
      "validFrom": "2017-12-31T23:59:59.123Z",
      "email": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - Replacing the user was successful OK User
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Create new email validation token.

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/challenges \
      -H 'Accept: application/json'
    
    POST http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/challenges HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/challenges',
      method: 'post',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/challenges',
      {
        method: 'POST',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/challenges',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/challenges',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/challenges");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /users/{userId}/recovery-emails/{emailId}/challenges

    Create new validation token, which may be used in an external process involving e.g. email as a channel of validating a recovery email (link in email pointing back into context that uses this API to complete verifying the email).

    Parameters

    Parameter In Type Required
    userId - The user id path string(uuid) true
    emailId - Id of the email to start validation for path string(uuid) true

    Example responses

    {
      "token": "string"
    }
    

    Responses

    Status Meaning Schema
    201 - successful operation Created EmailChallengeToken

    Complete validating a recovery email.

    Code samples

    curl -X PUT http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/challenges \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    PUT http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/challenges HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/challenges',
      method: 'put',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "token": "string"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/challenges',
      {
        method: 'PUT',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.put 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/challenges',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.put('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/challenges',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/challenges");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    PUT /users/{userId}/recovery-emails/{emailId}/challenges

    Marks a recovery email as valid with the expectations that the caller has verified that the user was able to receive an email sent to the address originally provided by the user.

    Body parameter

    {
      "token": "string"
    }
    

    Parameters

    Parameter In Type Required
    userId - The user id path string(uuid) true
    emailId - Id of the email to complete validate for path string(uuid) true
    body - The token (secret) originally provided for the validation process body EmailChallengeToken true

    Example responses

    {
      "token": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - Validating the recovery email was successful. Returns the updated email object OK EmailChallengeToken
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Creates OTP-credential for the user

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp \
      -H 'Accept: application/json'
    
    POST http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp',
      method: 'post',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp',
      {
        method: 'POST',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /users/{userId}/security/totp

    Expanding QR code generates Base64-encoded PNG-image of the QR code and embeds this to the response. This could be used to save network roundtrips.

    Parameters

    Parameter In Type Required
    userId - Id of the user path string(uuid) true
    expand - Expand related resources. Currently only supported value is qrCode (eg. ?expand=qrCode). query array[string] false

    Enumerated Values

    Parameter Value
    expand qrCode

    Example responses

    {
      "keyUri": "http://example.com",
      "qrCode": "string",
      "verified": true,
      "secret": "string"
    }
    

    Responses

    Status Meaning Schema
    201 - Generating the QR code was successful Created OtpCredential
    400 - Bad request Bad Request None
    404 - User not found Not Found None
    500 - Generating the QR code failed Internal Server Error None

    Returns the user's OTP-credential

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp \
      -H 'Accept: application/json'
    
    GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /users/{userId}/security/totp

    Expanding QR code generates Base64-encoded PNG-image of the QR code and embeds this to the response. This could be used to save network roundtrips.

    Parameters

    Parameter In Type Required
    userId - Id of the user path string(uuid) true
    expand - Expand related resources. Currently only supported value is qrCode (eg. ?expand=qrCode). query array[string] false

    Enumerated Values

    Parameter Value
    expand qrCode

    Example responses

    {
      "keyUri": "http://example.com",
      "qrCode": "string",
      "verified": true,
      "secret": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - successful operation OK OtpCredential
    400 - Bad request Bad Request None
    404 - User or credential not found Not Found None
    500 - Generation of QR code failed Internal Server Error None

    Delete user's OTP-credential

    Code samples

    curl -X DELETE http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp
    
    DELETE http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp',
      method: 'delete',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp',
      {
        method: 'DELETE'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.delete 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.delete('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    DELETE /users/{userId}/security/totp

    Parameters

    Parameter In Type Required
    userId - Id of the user path string(uuid) true

    Responses

    Status Meaning Schema
    204 - Deleting OTP credential was successful No Content None
    400 - Bad request Bad Request None
    404 - User or credential not found Not Found None

    Create new validation token and send verification email.

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/send-validation?verificationUrl=string \
      -H 'Accept: application/json'
    
    POST http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/send-validation?verificationUrl=string HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/send-validation',
      method: 'post',
      data: '?verificationUrl=string',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/send-validation?verificationUrl=string',
      {
        method: 'POST',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/send-validation',
      params: {
        'verificationUrl' => 'string'
      },
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/send-validation',
      params = {
        'verificationUrl': 'string'},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails/{emailId}/send-validation?verificationUrl=string");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /users/{userId}/recovery-emails/{emailId}/send-validation

    Create new email validation token and send email so the email owner can verify the adddress.

    Parameters

    Parameter In Type Required
    userId - The user id path string(uuid) true
    emailId - Id of the email to start validation for path string(uuid) true
    verificationUrl - URL template, which will be formatted with the verification secret. Format key is: ${key}: example: https:.../url/path/${key} query string true

    Example responses

    {
      "technicalError": "string",
      "resultCode": "string",
      "id": "string"
    }
    

    Responses

    Status Meaning Schema
    201 - successful operation Created SendEmailResult

    List users organization groups.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups \
      -H 'Accept: application/json' \
      -H 'offset: 0' \
      -H 'limit: 25' \
      -H 'order: string' \
      -H 'asc: false'
    
    GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    offset: 0
    limit: 25
    order: string
    asc: false
    
    var headers = {
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json',
      'offset' => '0',
      'limit' => '25',
      'order' => 'string',
      'asc' => 'false'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json',
      'offset': '0',
      'limit': '25',
      'order': 'string',
      'asc': 'false'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /users/{userId}/organization-groups

    List organization groups that the user is a member in.

    Parameters

    Parameter In Type Required
    offset - Index of the first item to include in the result header integer(int64) false
    limit - Maximum result set size header integer(int32) false
    order - Name of field to use for sorting the results header string false
    asc - Determines if sort order is ascending (true) or descending (false) header boolean false
    filter - String to use for filtering the results query string false
    userId - The user id path string(uuid) true

    Example responses

    [
      {
        "name": "string",
        "description": "string",
        "id": "string",
        "type": "string"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Inline
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [OrganizationGroup] false
    » name - The groups's name. The name does not imply formality and may be used in presentation if feasible. string true
    » description - The group's description. The description does not imply formality and may be used in presentation if feasible. string false
    » id - No description string(uuid) true
    » type - The groups's type. The type is formal and is used by application logic. Predefined reserved type values are: employees, enterpriseEmployees and licenseConsumers. string false

    Create recovery email.

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    POST http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails',
      method: 'post',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "id": "string",
      "value": "string",
      "validatedAt": "2016-12-31T23:59:59.123Z"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails',
      {
        method: 'POST',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /users/{userId}/recovery-emails

    Create a new recovery email address for the user.

    Body parameter

    {
      "id": "string",
      "value": "string",
      "validatedAt": "2016-12-31T23:59:59.123Z"
    }
    

    Parameters

    Parameter In Type Required
    userId - The user id path string(uuid) true
    body - No description body RecoveryEmail true

    Example responses

    {
      "id": "string",
      "value": "string",
      "validatedAt": "2016-12-31T23:59:59.123Z"
    }
    

    Responses

    Status Meaning Schema
    201 - Creating the recover email was successful Created RecoveryEmail
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    List user recovery emails

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails \
      -H 'Accept: application/json'
    
    GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /users/{userId}/recovery-emails

    List user recovery emails

    Parameters

    Parameter In Type Required
    userId - The user id path string(uuid) true

    Example responses

    [
      {
        "id": "string",
        "value": "string",
        "validatedAt": "2016-12-31T23:59:59.123Z"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Inline

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [RecoveryEmail] false
    » id - No description string(uuid) true
    » value - email address string false
    » validatedAt - Timestamp (as ISO-8601) when email was validated string false

    Replace recovery email.

    Code samples

    curl -X PUT http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    PUT http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails',
      method: 'put',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "id": "string",
      "value": "string",
      "validatedAt": "2016-12-31T23:59:59.123Z"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails',
      {
        method: 'PUT',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.put 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.put('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/recovery-emails");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    PUT /users/{userId}/recovery-emails

    Replace recovery email.

    Body parameter

    {
      "id": "string",
      "value": "string",
      "validatedAt": "2016-12-31T23:59:59.123Z"
    }
    

    Parameters

    Parameter In Type Required
    userId - The user id path string(uuid) true
    body - No description body RecoveryEmail true

    Example responses

    {
      "id": "string",
      "value": "string",
      "validatedAt": "2016-12-31T23:59:59.123Z"
    }
    

    Responses

    Status Meaning Schema
    200 - Replacing the recover email was successful OK RecoveryEmail
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Add a user to an organization group

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups/{groupId}
    
    POST http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups/{groupId} HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups/{groupId}',
      method: 'post',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups/{groupId}',
      {
        method: 'POST'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups/{groupId}',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups/{groupId}',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups/{groupId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /users/{userId}/organization-groups/{groupId}

    Add a user to an organization group. Note: duplicate group members are not allowed.

    Parameters

    Parameter In Type Required
    userId - The user id path string(uuid) true
    groupId - The group id path string(uuid) true

    Responses

    Status Meaning Schema
    201 - Adding the user to the group was successful Created None
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Remove user from an organization group.

    Code samples

    curl -X DELETE http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups/{groupId}
    
    DELETE http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups/{groupId} HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups/{groupId}',
      method: 'delete',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups/{groupId}',
      {
        method: 'DELETE'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.delete 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups/{groupId}',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.delete('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups/{groupId}',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/organization-groups/{groupId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    DELETE /users/{userId}/organization-groups/{groupId}

    Remove user from an organization group.

    Parameters

    Parameter In Type Required
    userId - The user id path string(uuid) true
    groupId - The group id path string(uuid) true

    Responses

    Status Meaning Schema
    200 - Removing the the user from the group was successful OK None
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Returns the user's OTP-credential as an image (QR-code).

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp/qr
    
    GET http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp/qr HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp/qr',
      method: 'get',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp/qr',
      {
        method: 'GET'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp/qr',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp/qr',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//users/{userId}/security/totp/qr");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /users/{userId}/security/totp/qr

    Parameters

    Parameter In Type Required
    userId - Id of the user path string(uuid) true

    Responses

    Status Meaning Schema
    200 - Success. OK None
    400 - Bad request Bad Request None
    404 - User or credential not found Not Found None
    500 - Generating the QR code failed Internal Server Error None

    organization-group

    Add multiple users to an organization group

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users \
      -H 'Content-Type: application/json'
    
    POST http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    
    var headers = {
      'Content-Type':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      method: 'post',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '[
      "string"
    ]';
    const headers = { 
      'Content-Type':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      {
        method: 'POST',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json'
    }
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json'
    }
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /organizations/{organizationId}/groups/{groupId}/users

    Add multiple users to an organization group. Specify a list (array) of user identifiers as request body. Note that duplicate members are not allowed.

    Body parameter

    [
      "string"
    ]
    

    Parameters

    Parameter In Type Required
    organizationId - The organization id path string(uuid) true
    groupId - The group id path string(uuid) true
    body - List of identifiers specifying the users to add as members body array[string] true

    Responses

    Status Meaning Schema
    201 - Adding the specified users to the group was successful. Created None
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Get organization group members

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users \
      -H 'Accept: application/json' \
      -H 'offset: 0' \
      -H 'limit: 25' \
      -H 'order: string' \
      -H 'asc: false'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    offset: 0
    limit: 25
    order: string
    asc: false
    
    var headers = {
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json',
      'offset' => '0',
      'limit' => '25',
      'order' => 'string',
      'asc' => 'false'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json',
      'offset': '0',
      'limit': '25',
      'order': 'string',
      'asc': 'false'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organizations/{organizationId}/groups/{groupId}/users

    Parameters

    Parameter In Type Required
    offset - Index of the first item to include in the result header integer(int64) false
    limit - Maximum result set size header integer(int32) false
    order - Name of field to use for sorting the results header string false
    asc - Determines if sort order is ascending (true) or descending (false) header boolean false
    filter - String to use for filtering the results query string false
    organizationId - The organization id path string(uuid) true
    groupId - The group id path string(uuid) true

    Example responses

    [
      {
        "firstName": "string",
        "lastName": "string",
        "validUntil": "2017-12-31T23:59:59.123Z",
        "id": "string",
        "validFrom": "2017-12-31T23:59:59.123Z",
        "email": "string"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Inline
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [User] false
    » firstName - The user's first name (given name). The first name is formal and is considered to be personal and sensitive user information. string true
    » lastName - The user's last name (family name). The last name is formal and is considered to be personal and sensitive user information. string true
    » validUntil - The valid until date time. string false
    » id - No description string(uuid) true
    » validFrom - The valid from date time. string false
    » email - The user's primary registsred email address (contact information). The email is formal and is considered personal and sensitive user information. string true

    Remove members from group.

    Code samples

    curl -X DELETE http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users
    
    DELETE http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      method: 'delete',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      {
        method: 'DELETE'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.delete 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.delete('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    DELETE /organizations/{organizationId}/groups/{groupId}/users

    Removes set of users from group. Specify a list (array) of user identifiers as request body.

    Parameters

    Parameter In Type Required
    organizationId - The organization id path string(uuid) true
    groupId - The group id path string(uuid) true

    Responses

    Status Meaning Schema
    200 - Removing the specified users from the group was successful. OK None
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Set members in a group.

    Code samples

    curl -X PUT http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users
    
    PUT http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      method: 'put',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      {
        method: 'PUT'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.put 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.put('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    PUT /organizations/{organizationId}/groups/{groupId}/users

    Replaces all current members with new ones. Specify a list (array) of user identifiers as request body. To remove all members, PUT empty array of userIds to group.

    Parameters

    Parameter In Type Required
    organizationId - The organization id path string(uuid) true
    groupId - The group id path string(uuid) true

    Responses

    Status Meaning Schema
    200 - Setting the users to the group was successful. OK None
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Add a user to an organization group

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}
    
    POST http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId} HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}',
      method: 'post',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}',
      {
        method: 'POST'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /organizations/{organizationId}/groups/{groupId}/users/{userId}

    Add a user to an organization group. Note that duplicate members are not allowed.

    Parameters

    Parameter In Type Required
    organizationId - The organization id path string(uuid) true
    groupId - The group id path string(uuid) true
    userId - Id of user to add path string(uuid) true

    Responses

    Status Meaning Schema
    201 - Adding the user to the group was successful. Created None
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Get user from an organization group

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId} \
      -H 'Accept: application/json'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId} HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organizations/{organizationId}/groups/{groupId}/users/{userId}

    Get user from an organization group.A 404 status means the user is not a member in the group, the group does not exist, or the user does not exist.

    Parameters

    Parameter In Type Required
    organizationId - The organization id path string(uuid) true
    groupId - The group id path string(uuid) true
    userId - Id of the user to get path string(uuid) true

    Example responses

    {
      "firstName": "string",
      "lastName": "string",
      "validUntil": "2017-12-31T23:59:59.123Z",
      "id": "string",
      "validFrom": "2017-12-31T23:59:59.123Z",
      "email": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - successful operation OK User
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Remove user from group.

    Code samples

    curl -X DELETE http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}
    
    DELETE http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId} HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}',
      method: 'delete',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}',
      {
        method: 'DELETE'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.delete 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.delete('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}/users/{userId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    DELETE /organizations/{organizationId}/groups/{groupId}/users/{userId}

    Removes a member from the group.

    Parameters

    Parameter In Type Required
    organizationId - The organization id path string(uuid) true
    groupId - The group id path string(uuid) true
    userId - Id of user to remove path string(uuid) true

    Responses

    Status Meaning Schema
    200 - Removing the user from the group was successful. OK None
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Get organization group.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId} \
      -H 'Accept: application/json'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId} HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organizations/{organizationId}/groups/{groupId}

    Get organization group by id.

    Parameters

    Parameter In Type Required
    organizationId - The organization id path string(uuid) true
    groupId - The group id path string(uuid) true

    Example responses

    {
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - successful operation OK OrganizationGroup
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Delete group.

    Code samples

    curl -X DELETE http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}
    
    DELETE http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId} HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}',
      method: 'delete',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}',
      {
        method: 'DELETE'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.delete 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.delete('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups/{groupId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    DELETE /organizations/{organizationId}/groups/{groupId}

    Delete group by id.

    Parameters

    Parameter In Type Required
    organizationId - The organization id path string(uuid) true
    groupId - Id of the group to delete path string(uuid) true

    Responses

    Status Meaning Schema
    204 - Deleting the the group was successful. No Content None
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Create (add) a group to an organization

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups \
      -H 'Content-Type: application/json'
    
    POST http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    
    var headers = {
      'Content-Type':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups',
      method: 'post',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }';
    const headers = { 
      'Content-Type':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups',
      {
        method: 'POST',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json'
    }
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json'
    }
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /organizations/{organizationId}/groups

    Create (add) a group to an organization. Note: duplicate groups (name) are not allowed.

    Body parameter

    {
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }
    

    Parameters

    Parameter In Type Required
    organizationId - The organization id path string(uuid) true
    body - No description body OrganizationGroup true

    Responses

    Status Meaning Schema
    201 - Creating the the group was successful. Created None
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    List groups in the organization.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups \
      -H 'Accept: application/json' \
      -H 'offset: 0' \
      -H 'limit: 25' \
      -H 'order: authored' \
      -H 'asc: false'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    offset: 0
    limit: 25
    order: authored
    asc: false
    
    var headers = {
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'authored',
      'asc':'false'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'authored',
      'asc':'false'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json',
      'offset' => '0',
      'limit' => '25',
      'order' => 'authored',
      'asc' => 'false'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json',
      'offset': '0',
      'limit': '25',
      'order': 'authored',
      'asc': 'false'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organizations/{organizationId}/groups

    Paging is recommeded when listing groups.

    Parameters

    Parameter In Type Required
    offset - Index of the first item to include in the result header integer(int64) false
    limit - Maximum result set size header integer(int32) false
    order - Name of field to use for sorting the results header string false
    asc - Determines if sort order is ascending (true) or descending (false) header boolean false
    organizationId - The organization id path string(uuid) true

    Example responses

    [
      {
        "name": "string",
        "description": "string",
        "id": "string",
        "type": "string"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Inline
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [OrganizationGroup] false
    » name - The groups's name. The name does not imply formality and may be used in presentation if feasible. string true
    » description - The group's description. The description does not imply formality and may be used in presentation if feasible. string false
    » id - No description string(uuid) true
    » type - The groups's type. The type is formal and is used by application logic. Predefined reserved type values are: employees, enterpriseEmployees and licenseConsumers. string false

    Replace an existing group in given organization

    Code samples

    curl -X PUT http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups \
      -H 'Content-Type: application/json'
    
    PUT http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    
    var headers = {
      'Content-Type':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups',
      method: 'put',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }';
    const headers = { 
      'Content-Type':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups',
      {
        method: 'PUT',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json'
    }
    result = RestClient.put 'http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json'
    }
    r = requests.put('http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organizations/{organizationId}/groups");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    PUT /organizations/{organizationId}/groups

    Replace data of a group in given organization.

    Body parameter

    {
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }
    

    Parameters

    Parameter In Type Required
    organizationId - The organization id path string(uuid) true
    body - No description body OrganizationGroup true

    Responses

    Status Meaning Schema
    200 - Replacing the the group was successful. OK None
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    organization-role

    Get organization role.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organization-roles/{roleId} \
      -H 'Accept: application/json'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organization-roles/{roleId} HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    
    var headers = {
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-roles/{roleId}',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-roles/{roleId}',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organization-roles/{roleId}',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organization-roles/{roleId}',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-roles/{roleId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organization-roles/{roleId}

    Get organization role by id.

    Parameters

    Parameter In Type Required
    roleId - The organization role id path string(uuid) true

    Example responses

    {
      "name": "string",
      "description": "string",
      "id": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - successful operation OK OrganizationRole
    400 - Bad request Bad Request None
    404 - The resource was not found Not Found None

    Delete Organization role.

    Code samples

    curl -X DELETE http://id.10duke.com:443/api/idp/v.exp//organization-roles/{roleId}
    
    DELETE http://id.10duke.com:443/api/idp/v.exp//organization-roles/{roleId} HTTP/1.1
    Host: id.10duke.com:443
    
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-roles/{roleId}',
      method: 'delete',
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-roles/{roleId}',
      {
        method: 'DELETE'
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    
    
    result = RestClient.delete 'http://id.10duke.com:443/api/idp/v.exp//organization-roles/{roleId}',
      params: {}p JSON.parse(result)
    
    import requests
    
    
    r = requests.delete('http://id.10duke.com:443/api/idp/v.exp//organization-roles/{roleId}',
      params = {})
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-roles/{roleId}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    DELETE /organization-roles/{roleId}

    Delete Organization role by id.

    Parameters

    Parameter In Type Required
    roleId - The role id path string(uuid) true

    Responses

    Status Meaning Schema
    204 - Deleting the organization role was successful No Content None
    400 - Bad request Bad Request None

    Create organization role.

    Code samples

    curl -X POST http://id.10duke.com:443/api/idp/v.exp//organization-roles \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    POST http://id.10duke.com:443/api/idp/v.exp//organization-roles HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-roles',
      method: 'post',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "name": "string",
      "description": "string",
      "id": "string"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-roles',
      {
        method: 'POST',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.post 'http://id.10duke.com:443/api/idp/v.exp//organization-roles',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.post('http://id.10duke.com:443/api/idp/v.exp//organization-roles',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-roles");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    POST /organization-roles

    Create a new organization role. Note: organization role names must be unique.

    Body parameter

    {
      "name": "string",
      "description": "string",
      "id": "string"
    }
    

    Parameters

    Parameter In Type Required
    body - No description body OrganizationRole true

    Example responses

    {
      "name": "string",
      "description": "string",
      "id": "string"
    }
    

    Responses

    Status Meaning Schema
    201 - Creating the organization role was successful Created OrganizationRole
    400 - Bad request Bad Request None

    List organization roles.

    Code samples

    curl -X GET http://id.10duke.com:443/api/idp/v.exp//organization-roles \
      -H 'Accept: application/json' \
      -H 'offset: 0' \
      -H 'limit: 25' \
      -H 'order: string' \
      -H 'asc: false'
    
    GET http://id.10duke.com:443/api/idp/v.exp//organization-roles HTTP/1.1
    Host: id.10duke.com:443
    Accept: application/json
    offset: 0
    limit: 25
    order: string
    asc: false
    
    var headers = {
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-roles',
      method: 'get',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const headers = { 
      'Accept':'application/json',
      'offset':'0',
      'limit':'25',
      'order':'string',
      'asc':'false'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-roles',
      {
        method: 'GET',
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Accept' => 'application/json',
      'offset' => '0',
      'limit' => '25',
      'order' => 'string',
      'asc' => 'false'
    }
    result = RestClient.get 'http://id.10duke.com:443/api/idp/v.exp//organization-roles',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Accept': 'application/json',
      'offset': '0',
      'limit': '25',
      'order': 'string',
      'asc': 'false'
    }
    r = requests.get('http://id.10duke.com:443/api/idp/v.exp//organization-roles',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-roles");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    GET /organization-roles

    List all organization roles, paging is recommended.

    Parameters

    Parameter In Type Required
    offset - Index of the first item to include in the result header integer(int64) false
    limit - Maximum result set size header integer(int32) false
    order - Name of field to use for sorting the results header string false
    asc - Determines if sort order is ascending (true) or descending (false) header boolean false

    Example responses

    [
      {
        "name": "string",
        "description": "string",
        "id": "string"
      }
    ]
    

    Responses

    Status Meaning Schema
    200 - successful operation OK Inline
    400 - Bad request Bad Request None
    404 - The resource was not found. Not Found None

    Response Schema

    Status Code 200

    Name Type Required
    anonymous - No description [OrganizationRole] false
    » name - The role's name. The name is formal and may used by UI and authorization logic. Role names must be unique. string true
    » description - The Roles's description. The description does not imply formality and may be used in presentation if feasible. string false
    » id - No description string(uuid) true

    Replace organization role.

    Code samples

    curl -X PUT http://id.10duke.com:443/api/idp/v.exp//organization-roles \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json'
    
    PUT http://id.10duke.com:443/api/idp/v.exp//organization-roles HTTP/1.1
    Host: id.10duke.com:443
    Content-Type: application/json
    Accept: application/json
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    $.ajax({
      url: 'http://id.10duke.com:443/api/idp/v.exp//organization-roles',
      method: 'put',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    });
    
    const fetch = require('node-fetch');
    const inputBody = '{
      "name": "string",
      "description": "string",
      "id": "string"
    }';
    const headers = { 
      'Content-Type':'application/json',
      'Accept':'application/json'
    };
    fetch('http://id.10duke.com:443/api/idp/v.exp//organization-roles',
      {
        method: 'PUT',
        body: inputBody,
        headers: headers
      })
    .then(function(res) {
        return res.json();
      })
    .then(function(body) {
        console.log(body);
      })
    ;
    
    require 'rest-client'
    require 'json'
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json'
    }
    result = RestClient.put 'http://id.10duke.com:443/api/idp/v.exp//organization-roles',
      params: {},
      headers: headers
    p JSON.parse(result)
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json'
    }
    r = requests.put('http://id.10duke.com:443/api/idp/v.exp//organization-roles',
      params = {},
      headers = headers)
    print r.json()
    
    URL obj = new URL("http://id.10duke.com:443/api/idp/v.exp//organization-roles");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    

    PUT /organization-roles

    Replace information in existing organization role with new data.

    Body parameter

    {
      "name": "string",
      "description": "string",
      "id": "string"
    }
    

    Parameters

    Parameter In Type Required
    body - No description body OrganizationRole true

    Example responses

    {
      "name": "string",
      "description": "string",
      "id": "string"
    }
    

    Responses

    Status Meaning Schema
    200 - Replacing the organization role was successful OK OrganizationRole
    400 - Bad request Bad Request None
    404 - The resource was not found. Not Found None

    Schemas

    Organization

    {
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }
    

    Properties

    Name Type Required
    name - The Organization's name (e.g. company name). The name does not imply formality and may be used in presentation if feasible. string true
    description - The Organization's description. The description does not imply formality and may be used in presentation if feasible. string false
    id - No description string(uuid) true
    type - The Organization's type. The type is formal and is used by application logic. Predefined reserved type values are: company, enterprise and project. string false

    User

    {
      "firstName": "string",
      "lastName": "string",
      "validUntil": "2017-12-31T23:59:59.123Z",
      "id": "string",
      "validFrom": "2017-12-31T23:59:59.123Z",
      "email": "string"
    }
    

    Properties

    Name Type Required
    firstName - The user's first name (given name). The first name is formal and is considered to be personal and sensitive user information. string true
    lastName - The user's last name (family name). The last name is formal and is considered to be personal and sensitive user information. string true
    validUntil - The valid until date time. string false
    id - No description string(uuid) true
    validFrom - The valid from date time. string false
    email - The user's primary registsred email address (contact information). The email is formal and is considered personal and sensitive user information. string true

    Address

    {
      "country": "string",
      "streetAddress": "string",
      "formatted": "string",
      "postalCode": "string",
      "locality": "string",
      "id": "string",
      "region": "string"
    }
    

    Properties

    Name Type Required
    country - No description string false
    streetAddress - No description string false
    formatted - No description string false
    postalCode - No description string false
    locality - No description string false
    id - No description string(uuid) true
    region - No description string false

    OrganizationRole

    {
      "name": "string",
      "description": "string",
      "id": "string"
    }
    

    Properties

    Name Type Required
    name - The role's name. The name is formal and may used by UI and authorization logic. Role names must be unique. string true
    description - The Roles's description. The description does not imply formality and may be used in presentation if feasible. string false
    id - No description string(uuid) true

    SendEmailResult

    {
      "technicalError": "string",
      "resultCode": "string",
      "id": "string"
    }
    

    Properties

    Name Type Required
    technicalError - Technical error message in case of immediate delivery failures. string false
    resultCode - Result code of the operation, which is success or failed string false
    id - No description string(uuid) true

    UserInfo

    {
      "firstName": "string",
      "lastName": "string",
      "address": {
        "country": "string",
        "streetAddress": "string",
        "formatted": "string",
        "postalCode": "string",
        "locality": "string",
        "id": "string",
        "region": "string"
      },
      "phoneNumber": "string",
      "preferredUsername": "string",
      "nickname": "string",
      "validUntil": "2017-12-31T23:59:59.123Z",
      "id": "string",
      "validFrom": "2017-12-31T23:59:59.123Z",
      "picture": "string",
      "email": "string"
    }
    

    Properties

    Name Type Required
    firstName - The user's first name (given name). The first name is formal and is considered to be personal and sensitive user information. string true
    lastName - The user's last name (family name). The last name is formal and is considered to be personal and sensitive user information. string true
    address - No description Address false
    phoneNumber - End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +358 (9) 687 2400. If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax for example, +1 (604) 555-1234;ext=5678. string false
    preferredUsername - Shorthand name by which the End-User wishes to be referred to in the service, such as janedoe or j.doe. This value may not be unique. string false
    nickname - The user's nick name. Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael. string false
    validUntil - The valid until date time. string false
    id - No description string(uuid) true
    validFrom - The valid from date time. string false
    picture - URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file), rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User. string false
    email - The user's primary registsred email address (contact information). The email is formal and is considered personal and sensitive user information. string true

    OrganizationGroupInvitation

    {
      "claimedAt": 0,
      "memberWelcomeUrl": "string",
      "invitationState": "accepted",
      "clientRoleIds": [
        "string"
      ],
      "inviterName": "string",
      "declinedAt": 0,
      "organizationId": "string",
      "groupIds": [
        "string"
      ],
      "recipientName": "string",
      "id": "string",
      "revokedAt": 0,
      "email": "string",
      "invitationScopeInformation": "string"
    }
    

    Properties

    Name Type Required
    claimedAt - The date-time when this invitation was completed (accepted). integer(int64) false
    memberWelcomeUrl - URL that is formatted into invitation message delivered to the user. The URL MUST contain this format specifier: ${key}, which is used to inject an invitation token into the link. The token is needed for authorized access to the invitation. string true
    invitationState - Code describing the state of an invitation. This may be a possible error state that an invitation may be in, e.g. email delivery may have failed and an email address may be reserved at the time of creating an invitation. Equally, declined and accepted state is set into this member. string false
    clientRoleIds - Optional list with identifiers of client application roles to grant to the invited user. [string] true
    inviterName - The inviter's name in formatted shape. string true
    declinedAt - The date-time when this invitation was declined. integer(int64) false
    organizationId - Identifier of the organization this is the host of this invitation string(uuid) true
    groupIds - Identifiers of groups to add the invited user to. [string] true
    recipientName - The recipient's name in formatted shape. string true
    id - No description string(uuid) true
    revokedAt - The date-time when this invitation was revoked. integer(int64) false
    email - The invited email address string true
    invitationScopeInformation - Informative description about where / what the recipient is invited to. This description is intended for communication from the inviter to the invitee. string false

    Enumerated Values

    Property Value
    invitationState accepted
    invitationState badInvitationData
    invitationState created
    invitationState declined
    invitationState deliveryFailed
    invitationState deliveryRequested
    invitationState emailNotAvailable
    invitationState revoked

    AuthenticationResult

    {
      "challenges": [
        {
          "type": "string"
        }
      ],
      "token": "string"
    }
    

    Properties

    Name Type Required
    challenges - List of challenges the client should respond to in order to complete authentication. [SimpleChallenge] false
    token - State token. Populated on partial success. The state token must be returned on next subsequent request. string false

    SimpleChallenge

    {
      "type": "string"
    }
    

    Properties

    Name Type Required
    type - No description string false

    OtpCredential

    {
      "keyUri": "http://example.com",
      "qrCode": "string",
      "verified": true,
      "secret": "string"
    }
    

    Properties

    Name Type Required
    keyUri - The credential as an URI. string(uri) false
    qrCode - QR-code representation of the credential, Base64-encoded PNG. string false
    verified - True if the credential has been verified by the user boolean false
    secret - The secret key of the credential, Base32-encoded. string false

    EmailChallengeToken

    {
      "token": "string"
    }
    

    Properties

    Name Type Required
    token - challenge-response token string true

    OrganizationGroup

    {
      "name": "string",
      "description": "string",
      "id": "string",
      "type": "string"
    }
    

    Properties

    Name Type Required
    name - The groups's name. The name does not imply formality and may be used in presentation if feasible. string true
    description - The group's description. The description does not imply formality and may be used in presentation if feasible. string false
    id - No description string(uuid) true
    type - The groups's type. The type is formal and is used by application logic. Predefined reserved type values are: employees, enterpriseEmployees and licenseConsumers. string false

    RecoveryEmail

    {
      "id": "string",
      "value": "string",
      "validatedAt": "2016-12-31T23:59:59.123Z"
    }
    

    Properties

    Name Type Required
    id - No description string(uuid) true
    value - email address string false
    validatedAt - Timestamp (as ISO-8601) when email was validated string false