Overview

Version information

Version : 1.0.0

URI scheme

Host : cloudentity.dev.cloudentity.com
BasePath : /api
Schemes : HTTPS

Consumes

  • application/json

Produces

  • application/json

Paths

GET /customer

Description

To be called by a customer using an apiKey. Gets the record for the calling customer.

The CUSTOMER_GET_ITSELF entitlement is required, but is granted to customers by default and is unrevokable.

This API uses the same request authorization headers as POST /apiKey/entitlement/validate (Validate Entitlements using API Key). See documentation for that API for details about authorization header inputs.

Parameters

Type Name Schema

Header

x-orchis-authorization
required

string

Header

x-orchis-date
required

string

Header

x-orchis-request
required

string

Responses

HTTP Code Description Schema

200

Customer record retrieved.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.RequestOutdated: The request was outdated. It failed to reach the server within 15 minutes of being sent - calculation is based on the x-orchis-date header and the HMAC hashed request.

  • Authentication.Mismatch: Provided HMAC request does not match the original request.

  • Authentication.InactiveCustomer: Customer account is inactive.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /customer/{customerIdentifier}

Description

Get a customer record from the datastore.

This API accepts one of the following authentication mechanisms: - session token header, - HMAC headers with valid API key - valid JWT header in bearer format

When session or HMAC authentication is used then the ADMIN_GET_CUSTOMER entitlement is required. For HMAC see the API Key Validation API documentation for more details about HMAC headers. The principal entity (user or application calling this API) may only retrieve the requested customer if any of the following conditions are met: - The principal entity has the "ADMIN_ALL_CUSTOMERS" entitlement - The requested customer exists in the customers attribute of the principal entity - The system configuration restrictCustomerAccess is false

Otherwise, a Customer.NotFound error will be returned, even if the customer exists in the system.

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

200

Customer record retrieved.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

423

Response details:

  • Code: Message

  • GetCustomer.Locked: The maximum number of fetch customer attempts has been reached.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

PUT /customer/{customerIdentifier}

Description

Update a customer record in the datastore.

The ADMIN_UPDATE_CUSTOMER entitlement is required.

Cannot remove; cid, customerAlias, customerName, eulaRevision

The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid

If the customer EULA revision is changed - Loop through each user associated to this customer – Set user’s EULA acceptance to false – Set user’s EULA revision to the customer EULA revision

The principal entity (user or application calling this API) may only update the requested customer if any of the following conditions are met: - The principal entity has the "ADMIN_ALL_CUSTOMERS" entitlement - The requested customer exists in the customers attribute of the principal entity - The system configuration restrictCustomerAccess is false

Otherwise, a Customer.NotFound error will be returned, even if the customer exists in the system.

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Body

body
required

Update Customer Object

Responses

HTTP Code Description Schema

200

The customer record was updated.

The customer object is returned.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • User.NotFound: User with the given ID does not exist

  • Customer.NotFound: Customer with the given ID does not exist

No Content

409

Response details:

  • Code : Message

  • Customer.Duplicate: At least one of the provided customer identifiers is not unique.

  • Details:

  • duplicateIdentifiers field consists of list of fields which should be unique, but there was already a customer with that identifier

422

Validation error; some of the provided attributes did not pass the validation rules.

Response details:

  • Code: Message

  • Customer.ValidationError: Some of the attributes did not pass the validation.

  • Details Each of the fields might return one of the following validation error codes.

  • ValidationError.Required

  • ValidationError.Invalid

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

DELETE /customer/{customerIdentifier}

Description

Removes the customer record.

Any users associated with this customer will be deleted; any of their active sessions will also be invalidated.

The ADMIN_DELETE_CUSTOMER entitlement is required.

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

200

Customer and all their users deleted from datastore.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

POST /customer/{customerIdentifier}/activate

Description

Activate a customer allowing users to access the system.

The ADMIN_ACTIVATE_CUSTOMER entitlement is required.

Automatically sets the activationDate attribute to today’s date and time.

The following customer attributes are set automatically - status = active - recordUpdated = timestamp - recordUpdater = admin uuid

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

204

Customer and all their users are granted access to the system.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

DELETE /customer/{customerIdentifier}/activate

Description

Deactivate a customer disallowing users to access the system.

The ADMIN_DEACTIVATE_CUSTOMER entitlement is required.

The following customer attributes are set automatically - status = inactive - recordUpdated = timestamp - recordUpdater = admin uuid

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

204

Customer and all their users are revoked accessing from the system.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

POST /customer/{customerIdentifier}/entitlement/{entitlementName}

Description

Grant an entitlement identified by entitlementName to a customer identified by customerIdentifier.

The ADMIN_GRANT_ENTITLEMENT_TO_CUSTOMER entitlement is required.

The ADMIN_GRANT_ANY_ENTITLEMENT entitlement is required to grant entitlements unowned by the current user. If the current user owns neither the target entitlement nor the ADMIN_GRANT_ANY_ENTITLEMENT entitlement, an Authorization.Unauthorized error will be returned.

Core entitlements may not be granted to customers. If the entitlement to be granted is a core entitlement, an Entitlement.CoreNotAllowed error will be returned.

The entitlement will be recursively granted to all customer admins, based on the identifiers in this customer’s adminEmails list.

The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Path

entitlementName
required

Unique name of the entitlement.

string

Responses

HTTP Code Description Schema

204

Customer entitlement has been granted.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer does not exist.

  • Entitlement.NotFound: Entitlement with the given name does not exist.

422

Response details:

  • Code: Message

  • Entitlement.CoreNotAllowed: A core entitlement is not allowed.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

DELETE /customer/{customerIdentifier}/entitlement/{entitlementName}

Description

Revoke an entitlement identified by entitlementName from a customer identified by customerIdentifier.

The ADMIN_REVOKE_ENTITLEMENT_FROM_CUSTOMER entitlement is required.

The ADMIN_REVOKE_ANY_ENTITLEMENT entitlement is required to revoke entitlements unowned by the current user. If the current user owns neither the target entitlement nor the ADMIN_REVOKE_ANY_ENTITLEMENT entitlement, an Authorization.Unauthorized error will be returned.

Core entitlements may not be revoked from customers. If the entitlement to be revoked is a core entitlement, an Entitlement.CoreNotAllowed error will be returned.

IMPORTANT: The entitlement will be recursively revoked from all users associated with this customer.

The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Path

entitlementName
required

Unique name of the entitlement.

string

Responses

HTTP Code Description Schema

204

