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

Set Default Organization Deprecated

Description

Set default organization for principal user.

Access Policy

Role User Accounts Service Accounts (Client Credentials Applications)
All Roles ✔️

Request

Request

URL

URL


put
https://{api_host}/csp/gateway/am/api/loggedin/user/profile/default-org
Copy

Request Body

Request Body

RefLinkDto of mimetype application/json Required

Request body for setting default organization.

{
	"refLink": "string"
}
string
refLink Optional

Relative reference link to the resource.

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK

Returns RefLinkDto of type application/json
{
	"refLink": "string"
}
string
refLink Optional

Relative reference link to the resource.

Errors

Errors

CspErrorResponse
400

The user is not member of the organization | Organization reference link is mandatory


CspErrorResponse
401

The user is not authorized to use the API


CspErrorResponse
403

The user is forbidden to use the API


CspErrorResponse
404

The requested resource could not be found


CspErrorResponse
409

The request could not be processed due to a conflict


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 PUT -H "Content-Type: application/json" -d '{"refLink":"string"}' https://{api_host}/csp/gateway/am/api/loggedin/user/profile/default-org


Feedback

Was this page helpful?