Profile Update API
Allow players to customise their profile data, images and more.
Overview
The Profile Update API allows you to modify player details in Pokerscript, including updating user profile information and chip balance. This API is essential for maintaining player accounts and managing chip transactions within the platform.
Endpoint
POST http://admin.pokerurl.com/api/profile
Headers
AuthKey
489j4erwginerwgirn
Client key provided by Pokerscript
Accept
application/JSON
Specifies response format
Content-Type
application/JSON
Specifies request format
Authorization
Bearer <UserToken>
User authentication token
Request Body
The request body should be formatted in JSON and include the following fields:
Parameters
email
string
Email address of the player
username
string
Unique username of the player
firstname
string
First name of the player
lastname
string
Last name of the player
chips
float
Updated chip balance of the player
Note
UserToken
is obtained from the Login API and must be stored securely for future use.
Success Response
Upon a successful profile update, the API returns a 200 OK
status with the following response:
Error Responses
If the request fails, an error response is returned with the corresponding status code:
401 Unauthorized
401 Unauthorized
404 Not Found
404 Not Found
500 Internal Server Error
500 Internal Server Error
Additional Notes
Ensure that the
UserToken
is valid and not expired.The
AuthKey
should be provided by Pokerscript for API access.Always use secure storage for sensitive tokens and authentication keys.
This API enables seamless player management by allowing profile updates and chip transactions while ensuring data security and integrity.
Last updated
Was this helpful?