Customer entitlement has been revoked.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer does not exist.

  • Entitlement.NotFound: Entitlement with the given name does not exist.

422

Response details:

  • Code: Message

  • Entitlement.CoreNotAllowed: A core entitlement is not allowed.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

POST /customer/{customerIdentifier}/entitlementgroups

Description

Grant an entitlement group identified by entitlementName to a customer identified by customerIdentifier.

The ADMIN_GRANT_ENTITLEMENT_GROUP_TO_CUSTOMER entitlement is required.

In order to grant an entitlement group, at least one of the following conditions must be met: * The current user must own the target group * The current user must own each entitlement in the target group, through some combination of individual entitlements or other groups * The current user must own the ADMIN_GRANT_ANY_ENTITLEMENT_GROUP entitlement

If none of these conditions is met, an Authorization.Unauthorized error will be returned.

Core entitlements may not be granted to customers; therefore, groups which could contain core entitlements also cannot be granted to customers. If the allowCoreEntitlements attribute of the group is true, an Entitlement.CoreNotAllowed error will be returned.

The entitlement group will be recursively granted to all customer admins, based on the identifiers in this customer’s adminEmails list.

The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Body

group
optional

Name of group

group

Name Schema

group
optional

string

Responses

HTTP Code Description Schema

204

The entitlement group has been granted to the customer

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer does not exist.

  • Group.NotFound: Group with the given name does not exist.

422

Response details:

  • Code: Message

  • Entitlement.CoreNotAllowed: A core entitlement is not allowed.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /customer/{customerIdentifier}/entitlementgroups

Description

Get the list of entitlement groups assigned to the customer identified by customerIdentifier.

The ADMIN_GET_CUSTOMER_ENTITLEMENT_GROUPS entitlement is required.

Also returns the list of effective entitlement groups (completeGroups) available to the customer. Effective entitlement groups are any group defined in the system that meets one of the following requirements: * The customer owns the group and the group exists in the system, or * The customer owns each entitlement in the group, through some combination of individual entitlements or other groups, and the group and all member entitlements are defined in the system.

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

200

The requested customer list of entitlement groups is returned

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

DELETE /customer/{customerIdentifier}/entitlementgroups/{entitlementGroup}

Description

Revoke an entitlement group from a customer identified by {customerIdentifier}

The ADMIN_REVOKE_ENTITLEMENT_GROUP_FROM_CUSTOMER entitlement is required.

In order to revoke an entitlement group, at least one of the following conditions must be met: * The current user must own the target group * The current user must own each entitlement in the target group, through some combination of individual entitlements or other groups * The current user must own the ADMIN_REVOKE_ANY_ENTITLEMENT_GROUP entitlement

If none of these conditions is met, an Authorization.Unauthorized error will be returned.

IMPORTANT: The entitlement group will be recursively revoked from every user belonging to this customer.

Note that this API only revokes an entitlement group. Any constituent entitlements still owned by the target customer (standalone or as part of other groups) will not be revoked automatically.

The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Path

entitlementGroup
required

Name of entitlement group

string

Responses

HTTP Code Description Schema

204

The entitlement group has been revoked from the customer

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details

  • Code: Message

  • Customer.NotFound: Customer does not exist.

  • Group.NotFound: Group with the given name does not exist.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /customer/{customerIdentifier}/entitlements

Description

Get the list of entitlements assigned to the customer identified by customerIdentifier.

The ADMIN_GET_CUSTOMER_ENTITLEMENTS entitlement is required.

Also returns the list of effective entitlements (completeEntitlements) available to the customer. Effective entitlements are any entitlement defined in the system that meets one of the following requirements: * The customer owns the entitlement and the entitlement exists in the system, or * The customer owns a group containing the entitlement, and both the entitlement and the group exist in the system.

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

200

The requested customer list of entitlements is returned

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

POST /customers

Description

Create a new customer in the user store.

The ADMIN_CREATE_CUSTOMER entitlement is required.

Required parameters: cid, customerAlias, customerName, eulaRevision

Note that the customer will be created without an API key. A call to "Reset Customer API Key" is necessary to generate the first API key for a new customer.

The following customer attributes are set automatically - status = inactive if not specified as body param - recordCreated = timestamp - recordCreator = admin uuid - recordUpdated = timestamp - recordUpdater = admin uuid - eulaAutomaticApproval, if not provided = false

Optional allowPublicRegistration attribute determines whether public registration should be allowed or not.

Upon successful creation of a customer, the CID of the newly created customer will be added to the customers list of the calling admin.

Parameters

Type Name Description Schema

Body

body
required

Create Customer Object

Responses

HTTP Code Description Schema

201

The customer was created. The created customer object is returned.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code : Message

  • User.NotFound: User with the given ID does not exist

409

Response details:

  • Code : Message

  • Customer.Duplicate: At least one of the provided customer identifiers is not unique.

  • Details:

  • duplicateIdentifiers field consists of list of fields which should be unique, but there was already a customer with that identifier

422

Validation error; some of the provided attributes did not pass the validation rules.

Response details:

  • Code: Message

  • Customer.ValidationError: Some of the attributes did not pass the validation.

  • Details Each of the fields might return one of the following validation error codes.

  • ValidationError.Required

  • ValidationError.Invalid

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /customers

Description

Return a list of all customers matching the search criteria.

The ADMIN_LIST_CUSTOMERS entitlement is required.

This API accepts either a valid session token header, or the three HMAC headers with valid API key, as authentication. See the API Key Validation API documentation for more details about HMAC headers. If the principal entity (user or application calling this API) has the "ADMIN_ALL_CUSTOMERS" entitlement, or the system configuration restrictCustomerAccess is false, all customers will be available and the filter request parameter will be accepted and used. Otherwise, only the customers available in the customers attribute of the principal entity will be returned, and the filter request parameter will be ignored.

Parameters

Type Name Description Schema

Header

token
optional

SSO token of the current user

string

Header

x-orchis-authorization
optional

string

Header

x-orchis-date
optional

string

Header

x-orchis-request
optional

string

Query

filter
optional

Filter the results by the given field’s value.

The format of the filter field is defined as follows:

filter=FIELD_NAME:FIELD_VALUE,FIELD_NAME2:FIELD_VALUE_2

For example: filter=customerName:AB*,status:active searches for a customer name that starts with AB, whose status is active.

Asterisks are supported for substring searches.

string

Query

limit
optional

Limits the number of returned items (value 20 by default).

integer

Query

offset
optional

