Salta ai contenuti

Member

Questi contenuti non sono ancora disponibili nella tua lingua.

Manage members, which represent relationships between users, groups, and entities.
You can create, update, delete, and search for members with advanced filtering and pagination.

Version
2.0.0
OpenAPI version
3.0.0
POST
/v2/member/index

Returns a paginated and filterable list of members.
Use POST to allow complex filters via JSON payload.

Parameters for searching members

object
filter
object
member_id

The unique identifier of the member.

string
parent_id

The unique identifier of the parent entity.

string
child_id

The unique identifier of the child entity.

string
username

The username of the member.

string
user_created_at

The timestamp when the user was created.

integer
email

The email address of the member.

string
user_status

The status of the user (active, inactive, etc.).

string
group_name

The name of the group the member belongs to.

string
group_description

A description of the group, if available.

string
nullable
group_status

The status of the group (active, inactive, etc.).

string
group_created_at

The timestamp when the group was created.

integer
per-page
integer
default: 100 >= 1
page
integer
default: 1 >= 1
sort

The field of the model to sort the list for, use a minus to revert the sort. Es -name is to require the sort in reverse order

string
history

The field establishes whether to also include historized elements that are no longer active in the results. If you leave this parameter empty the response returns only actual entries.

boolean
Example
{
"filter": {
"username": "john.doe"
},
"per-page": 10,
"page": 1,
"sort": "username"
}

List of members

Array<object>
object
member_id

The unique identifier of the member.

string
parent_id

The unique identifier of the parent entity.

string
child_id

The unique identifier of the child entity.

string
username

The username of the member.

string
user_created_at

The timestamp when the user was created.

integer
email

The email address of the member.

string
user_status

The status of the user (active, inactive, etc.).

string
group_name

The name of the group the member belongs to.

string
group_description

A description of the group, if available.

string
nullable
group_status

The status of the group (active, inactive, etc.).

string
group_created_at

The timestamp when the group was created.

integer
Example
{
"member_id": "mem-1",
"parent_id": "grp-1",
"child_id": "usr-1",
"username": "john.doe",
"email": "john.doe@example.com",
"group_name": "Admins",
"user_status": "active",
"group_status": "active",
"user_created_at": 1700000000,
"group_created_at": 1700000000
}
X-Pagination-Current-Page
integer

Current page

X-Pagination-Page-Count
integer

Total number of pages

X-Pagination-Per-Page
integer

Number of items per page

X-Pagination-Total-Count
integer

Total number of items

POST
/v2/member/create

Create a new member by providing the required details.

Member object to be created

object
member_id
string
parent_id
string
child_id
string
Example
{
"parent_id": "grp-2",
"child_id": "usr-2"
}

Member created successfully

object
member_id
string
parent_id
string
child_id
string
Example
{
"member_id": "mem-2",
"parent_id": "grp-2",
"child_id": "usr-2"
}
GET
/v2/member/view/{id}

Retrieve a member by its unique ID.

id
required
string format: uuid

ID of the member to retrieve

Member found

object
member_id

The unique identifier of the member.

string
parent_id

The unique identifier of the parent entity.

string
child_id

The unique identifier of the child entity.

string
username

The username of the member.

string
user_created_at

The timestamp when the user was created.

integer
email

The email address of the member.

string
user_status

The status of the user (active, inactive, etc.).

string
group_name

The name of the group the member belongs to.

string
group_description

A description of the group, if available.

string
nullable
group_status

The status of the group (active, inactive, etc.).

string
group_created_at

The timestamp when the group was created.

integer
Example
{
"member_id": "mem-1",
"parent_id": "grp-1",
"child_id": "usr-1",
"username": "john.doe",
"email": "john.doe@example.com",
"group_name": "Admins",
"user_status": "active",
"group_status": "active",
"user_created_at": 1700000000,
"group_created_at": 1700000000
}

Member not found

DELETE
/v2/member/delete/{id}

Delete a member by its unique ID.
If force=true, all related entities will also be deleted.

id
required
string format: uuid

ID of the member to delete

force
boolean

Force the deletion of the entity and all related entities

Member deleted successfully

If force=false, the operation is interrupted and the list of connected entities that will be deleted in case of confirmation (force=true) is returned

PUT
/v2/member/update/{id}

Update an existing member by its unique ID.

id
required
string format: uuid

ID of the member to update

Member object with updated data

object
member_id
string
parent_id
string
child_id
string
Example
{
"group_name": "Updated Group",
"user_status": "inactive"
}

Member updated successfully

object
member_id
string
parent_id
string
child_id
string
Example
{
"member_id": "mem-1",
"group_name": "Updated Group",
"user_status": "inactive"
}

Member not found