chart-simpleSits Endpoints

Interface with our Sits Tracking module within your own scripts or applications

CONTENTS

Reset Sits Count

POST v1/sits/reset


Increment Sits Count

POST api.elyxir.dev/v1/sits/increment

Increases the number of sits of a specified user by one.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

user_id

string

Discord ID of the staff member

Response

{
  "user_id": "501777482282958850",
  "sits": 12
}

Decrement Sits Count

POST api.elyxir.dev/v1/sits/decrement

Decreases the number of sits of a specified user by one.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

user_id

string

Discord ID of the staff member

Response

Get Sits Count

GET api.elyxir.dev/v1/sits/count

Gets the number of sits held by a specified user

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

user_id

string

Discord ID of the staff member

Response

Reset Sits Count

POST api.elyxir.dev/v1/sits/reset

Resets the number of sits for a specified user

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

user_id

string

Discord ID of the staff member

Response

Suggest an additional endpoint

At Elyxir we ❤️ developers. That's why we're open to hearing any suggestions for extending our API for use within your FiveM scripts and/or applications.

Contact us within our Discord server to suggest endpoints.arrow-up-right

Last updated