When an offset n is used, items starting from the n-th are returned (value 0 by default).

integer

Query

sort
optional

Sort the results by the given field.

If an ascending sort is required, specify the attribute name (e.g. firstName).

If a descending sort is required, specify the attribute name with a - prefix (e.g. -firstName).

If a multiple column sort is required, add a comma separator between the attribute names (e.g. lastName,firstName).

Example: lastName,firstName

string

Responses

HTTP Code Description Schema

200

The results for a customer search matching the search criteria.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

422

Response details:

  • Code: Message

  • Filter.ValidationError: Some of the attributes did not pass the validation.

423

Response details:

  • Code: Message

  • GetCustomer.Locked: The maximum number of fetch customer attempts has been reached.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /sla/customer

Description

To be called by a customer using an apiKey. Gets the record for the calling customer.

The CUSTOMER_GET_ITSELF entitlement is required, but is granted to customers by default and is unrevokable.

This API uses the same request authorization headers as POST /apiKey/entitlement/validate (Validate Entitlements using API Key). See documentation for that API for details about authorization header inputs.

Parameters

Type Name Schema

Header

x-orchis-authorization
required

string

Header

x-orchis-date
required

string

Header

x-orchis-request
required

string

Responses

HTTP Code Description Schema

200

Customer record retrieved.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.RequestOutdated: The request was outdated. It failed to reach the server within 15 minutes of being sent - calculation is based on the x-orchis-date header and the HMAC hashed request.

  • Authentication.Mismatch: Provided HMAC request does not match the original request.

  • Authentication.InactiveCustomer: Customer account is inactive.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /sla/customer/{customerIdentifier}

Description

Get a customer record from the datastore.

This API accepts one of the following authentication mechanisms: - session token header, - HMAC headers with valid API key - valid JWT header in bearer format

When session or HMAC authentication is used then the ADMIN_GET_CUSTOMER entitlement is required. For HMAC see the API Key Validation API documentation for more details about HMAC headers. The principal entity (user or application calling this API) may only retrieve the requested customer if any of the following conditions are met: - The principal entity has the "ADMIN_ALL_CUSTOMERS" entitlement - The requested customer exists in the customers attribute of the principal entity - The system configuration restrictCustomerAccess is false

Otherwise, a Customer.NotFound error will be returned, even if the customer exists in the system.

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

200

Customer record retrieved.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

423

Response details:

  • Code: Message

  • GetCustomer.Locked: The maximum number of fetch customer attempts has been reached.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

PUT /sla/customer/{customerIdentifier}

Description

Update a customer record in the datastore.

The ADMIN_UPDATE_CUSTOMER entitlement is required.

Cannot remove; cid, customerAlias, customerName, eulaRevision

The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid

If the customer EULA revision is changed - Loop through each user associated to this customer – Set user’s EULA acceptance to false – Set user’s EULA revision to the customer EULA revision

The principal entity (user or application calling this API) may only update the requested customer if any of the following conditions are met: - The principal entity has the "ADMIN_ALL_CUSTOMERS" entitlement - The requested customer exists in the customers attribute of the principal entity - The system configuration restrictCustomerAccess is false

Otherwise, a Customer.NotFound error will be returned, even if the customer exists in the system.

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Body

body
required

Update Customer Object

Responses

HTTP Code Description Schema

200

The customer record was updated.

The customer object is returned.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • User.NotFound: User with the given ID does not exist

  • Customer.NotFound: Customer with the given ID does not exist

No Content

409

Response details:

  • Code : Message

  • Customer.Duplicate: At least one of the provided customer identifiers is not unique.

  • Details:

  • duplicateIdentifiers field consists of list of fields which should be unique, but there was already a customer with that identifier

422

Validation error; some of the provided attributes did not pass the validation rules.

Response details:

  • Code: Message

  • Customer.ValidationError: Some of the attributes did not pass the validation.

  • Details Each of the fields might return one of the following validation error codes.

  • ValidationError.Required

  • ValidationError.Invalid

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

DELETE /sla/customer/{customerIdentifier}

Description

Removes the customer record.

Any users associated with this customer will be deleted; any of their active sessions will also be invalidated.

The ADMIN_DELETE_CUSTOMER entitlement is required.

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

200

Customer and all their users deleted from datastore.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

POST /sla/customer/{customerIdentifier}/activate

Description

Activate a customer allowing users to access the system.

The ADMIN_ACTIVATE_CUSTOMER entitlement is required.

Automatically sets the activationDate attribute to today’s date and time.

The following customer attributes are set automatically - status = active - recordUpdated = timestamp - recordUpdater = admin uuid

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

204

Customer and all their users are granted access to the system.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

DELETE /sla/customer/{customerIdentifier}/activate

Description

Deactivate a customer disallowing users to access the system.

The ADMIN_DEACTIVATE_CUSTOMER entitlement is required.

The following customer attributes are set automatically - status = inactive - recordUpdated = timestamp - recordUpdater = admin uuid

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

204

Customer and all their users are revoked accessing from the system.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

POST /sla/customer/{customerIdentifier}/entitlement/{entitlementName}

Description

Grant an entitlement identified by entitlementName to a customer identified by customerIdentifier.

The ADMIN_GRANT_ENTITLEMENT_TO_CUSTOMER entitlement is required.

The ADMIN_GRANT_ANY_ENTITLEMENT entitlement is required to grant entitlements unowned by the current user. If the current user owns neither the target entitlement nor the ADMIN_GRANT_ANY_ENTITLEMENT entitlement, an Authorization.Unauthorized error will be returned.

Core entitlements may not be granted to customers. If the entitlement to be granted is a core entitlement, an Entitlement.CoreNotAllowed error will be returned.

The entitlement will be recursively granted to all customer admins, based on the identifiers in this customer’s adminEmails list.

The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Path

entitlementName
required

Unique name of the entitlement.

string

Responses

HTTP Code Description Schema

204

Customer entitlement has been granted.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer does not exist.

  • Entitlement.NotFound: Entitlement with the given name does not exist.

422

Response details:

  • Code: Message

  • Entitlement.CoreNotAllowed: A core entitlement is not allowed.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

DELETE /sla/customer/{customerIdentifier}/entitlement/{entitlementName}

Description

Revoke an entitlement identified by entitlementName from a customer identified by customerIdentifier.

The ADMIN_REVOKE_ENTITLEMENT_FROM_CUSTOMER entitlement is required.

