Air Credited API
Back to main Site
Back to main Site
  1. User Actions
  • Using Air Credited
  • 🐶 Walk through Apidog
  • User Management
    • Create User
      POST
    • Delete User
      DELETE
  • User Actions
    • Decrement Credits
      POST
    • Get User Credits
      GET
    • Set Credits for User
      PATCH
  1. User Actions

Set Credits for User

PATCH
https://api.aircredited.com/{userId}
Reduce the quantity of credits the user owns by any amount. The amount will default to 1. If a negative amount is passed then the quantity will increase. The existing quantity minus the amount cannot go below 0.

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Path Params
userId
string 
required
Example:
{{UserId}}
Body Params application/json
object {0}
Example
{
    "credits": 15
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PATCH 'https://api.aircredited.com/my-user-id' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "credits": 15
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2024-07-07 08:07:29
Previous
Get User Credits
Built with