[{"label":"Latest (v1.0)","version":"latest"}]
csp

Create Organization Trust

Description

Create organization trust between two organizations.

Access Policy

Role User Accounts Service Accounts (Client Credentials Applications)
Organization Owner ✔️ ✔️

Request

Request

URL

URL


post
https://{api_host}/csp/gateway/am/api/orgs/{orgId}/trusts
Copy

Path Parameters

Path Parameters

string
orgId Required

Unique identifier (GUID) of the organization.

Parameter Serialization Style: SIMPLE Explode:false

Request Body

Request Body

OrganizationTrustCreateRequest of mimetype application/json Required
{
	"allowedScopes": {},
	"trustedOrgId": "string"
}
allowedScopes Required

Defines the properties of the allowed scopes for organization trust.


string
trustedOrgId Required

Unique identifier (GUID) of the trusted organization.


string
description Optional

The description about the trust.


integer as int64
expiresAt Optional

The timestamp the trust expires at (measured in number of seconds since 1/1/1970 UTC).


string
type Optional

The type of the organization trust.

Possible values are: HIERARCHYCUSTOMPARTNER

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

201 Created

Returns IdDto of type application/json
{
	"id": "string"
}
string
id Optional

The unique identifier of the resource.

Errors

Errors

CspErrorResponse
400

Organization trust cannot expire in the past.


CspErrorResponse
401

The user is not authorized to use the API


CspErrorResponse
403

The user is forbidden to use the API


CspErrorResponse
404

Organization with this identifier is not found.


CspErrorResponse
409

Active or pending organization trust between the organizations already exist.


CspErrorResponse
429

The user has sent too many requests


CspErrorResponse
500

An unexpected error has occurred while processing the request

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"allowedScopes":{"allScopes":false,"organizationScopes":{"allRoles":false,"roles":[{"name":"string","resources":["string"]}]},"servicesScopes":[{"allRoles":false,"roles":[{"name":"string","resources":["string"]}],"serviceDefinitionId":"string"}]},"description":"string","expiresAt":0,"trustedOrgId":"string","type":"HIERARCHY"}' https://{api_host}/csp/gateway/am/api/orgs/{orgId}/trusts


[{"label":"Latest (v1.0)","version":"latest"}]
csp
Feedback

Was this page helpful?