The ADMIN_REVOKE_ANY_ENTITLEMENT entitlement is required to revoke entitlements unowned by the current user. If the current user owns neither the target entitlement nor the ADMIN_REVOKE_ANY_ENTITLEMENT entitlement, an Authorization.Unauthorized error will be returned.

Core entitlements may not be revoked from customers. If the entitlement to be revoked is a core entitlement, an Entitlement.CoreNotAllowed error will be returned.

IMPORTANT: The entitlement will be recursively revoked from all users associated with this customer.

The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Path

entitlementName
required

Unique name of the entitlement.

string

Responses

HTTP Code Description Schema

204

Customer entitlement has been revoked.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer does not exist.

  • Entitlement.NotFound: Entitlement with the given name does not exist.

422

Response details:

  • Code: Message

  • Entitlement.CoreNotAllowed: A core entitlement is not allowed.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

POST /sla/customer/{customerIdentifier}/entitlementgroups

Description

Grant an entitlement group identified by entitlementName to a customer identified by customerIdentifier.

The ADMIN_GRANT_ENTITLEMENT_GROUP_TO_CUSTOMER entitlement is required.

In order to grant an entitlement group, at least one of the following conditions must be met: * The current user must own the target group * The current user must own each entitlement in the target group, through some combination of individual entitlements or other groups * The current user must own the ADMIN_GRANT_ANY_ENTITLEMENT_GROUP entitlement

If none of these conditions is met, an Authorization.Unauthorized error will be returned.

Core entitlements may not be granted to customers; therefore, groups which could contain core entitlements also cannot be granted to customers. If the allowCoreEntitlements attribute of the group is true, an Entitlement.CoreNotAllowed error will be returned.

The entitlement group will be recursively granted to all customer admins, based on the identifiers in this customer’s adminEmails list.

The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Body

group
optional

Name of group

group

Name Schema

group
optional

string

Responses

HTTP Code Description Schema

204

The entitlement group has been granted to the customer

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer does not exist.

  • Group.NotFound: Group with the given name does not exist.

422

Response details:

  • Code: Message

  • Entitlement.CoreNotAllowed: A core entitlement is not allowed.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /sla/customer/{customerIdentifier}/entitlementgroups

Description

Get the list of entitlement groups assigned to the customer identified by customerIdentifier.

The ADMIN_GET_CUSTOMER_ENTITLEMENT_GROUPS entitlement is required.

Also returns the list of effective entitlement groups (completeGroups) available to the customer. Effective entitlement groups are any group defined in the system that meets one of the following requirements: * The customer owns the group and the group exists in the system, or * The customer owns each entitlement in the group, through some combination of individual entitlements or other groups, and the group and all member entitlements are defined in the system.

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

200

The requested customer list of entitlement groups is returned

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

DELETE /sla/customer/{customerIdentifier}/entitlementgroups/{entitlementGroup}

Description

Revoke an entitlement group from a customer identified by {customerIdentifier}

The ADMIN_REVOKE_ENTITLEMENT_GROUP_FROM_CUSTOMER entitlement is required.

In order to revoke an entitlement group, at least one of the following conditions must be met: * The current user must own the target group * The current user must own each entitlement in the target group, through some combination of individual entitlements or other groups * The current user must own the ADMIN_REVOKE_ANY_ENTITLEMENT_GROUP entitlement

If none of these conditions is met, an Authorization.Unauthorized error will be returned.

IMPORTANT: The entitlement group will be recursively revoked from every user belonging to this customer.

Note that this API only revokes an entitlement group. Any constituent entitlements still owned by the target customer (standalone or as part of other groups) will not be revoked automatically.

The following customer attributes are set automatically - recordUpdated = timestamp - recordUpdater = admin uuid

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Path

entitlementGroup
required

Name of entitlement group

string

Responses

HTTP Code Description Schema

204

The entitlement group has been revoked from the customer

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details

  • Code: Message

  • Customer.NotFound: Customer does not exist.

  • Group.NotFound: Group with the given name does not exist.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /sla/customer/{customerIdentifier}/entitlements

Description

Get the list of entitlements assigned to the customer identified by customerIdentifier.

The ADMIN_GET_CUSTOMER_ENTITLEMENTS entitlement is required.

Also returns the list of effective entitlements (completeEntitlements) available to the customer. Effective entitlements are any entitlement defined in the system that meets one of the following requirements: * The customer owns the entitlement and the entitlement exists in the system, or * The customer owns a group containing the entitlement, and both the entitlement and the group exist in the system.

Parameters

Type Name Description Schema

Path

customerIdentifier
required

Unique identifier of the customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing ::. the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

200

The requested customer list of entitlements is returned

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

POST /sla/customers

Description

Create a new customer in the user store.

The ADMIN_CREATE_CUSTOMER entitlement is required.

Required parameters: cid, customerAlias, customerName, eulaRevision

Note that the customer will be created without an API key. A call to "Reset Customer API Key" is necessary to generate the first API key for a new customer.

The following customer attributes are set automatically - status = inactive if not specified as body param - recordCreated = timestamp - recordCreator = admin uuid - recordUpdated = timestamp - recordUpdater = admin uuid - eulaAutomaticApproval, if not provided = false

Optional allowPublicRegistration attribute determines whether public registration should be allowed or not.

Upon successful creation of a customer, the CID of the newly created customer will be added to the customers list of the calling admin.

Parameters

Type Name Description Schema

Body

body
required

Create Customer Object

Responses

HTTP Code Description Schema

201

The customer was created. The created customer object is returned.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code : Message

  • User.NotFound: User with the given ID does not exist

409

Response details:

  • Code : Message

  • Customer.Duplicate: At least one of the provided customer identifiers is not unique.

  • Details:

  • duplicateIdentifiers field consists of list of fields which should be unique, but there was already a customer with that identifier

422

Validation error; some of the provided attributes did not pass the validation rules.

Response details:

  • Code: Message

  • Customer.ValidationError: Some of the attributes did not pass the validation.

  • Details Each of the fields might return one of the following validation error codes.

  • ValidationError.Required

  • ValidationError.Invalid

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /sla/customers

Description

Return a list of all customers matching the search criteria.

The ADMIN_LIST_CUSTOMERS entitlement is required.

This API accepts either a valid session token header, or the three HMAC headers with valid API key, as authentication. See the API Key Validation API documentation for more details about HMAC headers. If the principal entity (user or application calling this API) has the "ADMIN_ALL_CUSTOMERS" entitlement, or the system configuration restrictCustomerAccess is false, all customers will be available and the filter request parameter will be accepted and used. Otherwise, only the customers available in the customers attribute of the principal entity will be returned, and the filter request parameter will be ignored.

