Skip to content

Endpoint

  • Method: POST
  • Path: /spaces/{spaceSlug}/members
  • Edition: Core
  • Controller: SpaceController@addMember
  • Route source: fluent-community/app/Http/Routes/api.php:18
  • Controller source: fluent-community/app/Http/Controllers/SpaceController.php

POST Add Space Member

POST
/spaces/{spaceSlug}/members

Add Space Member for the FluentCommunity Members API.

Controller: SpaceController@addMember
Route source: fluent-community/app/Http/Routes/api.php:18

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Parameters

Path Parameters

spaceSlug*

SpaceSlug extracted from the URL path.

Type
string
Required

Request Body

application/json
JSON
{
  
"user_id": "string",
  
"role": "string"
}

Responses

Successful response

application/json
JSON
{
  
"message": "string"
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation