Create or overwrite a password credential.
Creates or overwrites the password credential linked to the specified person in your organization. This credential will then be available for use in future authentication challenges.
Path Parameters
- person_id string required
The person ID
Example: 903c1ff9-f2cc-435c-b242-9d8a690fcf0a
Header Parameters
- SlashID-OrgID string required
The organization ID
Example: af5fbd30-7ce7-4548-8b30-4cd59cb2aba1
- application/json
Request Body required
The password credential creation/overwrite request
- type string required
Possible values: [
public-key
,password
,totp
]The type of the credential
params object required
- label string
Responses
- 200
- 201
- 400
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
meta object
errors object[]
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
Created
- application/json
- Schema
- Example (from schema)
Schema
meta object
errors object[]
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
meta object
errors object[]
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
meta object
errors object[]
{
"meta": {
"pagination": {
"limit": 0,
"offset": 0,
"total_count": 0
}
},
"errors": [
{
"httpcode": 0,
"message": "string"
}
]
}
PUT /persons/:person_id/credentials/password
https://api.slashid.com
Authorization
type: apiKeyname: SlashID-API-Keyin: header
Request
Request
curl -L -X PUT 'https://api.slashid.com/persons/:person_id/credentials/password' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"type": "public-key",
"params": {
"password_hash": "string"
},
"label": "string"
}'
curl -L -X PUT 'https://api.slashid.com/persons/:person_id/credentials/password' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"type": "public-key",
"params": {
"password_hash": "string"
},
"label": "string"
}'
curl -L -X PUT 'https://api.slashid.com/persons/:person_id/credentials/password' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"type": "public-key",
"params": {
"password_hash": "string"
},
"label": "string"
}'
curl -L -X PUT 'https://api.slashid.com/persons/:person_id/credentials/password' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"type": "public-key",
"params": {
"password_hash": "string"
},
"label": "string"
}'
curl -L -X PUT 'https://api.slashid.com/persons/:person_id/credentials/password' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"type": "public-key",
"params": {
"password_hash": "string"
},
"label": "string"
}'
curl -L -X PUT 'https://api.slashid.com/persons/:person_id/credentials/password' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"type": "public-key",
"params": {
"password_hash": "string"
},
"label": "string"
}'
curl -L -X PUT 'https://api.slashid.com/persons/:person_id/credentials/password' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'SlashID-OrgID: <SLASHID_ORG_ID_VALUE>' \
-H 'SlashID-API-Key: <API_KEY_VALUE>' \
--data-raw '{
"type": "public-key",
"params": {
"password_hash": "string"
},
"label": "string"
}'