Parameters

Type Name Description Schema

Header

token
optional

SSO token of the current user

string

Header

x-orchis-authorization
optional

string

Header

x-orchis-date
optional

string

Header

x-orchis-request
optional

string

Query

filter
optional

Filter the results by the given field’s value.

The format of the filter field is defined as follows:

filter=FIELD_NAME:FIELD_VALUE,FIELD_NAME2:FIELD_VALUE_2

For example: filter=customerName:AB*,status:active searches for a customer name that starts with AB, whose status is active.

Asterisks are supported for substring searches.

string

Query

limit
optional

Limits the number of returned items (value 20 by default).

integer

Query

offset
optional

When an offset n is used, items starting from the n-th are returned (value 0 by default).

integer

Query

sort
optional

Sort the results by the given field.

If an ascending sort is required, specify the attribute name (e.g. firstName).

If a descending sort is required, specify the attribute name with a - prefix (e.g. -firstName).

If a multiple column sort is required, add a comma separator between the attribute names (e.g. lastName,firstName).

Example: lastName,firstName

string

Responses

HTTP Code Description Schema

200

The results for a customer search matching the search criteria.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

422

Response details:

  • Code: Message

  • Filter.ValidationError: Some of the attributes did not pass the validation.

423

Response details:

  • Code: Message

  • GetCustomer.Locked: The maximum number of fetch customer attempts has been reached.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

POST /sla/eula/customer/accept

Description

Accepts organization EULA.

Responses

HTTP Code Description Schema

204

Organization Eula has been acceptected.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /sla/eula/customer/status

Description

Gets information about EULA. If updateRequired is set to true then Customer Admin should be prompted to confirm new EULA

Responses

HTTP Code Description Schema

204

Organization Eula status

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

PUT /sla/eula/customers/revision

Description

Bulk operation to update revision for multiple organizations. Before any update is made API verifies if all provided organizations exist. Currently supported organization identifiers: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided organization identifier. You are recommended to use UUID whenever possible.

Parameters

Type Name Description Schema

Body

body
required

Update EULA revision for organizations Object

Responses

HTTP Code Description Schema

204

Organizations Eula has been updated.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

DELETE /sla/eula/customers/revision

Description

Bulk operation to unset revision for multiple organizations. Before any update is made API verifies if all provided organizations exist. Currently supported organization identifiers: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided organization identifier. You are recommended to use UUID whenever possible.

Parameters

Type Name Description Schema

Body

body
required

Unset EULA revision for organizations Object

Responses

HTTP Code Description Schema

204

Organizations Eula has been updated.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

PUT /sla/eula/global/revision

Description

Update global EULA revision. The following additional attributes are set automatically - recordUpdated = timestamp - recordUpdater = jwt issuer

Parameters

Type Name Description Schema

Body

body
required

Update Global Eula Revision Object

Responses

HTTP Code Description Schema

204

Global Eula Revision has been updated.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

DELETE /sla/eula/global/revision

Description

Unset global EULA revision. The following additional attributes are set automatically - recordUpdated = timestamp - recordUpdater = jwt issuer

Responses

HTTP Code Description Schema

204

Global Eula Revision has been updated.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /sla/user/customer

Description

Get the record of the customer to which the user currently belongs.

This service requires the SELF_GET_CUSTOMER entitlement.

Responses

HTTP Code Description Schema

200

Customer record retrieved.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

423

Response details:

  • Code: Message

  • GetCustomer.Locked: The maximum number of fetch customer attempts has been reached.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

PUT /sla/user/customer/apiKey

Description

Reset the API key of the customer identified in the current user session.

A unique API key is generated and stored in the apiKey attribute.

The ADMIN_RESET_CUSTOMER_API_KEY entitlement is required.

The following customer attributes are set automatically - apiKey = automatically generated API key - recordUpdated = timestamp - recordUpdater = admin uuid

Responses

HTTP Code Description Schema

200

Customer API key has been reset.

Customer API key is returned.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

DELETE /sla/user/customer/apiKey

Description

Remove the API key of the customer identified in the current user session.

The ADMIN_REMOVE_CUSTOMER_API_KEY entitlement is required.

The following customer attributes are set automatically - apiKey removed - recordUpdated = timestamp - recordUpdater = admin uuid

Responses

HTTP Code Description Schema

204

Customer API key has been revoked.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /sla/user/customers

Description

Return a list of customers that are associated with the current user (user.customers).

The SELF_LIST_USER_CUSTOMERS entitlement is required.

Process Outline - If user does have the SELF_LIST_USER_CUSTOMERS - Return Authorization.Unauthorized - Get the user record.customers attribute list - Get the customer records for each customer in the list - Return the customer list

Parameters

Type Name Description Schema

Query

limit
optional

Limits the number of returned items (value 20 by default).

integer

Query

offset
optional

When an offset n is used, items starting from the n-th are returned (value 0 by default).

integer

Query

sort
optional

Sort the results by the given field.

If an ascending sort is required, specify the attribute name (e.g. firstName).

If a descending sort is required, specify the attribute name with a - prefix (e.g. -firstName).

If a multiple column sort is required, add a comma separator between the attribute names (e.g. lastName,firstName).

Example: lastName,firstName

string

Responses

HTTP Code Description Schema

200

The results for a customer search matching the search criteria.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

POST /sla/users/{identifier}/customers

Description

