Schema

The schema defines all the fields that exist for a password object.

name
string

The name of the new password

Context: view, edit, embed

password
string, datetime (ISO8601)

The hashed password that was created

Read only

Context: edit

created
string, datetime (ISO8601)

The date the password was created

Read only

Context: view, edit

last_used
string, datetime (ISO8601)

The date the password was last used

Read only

Context: view, edit

last_ip
string

The IP address that the password was last used from

Read only

Context: view, edit

slug
string

The password's unique slug

Read only

Context: view, edit

Example Request

$ curl -X OPTIONS -i http://demo.getawesomesupport.com/wp-json/wpas-api/v1/users/<user_id>/passwords

List Passwords

Arguments

user_id

The ID of the requested user.

Required: true

Definition

GET /wpas-api/v1/users/<user_id>/passwords

Example Request

$ curl http://demo.getawesomesupport.com/wp-json/wpas-api/v1/users/<user_id>/passwords

Create a Password

Arguments

user_id

The ID of the requested user.

Required: true

name

The name of the new password

Required: true

Definition

POST /wpas-api/v1/users/<user_id>/passwords

Delete a Password

Arguments

user_id

The ID of the requested user.

Required: true

slug

The slug of the password to delete.

Required: true

Definition

DELETE /wpas-api/v1/users/<user_id>/passwords/<slug>

Example Request

$ curl -X DELETE http://demo.getawesomesupport.com/wp-json/wpas-api/v1/users/<user_id>/passwords/<slug>