Legendary Entertainment users API
The users API from Legendary Entertainment — 6 operation(s) for users.
The users API from Legendary Entertainment — 6 operation(s) for users.
openapi: 3.1.0
info:
title: Legendary Entertainment WordPress REST block-directory users API
version: wp/v2
description: 'Read-oriented content API exposed by legendary.com: the WordPress REST API (namespace wp/v2) serving Legendary Entertainment news posts, pages, media, categories and tags. Derived by API Evangelist from the live route discovery document at https://www.legendary.com/wp-json/wp/v2 . This is the platform API exposed by the marketing site, NOT a documented first-party Legendary developer program. GET collections are publicly readable without authentication; write operations require WordPress Application Password credentials.'
contact:
name: Legendary Entertainment
url: https://www.legendary.com/about/
servers:
- url: https://www.legendary.com/wp-json/wp/v2
description: Production
tags:
- name: users
paths:
/users:
get:
operationId: getUsers
summary: GET /users
tags:
- users
parameters:
- name: capabilities
in: query
required: false
schema:
type: array
description: Limit result set to users matching at least one specific capability provided. Accepts csv list or single capability.
- name: context
in: query
required: false
schema:
type: string
enum:
- view
- embed
- edit
default: view
description: Scope under which the request is made; determines fields present in response.
- name: exclude
in: query
required: false
schema:
type: array
default: []
description: Ensure result set excludes specific IDs.
- name: has_published_posts
in: query
required: false
schema:
type: boolean
description: Limit result set to users who have published posts.
- name: include
in: query
required: false
schema:
type: array
default: []
description: Limit result set to specific IDs.
- name: offset
in: query
required: false
schema:
type: integer
description: Offset the result set by a specific number of items.
- name: order
in: query
required: false
schema:
type: string
enum:
- asc
- desc
default: asc
description: Order sort attribute ascending or descending.
- name: orderby
in: query
required: false
schema:
type: string
enum:
- id
- include
- name
- registered_date
- slug
- include_slugs
- email
- url
default: name
description: Sort collection by user attribute.
- name: page
in: query
required: false
schema:
type: integer
default: 1
description: Current page of the collection.
- name: per_page
in: query
required: false
schema:
type: integer
default: 10
description: Maximum number of items to be returned in result set.
- name: roles
in: query
required: false
schema:
type: array
description: Limit result set to users matching at least one specific role provided. Accepts csv list or single role.
- name: search
in: query
required: false
schema:
type: string
description: Limit results to those matching a string.
- name: search_columns
in: query
required: false
schema:
type: array
default: []
description: Array of column names to be searched.
- name: slug
in: query
required: false
schema:
type: array
description: Limit result set to users with one or more specific slugs.
- name: who
in: query
required: false
schema:
type: string
enum:
- authors
description: Limit result set to users who are considered authors.
responses:
'200':
description: Successful response
headers:
X-WP-Total:
description: Total number of records
schema:
type: integer
X-WP-TotalPages:
description: Total number of pages
schema:
type: integer
Link:
description: RFC 8288 pagination links (rel=next/prev)
schema:
type: string
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
post:
operationId: createUsers
summary: POST /users
tags:
- users
security:
- applicationPassword: []
responses:
'201':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
/users/{id}:
parameters:
- name: id
in: path
required: true
schema:
type: integer
get:
operationId: getUsersById
summary: GET /users/{id}
tags:
- users
parameters:
- name: context
in: query
required: false
schema:
type: string
enum:
- view
- embed
- edit
default: view
description: Scope under which the request is made; determines fields present in response.
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
post:
operationId: createUsersById
summary: POST /users/{id}
tags:
- users
security:
- applicationPassword: []
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
delete:
operationId: deleteUsersById
summary: DELETE /users/{id}
tags:
- users
security:
- applicationPassword: []
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
/users/{user_id})/application-passwords:
parameters:
- name: user_id
in: path
required: true
schema:
type: string
get:
operationId: getUsersByUser_Id}ApplicationPasswords
summary: GET /users/{user_id})/application-passwords
tags:
- users
parameters:
- name: context
in: query
required: false
schema:
type: string
enum:
- view
- embed
- edit
default: view
description: Scope under which the request is made; determines fields present in response.
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
post:
operationId: createUsersByUser_Id}ApplicationPasswords
summary: POST /users/{user_id})/application-passwords
tags:
- users
security:
- applicationPassword: []
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
delete:
operationId: deleteUsersByUser_Id}ApplicationPasswords
summary: DELETE /users/{user_id})/application-passwords
tags:
- users
security:
- applicationPassword: []
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
/users/{user_id})/application-passwords/{uuid}:
parameters:
- name: user_id
in: path
required: true
schema:
type: string
- name: uuid
in: path
required: true
schema:
type: string
get:
operationId: getUsersByUser_Id}ApplicationPasswordsByUuid
summary: GET /users/{user_id})/application-passwords/{uuid}
tags:
- users
parameters:
- name: context
in: query
required: false
schema:
type: string
enum:
- view
- embed
- edit
default: view
description: Scope under which the request is made; determines fields present in response.
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
post:
operationId: createUsersByUser_Id}ApplicationPasswordsByUuid
summary: POST /users/{user_id})/application-passwords/{uuid}
tags:
- users
security:
- applicationPassword: []
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
delete:
operationId: deleteUsersByUser_Id}ApplicationPasswordsByUuid
summary: DELETE /users/{user_id})/application-passwords/{uuid}
tags:
- users
security:
- applicationPassword: []
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
/users/{user_id})/application-passwords/introspect:
parameters:
- name: user_id
in: path
required: true
schema:
type: string
get:
operationId: getUsersByUser_Id}ApplicationPasswordsIntrospect
summary: GET /users/{user_id})/application-passwords/introspect
tags:
- users
parameters:
- name: context
in: query
required: false
schema:
type: string
enum:
- view
- embed
- edit
default: view
description: Scope under which the request is made; determines fields present in response.
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
/users/me:
get:
operationId: getUsersMe
summary: GET /users/me
tags:
- users
parameters:
- name: context
in: query
required: false
schema:
type: string
enum:
- view
- embed
- edit
default: view
description: Scope under which the request is made; determines fields present in response.
responses:
'200':
description: Successful response
headers:
X-WP-Total:
description: Total number of records
schema:
type: integer
X-WP-TotalPages:
description: Total number of pages
schema:
type: integer
Link:
description: RFC 8288 pagination links (rel=next/prev)
schema:
type: string
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
post:
operationId: createUsersMe
summary: POST /users/me
tags:
- users
security:
- applicationPassword: []
responses:
'201':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
delete:
operationId: deleteUsersMe
summary: DELETE /users/me
tags:
- users
security:
- applicationPassword: []
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
components:
schemas:
Error:
type: object
description: WordPress REST API error envelope (not RFC 9457)
properties:
code:
type: string
message:
type: string
data:
type: object
properties:
status:
type: integer
responses:
Error:
description: WordPress REST error envelope
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
code: rest_post_invalid_id
message: Invalid post ID.
data:
status: 404
securitySchemes:
applicationPassword:
type: http
scheme: basic
description: WordPress Application Passwords, advertised by the site at https://www.legendary.com/wp-admin/authorize-application.php