Add customer to a user`s customer list (record.customers).

The ADMIN_ADD_TO_USER_CUSTOMERS entitlement is required.

Process Outline - If user does not have the ADMIN_ADD_TO_USER_CUSTOMERS - Return Authorization.Unauthorized - Add provided customer to the user record.customers attribute list

Parameters

Type Name Description Schema

Path

identifier
required

Unique identifier of a user.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing :: the system will use it to search for a user with that matching attribute.

Examples: * 34324-213123-21343243 will search by UUID * email::joe@doe.com will search by the provided email. * uid::joedoe will search by the provided uid. * mobile::1-222-333-444 will search by the provided mobile. * any::joedoe will search by any of the above identifiers.

You are recommended to use UUID whenever possible.

string

Body

body
required

Unique identifier of a customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing :: the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

204

User was updated, user object returned in response.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • User.NotFound: User with the given ID does not exist

  • Customer.NotFound: Customer with the given ID does not exist

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /sla/users/{identifier}/customers

Description

Return a list of customers that are associated with the specified user (user.customers).

The ADMIN_LIST_USER_CUSTOMERS entitlement is required.

Process Outline - If user does have the ADMIN_LIST_USER_CUSTOMERS - Return Authorization.Unauthorized - Get the user record.customers attribute list - Get the customer records for each customer in the list - Return the customer list

Parameters

Type Name Description Schema

Path

identifier
required

Unique identifier of a user.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing :: the system will use it to search for a user with that matching attribute.

Examples: * 34324-213123-21343243 will search by UUID * email::joe@doe.com will search by the provided email. * uid::joedoe will search by the provided uid. * mobile::1-222-333-444 will search by the provided mobile. * any::joedoe will search by any of the above identifiers.

You are recommended to use UUID whenever possible.

string

Query

limit
optional

Limits the number of returned items (value 20 by default).

integer

Query

offset
optional

When an offset n is used, items starting from the n-th are returned (value 0 by default).

integer

Query

sort
optional

Sort the results by the given field.

If an ascending sort is required, specify the attribute name (e.g. firstName).

If a descending sort is required, specify the attribute name with a - prefix (e.g. -firstName).

If a multiple column sort is required, add a comma separator between the attribute names (e.g. lastName,firstName).

Example: lastName,firstName

string

Responses

HTTP Code Description Schema

200

The results for a customer search matching the search criteria.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

PUT /sla/users/{identifier}/customers

Description

Update a user`s customer list (record.customers).

The ADMIN_UPDATE_USER_CUSTOMERS entitlement is required.

Process Outline - If user does not have the ADMIN_UPDATE_USER_CUSTOMERS - Return Authorization.Unauthorized - Replace the user record.customers attribute list with the one provided

Parameters

Type Name Description Schema

Path

identifier
required

Unique identifier of a user.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing :: the system will use it to search for a user with that matching attribute.

Examples: * 34324-213123-21343243 will search by UUID * email::joe@doe.com will search by the provided email. * uid::joedoe will search by the provided uid. * mobile::1-222-333-444 will search by the provided mobile. * any::joedoe will search by any of the above identifiers.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

204

User was updated, user object returned in response.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code : Message

  • User.NotFound: User with the given ID does not exist

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

DELETE /sla/users/{identifier}/customers/{customerCid}

Description

Remove customer from a user`s customer list (record.customers).

The ADMIN_REMOVE_FROM_USER_CUSTOMERS entitlement is required.

Process Outline - If user does not have the ADMIN_REMOVE_FROM_USER_CUSTOMERS - Return Authorization.Unauthorized - Remove provided customer from the user record.customers attribute list

Parameters

Type Name Description Schema

Path

customerCid
required

Unique identifier of a customer.

Only customer IDs, prefixed by cid:: are supported for this API.

Currently supported: * cid::RANDOM_COMPANY will search by the provided customer id.

string

Path

identifier
required

Unique identifier of a user.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing :: the system will use it to search for a user with that matching attribute.

Examples: * 34324-213123-21343243 will search by UUID * email::joe@doe.com will search by the provided email. * uid::joedoe will search by the provided uid. * mobile::1-222-333-444 will search by the provided mobile. * any::joedoe will search by any of the above identifiers.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

204

User was updated, user object returned in response.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code : Message

  • User.NotFound: User with the given ID does not exist

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /user/customer

Description

Get the record of the customer to which the user currently belongs.

This service requires the SELF_GET_CUSTOMER entitlement.

Responses

HTTP Code Description Schema

200

Customer record retrieved.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

423

Response details:

  • Code: Message

  • GetCustomer.Locked: The maximum number of fetch customer attempts has been reached.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

PUT /user/customer/apiKey

Description

Reset the API key of the customer identified in the current user session.

A unique API key is generated and stored in the apiKey attribute.

The ADMIN_RESET_CUSTOMER_API_KEY entitlement is required.

The following customer attributes are set automatically - apiKey = automatically generated API key - recordUpdated = timestamp - recordUpdater = admin uuid

Responses

HTTP Code Description Schema

200

Customer API key has been reset.

Customer API key is returned.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

DELETE /user/customer/apiKey

Description

Remove the API key of the customer identified in the current user session.

The ADMIN_REMOVE_CUSTOMER_API_KEY entitlement is required.

The following customer attributes are set automatically - apiKey removed - recordUpdated = timestamp - recordUpdater = admin uuid

Responses

HTTP Code Description Schema

204

Customer API key has been revoked.

No Content

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • Customer.NotFound: Customer with the given ID does not exist.

No Content

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /user/customers

Description

Return a list of customers that are associated with the current user (user.customers).

The SELF_LIST_USER_CUSTOMERS entitlement is required.

Process Outline - If user does have the SELF_LIST_USER_CUSTOMERS - Return Authorization.Unauthorized - Get the user record.customers attribute list - Get the customer records for each customer in the list - Return the customer list

Parameters

Type Name Description Schema

Query

limit
optional

Limits the number of returned items (value 20 by default).

integer

Query

offset
optional

When an offset n is used, items starting from the n-th are returned (value 0 by default).

integer

Query

sort
optional

Sort the results by the given field.

If an ascending sort is required, specify the attribute name (e.g. firstName).

If a descending sort is required, specify the attribute name with a - prefix (e.g. -firstName).

If a multiple column sort is required, add a comma separator between the attribute names (e.g. lastName,firstName).

Example: lastName,firstName

string

Responses

HTTP Code Description Schema

200

The results for a customer search matching the search criteria.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

POST /users/{identifier}/customers

Description

Add customer to a user`s customer list (record.customers).

The ADMIN_ADD_TO_USER_CUSTOMERS entitlement is required.

Process Outline - If user does not have the ADMIN_ADD_TO_USER_CUSTOMERS - Return Authorization.Unauthorized - Add provided customer to the user record.customers attribute list

Parameters

Type Name Description Schema

Path

identifier
required

Unique identifier of a user.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing :: the system will use it to search for a user with that matching attribute.

Examples: * 34324-213123-21343243 will search by UUID * email::joe@doe.com will search by the provided email. * uid::joedoe will search by the provided uid. * mobile::1-222-333-444 will search by the provided mobile. * any::joedoe will search by any of the above identifiers.

You are recommended to use UUID whenever possible.

string

Body

body
required

Unique identifier of a customer.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing :: the system will use it to search for a customer with that matching attribute.

Currently supported: * 34324-213123-21343243 will search by UUID * cid::RANDOM_COMPANY will search by the provided customer id.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

204

