CreateSwiftPassword

POST {{baseUrl}}/users/:userId/swiftPasswords/

Deprecated. Use CreateAuthToken instead.

Creates a new Swift password for the specified user. For information about what Swift passwords are for, see Managing User Credentials.

You must specify a description for the Swift password (although it can be an empty string). It does not have to be unique, and you can change it anytime with UpdateSwiftPassword.

Every user has permission to create a Swift password for their own user ID. An administrator in your organization does not need to write a policy to give users this ability. To compare, administrators who have permission to the tenancy can use this operation to create a Swift password for any user, including themselves.

Request Body

{"description"=>"eiusmod Exc"}

HEADERS

KeyDatatypeRequiredDescription
opc-retry-tokenstringA token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
has been deleted and purged from the system, then a retry of the original creation request
may be rejected).
Content-Typestring
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header
x-content-sha256string(Required) Content sha256 for POST, PUT and PATCH operations

RESPONSES

status: OK

{"description":"ea quis","expiresOn":"2019-10-11T19:02:19.896Z","id":"id","inactiveStatus":-29059910,"lifecycleState":"ACTIVE","password":"Lorem","timeCreated":"1973-01-20T16:11:20.577Z","userId":"adipisicing consequat"}