User was updated, user object returned in response.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code: Message

  • User.NotFound: User with the given ID does not exist

  • Customer.NotFound: Customer with the given ID does not exist

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

GET /users/{identifier}/customers

Description

Return a list of customers that are associated with the specified user (user.customers).

The ADMIN_LIST_USER_CUSTOMERS entitlement is required.

Process Outline - If user does have the ADMIN_LIST_USER_CUSTOMERS - Return Authorization.Unauthorized - Get the user record.customers attribute list - Get the customer records for each customer in the list - Return the customer list

Parameters

Type Name Description Schema

Path

identifier
required

Unique identifier of a user.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing :: the system will use it to search for a user with that matching attribute.

Examples: * 34324-213123-21343243 will search by UUID * email::joe@doe.com will search by the provided email. * uid::joedoe will search by the provided uid. * mobile::1-222-333-444 will search by the provided mobile. * any::joedoe will search by any of the above identifiers.

You are recommended to use UUID whenever possible.

string

Query

limit
optional

Limits the number of returned items (value 20 by default).

integer

Query

offset
optional

When an offset n is used, items starting from the n-th are returned (value 0 by default).

integer

Query

sort
optional

Sort the results by the given field.

If an ascending sort is required, specify the attribute name (e.g. firstName).

If a descending sort is required, specify the attribute name with a - prefix (e.g. -firstName).

If a multiple column sort is required, add a comma separator between the attribute names (e.g. lastName,firstName).

Example: lastName,firstName

string

Responses

HTTP Code Description Schema

200

The results for a customer search matching the search criteria.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

PUT /users/{identifier}/customers

Description

Update a user`s customer list (record.customers).

The ADMIN_UPDATE_USER_CUSTOMERS entitlement is required.

Process Outline - If user does not have the ADMIN_UPDATE_USER_CUSTOMERS - Return Authorization.Unauthorized - Replace the user record.customers attribute list with the one provided

Parameters

Type Name Description Schema

Path

identifier
required

Unique identifier of a user.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing :: the system will use it to search for a user with that matching attribute.

Examples: * 34324-213123-21343243 will search by UUID * email::joe@doe.com will search by the provided email. * uid::joedoe will search by the provided uid. * mobile::1-222-333-444 will search by the provided mobile. * any::joedoe will search by any of the above identifiers.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

204

User was updated, user object returned in response.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code : Message

  • User.NotFound: User with the given ID does not exist

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

DELETE /users/{identifier}/customers/{customerCid}

Description

Remove customer from a user`s customer list (record.customers).

The ADMIN_REMOVE_FROM_USER_CUSTOMERS entitlement is required.

Process Outline - If user does not have the ADMIN_REMOVE_FROM_USER_CUSTOMERS - Return Authorization.Unauthorized - Remove provided customer from the user record.customers attribute list

Parameters

Type Name Description Schema

Path

customerCid
required

Unique identifier of a customer.

Only customer IDs, prefixed by cid:: are supported for this API.

Currently supported: * cid::RANDOM_COMPANY will search by the provided customer id.

string

Path

identifier
required

Unique identifier of a user.

UUID is used by default. However, if the identifier is prefixed by a valid identifier attribute with a trailing :: the system will use it to search for a user with that matching attribute.

Examples: * 34324-213123-21343243 will search by UUID * email::joe@doe.com will search by the provided email. * uid::joedoe will search by the provided uid. * mobile::1-222-333-444 will search by the provided mobile. * any::joedoe will search by any of the above identifiers.

You are recommended to use UUID whenever possible.

string

Responses

HTTP Code Description Schema

204

User was updated, user object returned in response.

400

Response details:

  • Code : Message

  • Request.Invalid: The request could not be understood by the server due to malformed syntax.

401

Response details:

  • Code : Message

  • Authentication.Unauthenticated: Not authenticated. This API is only available for authenticated users.

403

Response details:

  • Code : Message

  • Authorization.Unauthorized: Not authorized. This API is only available for authorized users.

404

Response details:

  • Code : Message

  • User.NotFound: User with the given ID does not exist

Tags

  • customer

Security

Type Name

oauth2

oauth2

oauth2

apiKey

Definitions

AliveStatus

Name Description Schema

message
optional

Description of service status if available

string

CreateCustomerRequest

Name Description Schema

adminEmails
optional

Administrator Emails

< string > array

allowPublicRegistration
optional

Allow public registration for organisation

string

cid
optional

Customer ID

string

customerAlias
optional

Alias of Customer

string

customerDomains
optional

Customer Domains

< string > array

customerName
optional

Name of Customer

string

eulaAutomaticApproval
optional

EULA (End User License Agreement) automatic approval. When user is created, their eulaApproval is set to true

string

eulaRevision
optional

EULA (End User License Agreement) Revision

string

metadata
optional

Customer metadata

object

mfaMethod
optional

Multi-Factor Authentication method. If not set, no multi-factor authentication is used.

enum (NONE, OTP, KBA, GOOGLE_AUTHENTICATION, DUO_AUTHN)

status
optional

Customer activation status

string

CustomerIdentifierResponse

Name Description Schema

cid
optional

Customer ID

string

CustomerResetApiResponse

Name Description Schema

customerApiKey
optional

Customer API Key

string

CustomerSearchResults

Customer list

Name Schema

data
optional

< data > array

paging
optional

data

Name Description Schema

cid
optional

Customer ID

string

customerAlias
optional

Alias of Customer

string

customerName
optional

Name of Customer

string

eulaRevision
optional

EULA (End User License Agreement) Revision

string

mfaMethod
optional

Multi-Factor Authentication method. If not set, no multi-factor authentication is used.

enum (NONE, OTP, KBA, GOOGLE_AUTHENTICATION, DUO_AUTHN)

status
optional

Customer activation status

string

uuid
optional

Globally unique identifier

string

paging

Name Schema

limit
optional

integer

offset
optional

integer

total
optional

integer

DuplicateCustomerError

Name Description Schema

code
optional

Unique internal error code

string

details
optional

message
optional

Description of the error code

string

details

Name Description Schema

duplicateIdentifiers
optional

A list of the identifiers which were duplicates for the request.

< string > array

Error

Name Description Schema

code
optional

Unique internal error code

string

details
optional

Optional. Varies depending on the specific use case - details are determined by the particular API call.

object

message
optional

Description of the error code

string

FilteredEntitlementNames

List of entitlement names

Name Description Schema

completeEntitlements
optional

List of effective entitlements with groups unwrapped

< string > array

entitlements
optional

List of entitlements without groups

< string > array

GroupsWithCompleteGroupsNamesList

List of group names

Name Description Schema

completeGroups
optional

List of effective entitlement groups available to the customer

< string > array

groups
optional

List of entitlement groups owned by the customer

< string > array

OrganizationEulaStatus

Name Description Schema

approvedRevision
optional

Approved EULA Revision

string

eulaRequired
optional

Boolean flag to determine if eula is required

boolean

requiredRevision
optional

Required EULA Revision

string

RetrievedCustomerObject

Name Description Schema

activationDate
optional

Date customer was activated

string

adminEmails
optional

Administrator Emails

< string > array

allowPublicRegistration
required

Allow public registration for organisation

string

cid
required

Customer ID

string

customerAlias
optional

Alias of Customer

string

customerDomains
optional

Customer Domains

< string > array

customerName
optional

Name of Customer

string

entitlements
optional

Customer Entitlements

< string > array

eulaAutomaticApproval
optional

EULA (End User License Agreement) automatic approval. When user is created, their eulaApproval is set to true

string

eulaOrgApprovedBy
optional

Organization EULA approved by

string

eulaOrgApprovedDate
optional

Organization EULA approved date

string

eulaOrgApprovedRevision
optional

Organization EULA approved revision

string

eulaOrgRequiredRevision
optional

Organization EULA required revision

string

eulaRevision
optional

EULA (End User License Agreement) Revision

string

metadata
optional

Customer metadata

object

mfaMethod
optional

Multi-Factor Authentication method. If not set, no multi-factor authentication is used.

enum (NONE, OTP, KBA, GOOGLE_AUTHENTICATION, DUO_AUTHN)

recordCreated
optional

Timestamp when record was created

string

recordCreator
optional

Name of person that created the record

string

recordUpdated
optional

Timestamp when record was last updated

string

recordUpdater
optional

Name of person that last updated the record

string

status
optional

Customer activation status

string

uuid
required

Globally unique identifier

string

RetrievedUserCustomerObject

Name Description Schema

cid
required

Customer ID

string

customerAlias
optional

Alias of Customer

string

customerName
optional

Name of Customer

string

UnsetEulaRevisionForOrganizationsBody

Name Schema

organizations
optional

< string > array

UpdateCustomerRequest

Name Description Schema

adminEmails
optional

Administrator Emails

< string > array

allowPublicRegistration
optional

Allow public registration for organisation

string

customerAlias
optional

Alias of Customer

string

customerDomains
optional

Customer Domains

< string > array

customerName
optional

Name of Customer

string

eulaAutomaticApproval
optional

EULA (End User License Agreement) automatic approval. When user is created, their eulaApproval is set to true

string

eulaRevision
optional

EULA (End User License Agreement) Revision

string

metadata
optional

Customer metadata

object

mfaMethod
optional

Multi-Factor Authentication method. If not set, no multi-factor authentication is used.

enum (NONE, OTP, KBA, GOOGLE_AUTHENTICATION, DUO_AUTHN)

UpdateEulaRevisionForOrganizationsBody

Name Description Schema

organizations
optional

< string > array

revision
optional

EULA Revision

string

UpdateGlobalEulaRevisionBody

Name Description Schema

revision
optional

EULA (End User License Agreement) Revision

string

User

Name Description Schema

address
optional

Street Address

string

city
optional

City

string

country
optional

Country

string

customer
optional

Customer CID

string

customers
optional

List of Customer CIDs a user could switch to

< string > array

defaultEmail
optional

Default email address

string

defaultMobile
optional

Default mobile phone number

string

dob
optional

Date Of Birth

string

entitlementGroups
optional

User entitlement groups

< string > array

entitlements
optional

User entitlements

< string > array

eulaApproval
optional

EULA (End User License Agreement) acceptance status

string

eulaRevision
optional

EULA (End User License Agreement) Revision

string

firstName
optional

First name

string

forcePwdReset
optional

Force Password Reset

boolean

gender
optional

Gender

string

googleAuthSecretAccepted
optional

Whether the Google Authenticator secret has been seen and accepted

string

identifierEmails
optional

Identifier emails

< string > array

identifierMobiles
optional

Identifier Mobile Numbers

< string > array

kbaQuestionSet
optional

KBA questions for which responses have been given

< string > array

lastName
optional

Last name

string

locale
optional

Locale (e.g. en_GB)

string

locality
optional

County or Region

string

mfaMethod
optional

Multi-Factor Authentication method. If not set, no multi-factor authentication is used.

enum (NONE, OTP, KBA, GOOGLE_AUTHENTICATION, DUO_AUTHN)

newUserStatus
optional

New user status

boolean

organization
optional

Organization unit

string

otpMethod
optional

User’s preferred means of receiving an OTP ('E' = email, 'M' = mobile, 'V' = voice)

enum (E, M, V)

otpMfaDestination
optional

User’s destination for authentication by OTP

string

otpSetupComplete
optional

Whether a user has completed OTP MFA setup

boolean

postalCode
optional

Postal Code

string

status
optional

User activation status

enum (active, inactive, banned, unverified)

uid
optional

Unique identifier for this user

string

unverifiedEmails
optional

Unverified emails

< string > array

unverifiedMobiles
optional

Unverified Mobile Numbers

< string > array

uuid
required

Globally unique identifier

string

verifiedEmails
optional

Verified emails

< string > array

verifiedMobiles
optional

Verified Mobile Numbers

< string > array

UserCustomerSearchResults

Customer list

Name Schema

data
optional

< data > array

paging
optional

data

Name Description Schema

cid
optional

Customer ID

string

customerAlias
optional

Alias of Customer

string

customerName
optional

Name of Customer

string

paging

Name Schema

limit
optional

integer

offset
optional

integer

total
optional

integer

ValidationError

Name Description Schema

code
optional

Unique internal error code

string

details
optional

message
optional

Description of the error code

string

details

Name Schema

fields
optional

< fields > array

fields

Name Description Schema

code
optional

Unique internal error code

string

message
optional

Description of the error code

string

name
optional

Name of the field

string

Security

oauth2_implicit

Type : oauth2
Flow : implicit
Token URL : https://cloudentity.dev.cloudentity.com/oauth/authorize

oauth2_authorizationCode

oauth2_password

Type : oauth2
Flow : password
Token URL : https://cloudentity.dev.cloudentity.com/oauth/token

SsoToken

Type : apiKey
Name : token
In : HEADER